Posted 19 years ago
by Carl Gilbert
Hi
I have the following line in my language definition:Is it possible to get code starting with a number or a single number to show up as an IdentifierToken?
So any of the following would show up as IdentifierTokens: 3, 4fds, fds3, 43re43, re34re
Note: I do not have a RealNumberToken or an IntegerNumberToken.
Also, how would this work is the token text has other characters such as: # - + £ $ % ^ etc.?
This last question isn't that important as I might just exclude the use of such characters.
Regards, Carl
I have the following line in my language definition:
<RegexPatternGroup TokenKey="IdentifierToken" Style="VariableStyle" PatternValue="(_ | {AlphaMacro})({WordMacro})*" />
So any of the following would show up as IdentifierTokens: 3, 4fds, fds3, 43re43, re34re
Note: I do not have a RealNumberToken or an IntegerNumberToken.
Also, how would this work is the token text has other characters such as: # - + £ $ % ^ etc.?
This last question isn't that important as I might just exclude the use of such characters.
Regards, Carl