I haven't tested it but I was looking over the code to implement the Rogue highlighter in a similar way. When I see this right, then this line is suspicious
BASE_NUMBER = r'{integer}\s*\^\^\s*({real}|{integer})'.format(integer=INTEGER, real=REAL)
- Why is there whitespace allowed before and after
^^?
- Does it catch the case
2^^00110011*^+3?
- Does it work with characters like in
16^^abc?
I haven't tested it but I was looking over the code to implement the Rogue highlighter in a similar way. When I see this right, then this line is suspicious
^^?2^^00110011*^+3?16^^abc?