Skip to content

Commit 246d3fe

Browse files
authored
Merge pull request #3 from SlantingStds/feat/module_completion
Module completion
2 parents 7a03413 + 23bae3b commit 246d3fe

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ val buildDataList = listOf(
4343
ideaSDKShortVersion = "231",
4444
ideaSDKVersion = "2023.1",
4545
sinceBuild = "231",
46-
untilBuild = "232.*"
46+
untilBuild = "241.*"
4747
),
4848
BuildData(
4949
ideaSDKShortVersion = "223",

src/main/java/com/korioz/intellij/lua/annotator/LuaAnnotator.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,8 @@ class LuaAnnotator : Annotator {
192192
}
193193
checkUpValue(o)
194194
} else {
195-
if (isModuleFile) {
196-
newInfoAnnotation(o, "Module field \"${o.name}\"") {
197-
it.textAttributes(LuaHighlightingData.FIELD)
198-
}
199-
} else {
200-
newInfoAnnotation(o, "Global variable \"${o.name}\"") {
201-
it.textAttributes(LuaHighlightingData.GLOBAL_VAR)
202-
}
195+
newInfoAnnotation(o, "Global variable \"${o.name}\"") {
196+
it.textAttributes(LuaHighlightingData.GLOBAL_VAR)
203197
}
204198
}
205199
}

0 commit comments

Comments
 (0)