fredyvonvinet / ANTLR4-Plugins-for-NetBeans

NetBeans plugins for ANTLR 4 enabling to integrate ANTLR grammar files in standard NetBeans projects (ant-based or Maven-based).
9 stars 11 forks source link

Invalid hyperlink on import grammar #33

Closed fredyvonvinet closed 7 years ago

fredyvonvinet commented 7 years ago

When a grammar file contains a grammar import spec that does not contain a grammar identifier (of course, it is a syntax error), and caret is placed after import word, it leads to an invalid hyperlink if we press Ctrl.

fredyvonvinet commented 7 years ago

In fact, this problem only occurs if an a grammar import spec was owning precedently a valid grammar name that has been deleted.

fredyvonvinet commented 7 years ago

Corrected. It was due to the fact that hyperlink parser was launched only if syntax parsing leads to no error.