I decided to learn plugin development by writing a bash language plugin.
So far I have the highlighting done, basic folding and a start of a parser.
IMHO it's not that easy to write a parser for IntelliJ. I have basic parsing working - but:
- I don't know how to test the parser in unit tests. Any possibility for that? Starting the second instance is not that productive
- What is the recommended way to write a parser which fits to a certain grammar? I'm not very experienced writing parsers and still make many mistakes doing that, I think.Anything like a parser generator available (antlr...)?
- Is there some language plugin source code which is not that difficult to read, small and well structured to be an example?
More questions will follow, I think