mirror of
https://github.com/chylex/IntelliJ-Rainbow-Brackets.git
synced 2025-05-29 10:34:10 +02: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 {
|
final override fun analyze(file: PsiFile, updateWholeFile: Boolean, holder: HighlightInfoHolder, action: Runnable): Boolean {
|
||||||
highlightInfoHolder = holder
|
highlightInfoHolder = holder
|
||||||
onBeforeAnalyze(file, updateWholeFile)
|
onBeforeAnalyze(file, updateWholeFile)
|
||||||
action.run()
|
try {
|
||||||
onAfterAnalyze()
|
action.run()
|
||||||
|
} catch (e: Throwable) {
|
||||||
|
} finally {
|
||||||
|
onAfterAnalyze()
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user