First, great control! I am diving into this and amazed at how easy it is!
Now onto my question:
I have two languages that I am working on for some special script languages.
One is multi-line code with ; delimiter which is similar to C.
One is single-line (EOL delimiter) and has "code blocks" between parenthesis which is actually the first language condensed within a single line.
Example.Note that the foreach command is part of the single-line language and the {} block is literally a code block of the first C-like language. The { } could come anywhere on the line (beginning, middle, or end). Inside could be many { } which are related to C-like language only and not the single-line language.
Problem is that parenthesis written inside the code blocks signals an EndToken prematurely. In the example above, it comes after the second _b. Somehow, I need to make sure everything adds up (start and end parenthesis) within the single-line language.
How do I do that when everything inside is part of other xml file?
Which is the best course of action to take?
My thoughts so far:
Use Regular Expression instead of Explicit Expression (of "}") for EndToken??... but not sure what...
Thanks for any advice
Now onto my question:
I have two languages that I am working on for some special script languages.
One is multi-line code with ; delimiter which is similar to C.
One is single-line (EOL delimiter) and has "code blocks" between parenthesis which is actually the first language condensed within a single line.
Example.
_val = {_a = 1; _b = 2; while {_a < _b} do {_a = _a + _x;};} foreach [1,2,3]
Problem is that parenthesis written inside the code blocks signals an EndToken prematurely. In the example above, it comes after the second _b. Somehow, I need to make sure everything adds up (start and end parenthesis) within the single-line language.
How do I do that when everything inside is part of other xml file?
Which is the best course of action to take?
My thoughts so far:
Use Regular Expression instead of Explicit Expression (of "}") for EndToken??... but not sure what...
Thanks for any advice