Hello,
I'm trying to build a lexer for a prorietary language that uses based literals that include the form <base>#<digits>, so the hexadecimal value "123abc" will be encoded as "16#123abc". The problem I'm having concerns the hash character, which seems to not be recognised by the patterns that I have so far used, listed below.
<RegexPatternGroup TokenKey="HexIntegerNumber" ClassificationTypeKey="Number" LookAheadPattern="{NonWord}|\z">
<RegexPattern Value="16 # {HexDigit}+" />
<RegexPattern Value="16 \# {HexDigit}+" />
<RegexPattern Value="16 \043 {HexDigit}+" />
<RegexPattern Value="0 [xX] {HexDigit}+" />
</RegexPatternGroup>
I have a feeling that it may be due to the {NonWord} look-ahead pattern, but if this is so, then how should it be encoded?
Many thanks.