diff options
author | David Robillard <d@drobilla.net> | 2011-11-21 21:20:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-21 21:20:02 +0000 |
commit | 5d554fb86495f5d10138199572a4848df2787179 (patch) | |
tree | 8cd4fffae8fd6ec96e34eb3eea703d32de9925ad | |
parent | 9136bb65968ba75b0904863a8db87262ed7a16aa (diff) | |
download | lv2-5d554fb86495f5d10138199572a4848df2787179.tar.xz |
Improve Turtle Pygments parser.
-rwxr-xr-x | lv2specgen/lv2specgen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 1349f5c..e602dcb 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -196,6 +196,7 @@ if have_pygments: ], 'predObj': [ include('comments'), + (r'\s*a\s*', Name.Keyword, 'object'), (r'\s*[a-zA-Z_:][a-zA-Z0-9\-_:]*\b\s*', Name.Tag, 'object'), (r'\s*(<[^>]*\>)', Name.Tag, 'object'), (r'\s*\]\s*', Text, '#pop'), @@ -214,7 +215,7 @@ if have_pygments: (r'\s*".*?[^\\]"(?:\@[a-z]{2-4}|\^\^<?[a-zA-Z0-9\-\:_#/\.]*>?)?\s*', Literal.String), (r'\s*[0-9]+\.[0-9]*\s*\n?', Literal.Number), (r'\s*[0-9]+\s*\n?', Literal.Number), - (r'\s*[a-zA-Z0-9\-_\:]\s*', Name.Tag), + (r'\s*[a-zA-Z0-9\-_\:]+\s*', Name.Tag), (r'\s*\(', Text, 'objList'), (r'\s*;\s*\n?', Punctuation, '#pop'), (r'\s*,\s*\n?', Punctuation), # Added by drobilla so "," is not an error |