How can I disable syntax error highlighting generated by parser for a custom language implementation?


We are developing a custom language plugin for ballerina language( and currently using the IntelliJ grammar toolkit. Since we have integrated our plugin with ballerina language server, we are using language server diagnostics via an external annotator implementation. So we have a requirement to hide/disable the error annotations generated by the plugin parser. Is there any API available for this?


Plugin Implementation -

Plugin Parser definition -

Comment actions Permalink

com.intellij.codeInsight.highlighting.HighlightErrorFilter should work here

Comment actions Permalink

This is exactly what I was looking for! :) Thank you!


Please sign in to leave a comment.