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:
parent
d92fcb751f
commit
95abe080f5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user