diff options
author | Georg Brandl <georg@python.org> | 2014-03-04 15:45:55 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-03-04 15:45:55 +0100 |
commit | da3cebf976e36d0ff5bf1ec8b045c4044387fcde (patch) | |
tree | 18fd62a25881a1c452e00b466830fb95f93d79cd /pygments/lexers/other.py | |
parent | 3f53f45a0ce5304b1a7498241223494d4f9ccf90 (diff) | |
parent | 80dce73a6162073bfb915c5e4d325ce230c03531 (diff) | |
download | pygments-da3cebf976e36d0ff5bf1ec8b045c4044387fcde.tar.gz |
Merged in micclly/pygments-main/add_mql_lexer (pull request #285)
Diffstat (limited to 'pygments/lexers/other.py')
-rw-r--r-- | pygments/lexers/other.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py index 9a338c0e..d9e7440a 100644 --- a/pygments/lexers/other.py +++ b/pygments/lexers/other.py @@ -1217,16 +1217,20 @@ class ModelicaLexer(RegexLexer): ], 'statements': [ (r'"', String, 'string'), - (r'\'', Name, 'quoted_ident'), (r'(\d+\.\d*|\.\d+|\d+|\d.)[eE][+-]?\d+[lL]?', Number.Float), (r'(\d+\.\d*|\.\d+)', Number.Float), (r'\d+[Ll]?', Number.Integer), (r'[~!%^&*+=|?:<>/-]', Operator), - (r'[()\[\]{},.;]', Punctuation), (r'(true|false|NULL|Real|Integer|Boolean)\b', Name.Builtin), - (r'([a-zA-Z_][\w\[\]]*|\'[a-zA-Z_\+\-\*\/\^][\w]*\')' - r'(\.([a-zA-Z_\][\w\[\]]*|\'[a-zA-Z_\+\-\*\/\^][\w]*\'))+', Name.Class), + (r'([a-zA-Z_][\w]*|[\'][^\']+[\'])' + r'([\[\d,:\]]*)' + r'(\.([a-zA-Z_][\w]*|[\'][^\']+[\']))+' + r'([\[\d,:\]]*)', Name.Class), + (r'([a-zA-Z_][\w]*|[\'][^\']+[\'])' + r'([\[\d,:\]]+)', Name.Class), (r'(\'[\w\+\-\*\/\^]+\'|\w+)', Name), + (r'[()\[\]{},.;]', Punctuation), + (r'\'', Name, 'quoted_ident'), ], 'root': [ include('whitespace'), |