
Thanks for replying. I am adding a few more stuff to the lexer xml, but have a questions:
1. How to color strings for each side separately that are in this form:
argument:value
Is this better handled in the semantic parser and not the lexer xml?
2. Another one that has the same issue is, for event handlers that follow this format:
on ControlName EventName do ...
on and do are already colored because they are language keywords. But I don't want to use straight string matching for the EventName as it can be a variable or something else in code. Can you please give me an example how this would be achieved?
Also is this better handled in the semantic parser and not the lexer xml? From my readings of the docs, it seems the semantic parser might be better?
3. For the lexer xml, what's the maximum threshold for the number of words beforethe performance of the highlighter takes a significant hit? I want to add some more tokens that might be useful, that are specific to the application the language belongs to. It could be useful to highlight everything that are of some type that have the same common parent class, etc. So if it was Photoshop, this would be: GaussianBlur, Sharpen, Soften, Outline, Liquify, ... that are of type Filter.
Am I better of adding these to the lexer xml? Or should I handle it differently? Because they will not necessarily be highlighted by default. Only if the user turns on the appropriate settings, then these things that I have predefined list of will be highlighted.
Also for additional information, the number of these words would be a little under 1000 words in case that matters for either scenario.
Thanks again,
Light