Skip to content

Commit

Permalink
Done.
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Apr 18, 2018
1 parent 0455667 commit 9a8e5f8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/com/tang/intellij/devkt/lua/lua-devkt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ class EmmyLua<T> : ExtendedDevKtLanguage<T>(
super.annotate(element, document, colorScheme)
when (element) {
is LuaFuncDef -> function(element, document, colorScheme)
is LuaLocalDef -> {
element.nameList?.run { nameDefList.forEach {
document.highlight(it, colorScheme.variable)
} }
is LuaLocalDef -> localVar(element, document, colorScheme)
}
}

private fun localVar(element: LuaLocalDef, document: AnnotationHolder<T>, colorScheme: ColorScheme<T>) {
element.nameList?.run {
nameDefList.forEach {
document.highlight(it, colorScheme.variable)
}
}
}
Expand Down

0 comments on commit 9a8e5f8

Please sign in to comment.