code-completion using yacc parser
Submitted by Wednesday, 10 November, 2010 - 07:57
on
Hi there,
I am trying to add syntax highlighting and code-completion for a quite idiosyncratic command file syntax to jedit.
While I managed pretty well to use jedit's xml edit-mode description for syntax highlighting, I cannot find a good starting point to add code-completion.
I currently see two possibilities:
a) use the xml edit-mode description to get the KEYWORDS somehow into a suggestion list
b) somehow connect the lex/yacc parser with jedit.
b) would be my prefered way as, it would perfectly sync up with any code development of the program and its parser.
Any hints, tips outlines which way to go, any getting started or simple example for code completion would be highly appreciated.
Thanks in advance,
Gergoe
I am trying to add syntax highlighting and code-completion for a quite idiosyncratic command file syntax to jedit.
While I managed pretty well to use jedit's xml edit-mode description for syntax highlighting, I cannot find a good starting point to add code-completion.
I currently see two possibilities:
a) use the xml edit-mode description to get the KEYWORDS somehow into a suggestion list
b) somehow connect the lex/yacc parser with jedit.
b) would be my prefered way as, it would perfectly sync up with any code development of the program and its parser.
Any hints, tips outlines which way to go, any getting started or simple example for code completion would be highly appreciated.
Thanks in advance,
Gergoe