Menu

#11 Ability to add new keywords to existing languages

closed
New API (9)
5
2014-03-26
2009-08-19
Anonymous
No

It would be handy to be able to add new keywords to existing language scanners, such as Java. This would allow users to leverage existing TokenMaker implementations with minimal fuss, assuming all they want is new keywords.

This would be accomplished by checking each normal identifier parsed against the "new keyword" list. If found, it's highlighted as a keyword.

One possible issue is performance, although there are TokenMakers in RSTA (WindowsBatchTokenMaker, UnixShellTokenMaker) that already work in the manner suggested above and don't seem to have performance issues.

Another thing to consider is making ALL keywords done in this manner (e.g. none hard-coded). This would allow users to replace a language scanner's keywords, not just append to it.

This same technique could also be applied to the "Function" token type as well as Keywords.

Discussion

  • Nobody/Anonymous

    Each and every Hermes Jypsiere carrier may be used for many years.<p> cheap louis vuitton outlet http://www.nantua-tourisme.com/cheaplouisvuittonoutlet.html

     
  • Robert Futrell

    Robert Futrell - 2014-03-26

    This issue was moved to GitHub.

    https://github.com/bobbylight/RSyntaxTextArea

     
  • Robert Futrell

    Robert Futrell - 2014-03-26
    • status: open --> closed
    • Group: --> Next Release (example)