Added missing syntax highlighting for arrays.
This commit is contained in:
parent
7f91ffab53
commit
3160855158
1 changed files with 3 additions and 1 deletions
|
@ -13,13 +13,14 @@ class HeptagonLexer(RegexLexer):
|
|||
(r'open', Keyword.Namespace),
|
||||
(r'returns|let|tel|automaton|state|until|unless|if|then|else|end',
|
||||
Keyword),
|
||||
(r'map|fold|mapfold', Keyword),
|
||||
(r'when|merge|fby|do', Keyword),
|
||||
(r'present', Keyword.Reserved),
|
||||
(r'int|bool', Keyword.Type),
|
||||
(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)
|
||||
|
@ -39,6 +40,7 @@ class MLSLexer(RegexLexer):
|
|||
(r'open', Keyword.Namespace),
|
||||
(r'returns|let|tel|if|then|else|end',
|
||||
Keyword),
|
||||
(r'map|fold|mapfold', Keyword),
|
||||
(r'when|merge|fby|do', Keyword),
|
||||
(r'present', Keyword.Reserved),
|
||||
(r'int|bool', Keyword.Type),
|
||||
|
|
Loading…
Reference in a new issue