Attach a custom syntax checker to my custom-made DSL file?

I use a simple format to describe some rules in the app, it's a text file with some structure which is nor JS, neither HTML or anything else.

I have created a utility that can parse and check the syntax of this file and return a report, like JSLint, ESLint or other similar tools.

Now, is it possible to somehow connect the utility to WebStorm without having to write a dedicated plugin so that to highlight the issues in the file in real-time, like how I would do with linters?

1 comment
Comment actions Permalink

it's possible using ExternalAnnotator, for example (see https://intellij-support.jetbrains.com/hc/en-us/community/posts/206758085-Best-way-to-implement-code-highlighting-annotation-by-file-line-number-, for example). But still you will need developing a custom plugin for this. Developing a custom inspection is another way to go (http://www.jetbrains.org/intellij/sdk/docs/tutorials/code_inspections.html). If you have any questions, please feel free to ask them at https://intellij-support.jetbrains.com/hc/en-us/community/topics/200366979-IntelliJ-IDEA-Open-API-and-Plugin-Development

0

Please sign in to leave a comment.