eric6/ThirdParty/Pygments/pygments/lexers/x10.py

changeset 7983
54c5cfbb1e29
parent 7701
25f42e208e08
equal deleted inserted replaced
7982:48d210e41c65 7983:54c5cfbb1e29
3 pygments.lexers.x10 3 pygments.lexers.x10
4 ~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for the X10 programming language. 6 Lexers for the X10 programming 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
60 (r'/\*(.|\n)*?\*/', Comment.Multiline), 60 (r'/\*(.|\n)*?\*/', Comment.Multiline),
61 (r'\b(%s)\b' % '|'.join(keywords), Keyword), 61 (r'\b(%s)\b' % '|'.join(keywords), Keyword),
62 (r'\b(%s)\b' % '|'.join(types), Keyword.Type), 62 (r'\b(%s)\b' % '|'.join(types), Keyword.Type),
63 (r'\b(%s)\b' % '|'.join(values), Keyword.Constant), 63 (r'\b(%s)\b' % '|'.join(values), Keyword.Constant),
64 (r'\b(%s)\b' % '|'.join(modifiers), Keyword.Declaration), 64 (r'\b(%s)\b' % '|'.join(modifiers), Keyword.Declaration),
65 (r'"(\\\\|\\"|[^"])*"', String), 65 (r'"(\\\\|\\[^\\]|[^"\\])*"', String),
66 (r"'\\.'|'[^\\]'|'\\u[0-9a-fA-F]{4}'", String.Char), 66 (r"'\\.'|'[^\\]'|'\\u[0-9a-fA-F]{4}'", String.Char),
67 (r'.', Text) 67 (r'.', Text)
68 ], 68 ],
69 } 69 }

eric ide

mercurial