Posted 20 years ago
by Alex Lyman
- Woodland Park, CO
I've been asked to evaluate SyntaxEditor for use in one of my company's future products. It involves an obscure language, which seems to have no other coralary in any other language.
There are many constructs that look like this:My question is: Is there any way to make 'DO WHILE' a StartScope, 'END;' an EndScope,
and highlight the expression '(x < 5)' specially (it has special context in the specific language in many places -- this example is not one of them, but is the best example I could find that would be understood by someone not familiar with the language)? If so, what is the best way to do this?
So far, my best attempt was to make a ChildState that matched a () delimited expression, but I could find no way to impliment any kind of context requiring it to be after a 'DO WHILE' and before a ';'.
There are many constructs that look like this:
DO WHILE (x < 5);
x = x + 1;
END;
and highlight the expression '(x < 5)' specially (it has special context in the specific language in many places -- this example is not one of them, but is the best example I could find that would be understood by someone not familiar with the language)? If so, what is the best way to do this?
So far, my best attempt was to make a ChildState that matched a () delimited expression, but I could find no way to impliment any kind of context requiring it to be after a 'DO WHILE' and before a ';'.
Alex Lyman
Lead Developer
Savian Software, LLC