Dataspec parsing

This commit is contained in:
str4d
2014-02-18 03:08:38 +00:00
parent 7df8b2ae2d
commit 0e059deea8

View File

@@ -38,6 +38,7 @@ class DataSpecLexer(RegexLexer):
(r'(\s*)([\w=;]+)', bygroups(Text, Name.Tag)),
(r'(\s*)(\|)', bygroups(Text, Text)),
(r'(\s*)(\()', bygroups(Text, Punctuation), 'expression'),
(r'(\s*)([+-])', bygroups(Text, Operator)),
],
'expression': [
(r'(\s*)(\))', bygroups(Text, Punctuation), '#pop'),