From 7302f831b0a6c63e9ac7a4daca620e6ce5386a90 Mon Sep 17 00:00:00 2001 From: Kagura Date: Wed, 30 Oct 2024 22:27:48 +0800 Subject: [PATCH] fix: 0-use etc. --- src/main/kotlin/core/SourceFile.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/core/SourceFile.kt b/src/main/kotlin/core/SourceFile.kt index ccc382d..b72fe49 100644 --- a/src/main/kotlin/core/SourceFile.kt +++ b/src/main/kotlin/core/SourceFile.kt @@ -122,7 +122,9 @@ class SourceFile { funcResult.add(useCache.toString()) useCache.clear() // 清空 } - funcResult.add("${sentence.right}-use") + if (sentence.right in it.cParser.defineList) { + funcResult.add("${sentence.right}-use") + } } DEFINE_VALUE, CHANGE_VALUE -> {