mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
Fixed some issues in analyzers
This commit is contained in:
@@ -221,7 +221,7 @@ public class CppAnalyzer extends BaseIncrementalAnalyzeManager {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return spans;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -66,7 +66,7 @@ class KotlinAnalyzer : BaseIncrementalAnalyzeManager(KotlinLexer::class.java) {
|
||||
when (type) {
|
||||
KotlinLexer.WS ->
|
||||
if (first) {
|
||||
spans.add(Span.obtain(0, makeStyle(TEXT_NORMAL)))
|
||||
spans.add(Span.obtain(offset, makeStyle(TEXT_NORMAL)))
|
||||
first = false
|
||||
}
|
||||
KotlinLexer.AT_NO_WS,
|
||||
|
||||
@@ -86,7 +86,7 @@ class XMLAnalyzer : BaseIncrementalAnalyzeManager(XMLLexer::class.java) {
|
||||
XMLLexer.S,
|
||||
XMLLexer.SEA_WS, ->
|
||||
if (first) {
|
||||
spans.add(Span.obtain(0, makeStyle(TEXT_NORMAL)))
|
||||
spans.add(Span.obtain(offset, makeStyle(TEXT_NORMAL)))
|
||||
first = false
|
||||
}
|
||||
XMLLexer.COMMENT -> spans.add(Span.obtain(offset, forComment()))
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user