Skip to content

Highlighting of syntax for custom files #4629

Answered by shusterboris
shusterboris asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, As for syntax highlighting for specific language that doesn't support by ctags, I solved the problem. May be this is dirty, but... In the package opg.opengrok.indexer.analisys I created folder bacis (this is the name of language I need parse, very specific language for some legacy system). In this package I created classes BacisAnalizer, BacisSymbolTokenizer, BacisXRef using classes for C as examples. Also I created *.lex? files: added some specific language construction, like comments and so on. Also I created my own class Consts that contains list of keywords. Please note that all files are in one package, unlike other languages implemented here (XRef in the jar, lex-files in the jf…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by shusterboris
Comment options

You must be logged in to vote
1 reply
@shusterboris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant