Skip to content

Commit

Permalink
Merge pull request #3 from SlantingStds/feat/module_completion
Browse files Browse the repository at this point in the history
Module completion
  • Loading branch information
Korioz authored Feb 8, 2024
2 parents 7a03413 + 23bae3b commit 246d3fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ val buildDataList = listOf(
ideaSDKShortVersion = "231",
ideaSDKVersion = "2023.1",
sinceBuild = "231",
untilBuild = "232.*"
untilBuild = "241.*"
),
BuildData(
ideaSDKShortVersion = "223",
Expand Down
10 changes: 2 additions & 8 deletions src/main/java/com/korioz/intellij/lua/annotator/LuaAnnotator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,8 @@ class LuaAnnotator : Annotator {
}
checkUpValue(o)
} else {
if (isModuleFile) {
newInfoAnnotation(o, "Module field \"${o.name}\"") {
it.textAttributes(LuaHighlightingData.FIELD)
}
} else {
newInfoAnnotation(o, "Global variable \"${o.name}\"") {
it.textAttributes(LuaHighlightingData.GLOBAL_VAR)
}
newInfoAnnotation(o, "Global variable \"${o.name}\"") {
it.textAttributes(LuaHighlightingData.GLOBAL_VAR)
}
}
}
Expand Down

0 comments on commit 246d3fe

Please sign in to comment.