Syntax highlighter: << and >>

This commit is contained in:
Adrien Guatto 2010-08-19 11:55:36 +02:00
parent 4c909ee39d
commit 34b7533d86

View file

@ -20,7 +20,7 @@ class HeptagonLexer(RegexLexer):
(r'pre|\-\>|\+|\-|\/|=|&|not|\*|<=|>=|\^', Operator),
(r'\d+', Number.Integer),
(r' |\t', Whitespace),
(r'\(|\)|;|\||:|,|\]|\[|\.|<|>', Punctuation),
(r'\(|\)|;|\||:|,|\]|\[|\.|<|>|<<|>>', Punctuation),
(r'true|false', Literal),
(r'[A-Z]\w*', String.Symbol),
(r'\w+', Name)
@ -47,7 +47,7 @@ class MLSLexer(RegexLexer):
(r'pre|\-\>|\+|\-|\/|=|&|not|\*|<=|>=|\^', Operator),
(r'\d+', Number.Integer),
(r' |\t', Whitespace),
(r'\(|\)|;|\||:|,|\]|\[|\.', Punctuation),
(r'\(|\)|;|\||:|,|\]|\[|\.|<<|>>', Punctuation),
(r'true|false', Literal),
(r'[A-Z]\w*', String.Symbol),
(r'\w+', Name)