mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix: opened files are not highlighted with tree sitter
This happens because the tree-sitter nodes and trees are inaccessible when the files are opened
This commit is contained in:
-1
@@ -74,7 +74,6 @@ abstract class TreeSitterLanguage(context: Context, lang: TSLanguage, type: Stri
|
||||
langScheme.styles.forEach { tsTheme.putStyleRule(it.key, it.value.makeStyle()) }
|
||||
|
||||
analyzer.langScheme = languageScheme
|
||||
analyzer.rerun()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user