3 pygments.lexers.modeling |
3 pygments.lexers.modeling |
4 ~~~~~~~~~~~~~~~~~~~~~~~~ |
4 ~~~~~~~~~~~~~~~~~~~~~~~~ |
5 |
5 |
6 Lexers for modeling languages. |
6 Lexers for modeling languages. |
7 |
7 |
8 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. |
8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. |
9 :license: BSD, see LICENSE for details. |
9 :license: BSD, see LICENSE for details. |
10 """ |
10 """ |
11 |
11 |
12 import re |
12 import re |
13 |
13 |
36 |
36 |
37 _name = r"(?:'(?:[^\\']|\\.)+'|[a-zA-Z_]\w*)" |
37 _name = r"(?:'(?:[^\\']|\\.)+'|[a-zA-Z_]\w*)" |
38 |
38 |
39 tokens = { |
39 tokens = { |
40 'whitespace': [ |
40 'whitespace': [ |
41 (u'[\\s\ufeff]+', Text), |
41 (r'[\s\ufeff]+', Text), |
42 (r'//[^\n]*\n?', Comment.Single), |
42 (r'//[^\n]*\n?', Comment.Single), |
43 (r'/\*.*?\*/', Comment.Multiline) |
43 (r'/\*.*?\*/', Comment.Multiline) |
44 ], |
44 ], |
45 'root': [ |
45 'root': [ |
46 include('whitespace'), |
46 include('whitespace'), |