diff options
Diffstat (limited to 'highlight.py')
-rwxr-xr-x | highlight.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/highlight.py b/highlight.py index d5d15de..14bb9a8 100755 --- a/highlight.py +++ b/highlight.py @@ -27,7 +27,7 @@ class TuplrLexer(RegexLexer): tokens = { 'root' : [ # types - (r':?[A-Z][a-zA-Z]*|:\([A-Z][a-zA-Z\ ]*\)', Keyword.Type), + (r':?[A-Z][a-zA-Z.]*|:\([A-Z][a-zA-Z.\ ]*\)', Keyword.Type), # line comments (r';.*$', Comment.Single), @@ -77,8 +77,9 @@ class TuplrStyle(Style): Comment: '#79E', Keyword: '#EE5', Name: '#DDD', - Name.Function: '#0F0', - Name.Class: '#5E5', + Text: '#DDD', +# Name.Function: '#0F0', +# Name.Class: '#E55', String: '#F88', Keyword.Type: '#5E5', Punctuation: '#AAA', |