3 pygments.lexers.ambient |
3 pygments.lexers.ambient |
4 ~~~~~~~~~~~~~~~~~~~~~~~ |
4 ~~~~~~~~~~~~~~~~~~~~~~~ |
5 |
5 |
6 Lexers for AmbientTalk language. |
6 Lexers for AmbientTalk language. |
7 |
7 |
8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. |
8 :copyright: Copyright 2006-2021 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 |
42 (r'/\*.*?\*/', Comment.Multiline), |
42 (r'/\*.*?\*/', Comment.Multiline), |
43 (r'(def|deftype|import|alias|exclude)\b', Keyword), |
43 (r'(def|deftype|import|alias|exclude)\b', Keyword), |
44 (builtin, Name.Builtin), |
44 (builtin, Name.Builtin), |
45 (r'(true|false|nil)\b', Keyword.Constant), |
45 (r'(true|false|nil)\b', Keyword.Constant), |
46 (r'(~|lobby|jlobby|/)\.', Keyword.Constant, 'namespace'), |
46 (r'(~|lobby|jlobby|/)\.', Keyword.Constant, 'namespace'), |
47 (r'"(\\\\|\\"|[^"])*"', String), |
47 (r'"(\\\\|\\[^\\]|[^"\\])*"', String), |
48 (r'\|', Punctuation, 'arglist'), |
48 (r'\|', Punctuation, 'arglist'), |
49 (r'<:|[*^!%&<>+=,./?-]|:=', Operator), |
49 (r'<:|[*^!%&<>+=,./?-]|:=', Operator), |
50 (r"`[a-zA-Z_]\w*", String.Symbol), |
50 (r"`[a-zA-Z_]\w*", String.Symbol), |
51 (r"[a-zA-Z_]\w*:", Name.Function), |
51 (r"[a-zA-Z_]\w*:", Name.Function), |
52 (r"[{}()\[\];`]", Punctuation), |
52 (r"[{}()\[\];`]", Punctuation), |