Antlr support in IDEA

Unfortunately, there's no syntax highlighting for Antlr grammar files. Is it possible to solve this via plugin?
Also, it's very frustrating, that error messages from Ant's "antlr" task are not handled - double click will not jump to the source grammar file even if error message format seems to be very similar.

3 comments

Unfortunately, there's no syntax highlighting for Antlr grammar files.

There is a small syntax file for highlighting ANTLR files on www.intellij.org.

Is it possible to solve this via plugin?

Yes, if you write one :).

Also, it's very frustrating, that error messages from Ant's "antlr"
task are not handled - double click will not jump to the source
grammar file even if error message format seems to be very similar.

Good idea, but: How many develpers really work with ANTLR, to justify the effort of building such features in Idea IDE?

Ahmed.

0

Hi Ahmed,

I'd be happy to get some students working on the plugin as I use Intellij every day using ANTLR grammars, but the documentation is essentially nonexistent for building plugins and seems to be a moving target. Can you give me some idea of how to begin the plugin?

Regards,
Terence "the ANTLR guy" Parr

0

I'd be happy to get some students working on the plugin as I use
Intellij every day using ANTLR grammars, but the documentation is
essentially nonexistent for building plugins and seems to be a moving
target. Can you give me some idea of how to begin the plugin?

Unfortunately, I have very big problems too with the missing documentation
for plug-in
development. I think this is the main reason why for IntelliJ there are only
a few plug-ins
compared to Eclipse. A lot of developers give up after a while, because at
the moment it's a
"Sherlock Holmes work" to find how to do something with the plug-in API.
I can say that from my experience: in my previous project, the team was totaly
frustrated
about that situation and after a while the "management" decided to make the
plug-in in Eclipse.
Doing so, the management decided not to by any new IntelliJ licenses (since
the target platform
changed).

There are some exceptional developers who managed to make cools plug-ins
for Intellij, without
documentation. They can answer more specific questions. I think they are
genius, or they have
"insider information" :).

As far as I can tell, at the moment, programming a plug-in means a cumbersome
task, involving a
repeated empirical process of try and fail.
1. It's important to know what will the target platform, because it's moving.(IMO
a combined one
is better, since to test some working old plug-ins one need an old version
of Intellij)
2. Use some existing plug-ins as a starting point. You find most of them
on www.intellij.org.
Some of them have sources, but they are old. Unfortunately the new Intellij
repository
"http://plugins.intellij.net/" - the one that permits automatic plug-in
update, does not have
the concept of "source" as an asset, so you will find sources only for
those who still manually
update their WIKI page on www.intellij.org.
3. On www.intellij.org you can find the most of the useful information, since
the OpenAPI javadoc files
are "empty", and contain almost NO user written information.

I know, that's not much help from my side :( , but maybe some of the more
experienced developers here
(or Jetbrains employees) can give you more help.

Ahmed.

0

Please sign in to leave a comment.