forked from I2P_Developers/i2p.www
Dataspec: handle hex, x^y, ?
This commit is contained in:
@@ -17,10 +17,11 @@ class DataSpecLexer(RegexLexer):
|
||||
(r'(\s*)([A-Z]{2,})', bygroups(Text, Name.Constant)),
|
||||
(r'(\s*)([\[\]])', bygroups(Text, Punctuation)),
|
||||
(r'(\s*)(\$\w+)', bygroups(Text, Name.Tag)),
|
||||
(r'(\s*)(0x[0-9a-f]+)', bygroups(Text, Number.Hex)),
|
||||
(r'(\s*)([0-9]+)(\+)?', bygroups(Text, Number, Punctuation)),
|
||||
(r'(-)([0-9]+)', bygroups(Punctuation, Number)),
|
||||
(r'(\s*)(->|<=|>=|\*)', bygroups(Text, Operator)),
|
||||
(r'(\s*)([\w()-=\'<>]+)', bygroups(Text, Comment)),
|
||||
(r'(\s*)(->|<=|>=|\*|\^)', bygroups(Text, Operator)),
|
||||
(r'(\s*)([\w()-=\'<>?]+)', bygroups(Text, Comment)),
|
||||
],
|
||||
'boundary': [
|
||||
(r'-{3,}\+$', Text, '#pop'),
|
||||
|
Reference in New Issue
Block a user