1
0
mirror of https://github.com/chylex/IntelliJ-Rainbow-Brackets.git synced 2025-01-09 02:42:44 +01:00

Eat exceptions inside RainbowHighlightVisitor.analyze()

This commit is contained in:
张志豪 2021-07-15 09:53:20 +08:00
parent d92fcb751f
commit 95abe080f5

View File

@ -32,8 +32,12 @@ abstract class RainbowHighlightVisitor : HighlightVisitor {
final override fun analyze(file: PsiFile, updateWholeFile: Boolean, holder: HighlightInfoHolder, action: Runnable): Boolean {
highlightInfoHolder = holder
onBeforeAnalyze(file, updateWholeFile)
action.run()
onAfterAnalyze()
try {
action.run()
} catch (e: Throwable) {
} finally {
onAfterAnalyze()
}
return true
}