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

changeset 7983
54c5cfbb1e29
parent 7701
25f42e208e08
equal deleted inserted replaced
7982:48d210e41c65 7983:54c5cfbb1e29
3 pygments.lexers.factor 3 pygments.lexers.factor
4 ~~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for the Factor language. 6 Lexers for the Factor 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
263 263
264 # vocab.private 264 # vocab.private
265 (r'(?:<PRIVATE|PRIVATE>)\s', Keyword.Namespace), 265 (r'(?:<PRIVATE|PRIVATE>)\s', Keyword.Namespace),
266 266
267 # strings 267 # strings
268 (r'"""\s+(?:.|\n)*?\s+"""', String), 268 (r'"""\s(?:.|\n)*?\s"""', String),
269 (r'"(?:\\\\|\\"|[^"])*"', String), 269 (r'"(?:\\\\|\\"|[^"])*"', String),
270 (r'\S+"\s+(?:\\\\|\\"|[^"])*"', String), 270 (r'\S+"\s+(?:\\\\|\\"|[^"])*"', String),
271 (r'CHAR:\s+(?:\\[\\abfnrstv]|[^\\]\S*)\s', String.Char), 271 (r'CHAR:\s+(?:\\[\\abfnrstv]|[^\\]\S*)\s', String.Char),
272 272
273 # comments 273 # comments
320 (r'\S+', Name.Variable), 320 (r'\S+', Name.Variable),
321 ], 321 ],
322 'slots': [ 322 'slots': [
323 (r'\s+', Text), 323 (r'\s+', Text),
324 (r';\s', Keyword, '#pop'), 324 (r';\s', Keyword, '#pop'),
325 (r'(\{\s+)(\S+)(\s+[^}]+\s+\}\s)', 325 (r'(\{\s+)(\S+)(\s[^}]+\s\}\s)',
326 bygroups(Text, Name.Variable, Text)), 326 bygroups(Text, Name.Variable, Text)),
327 (r'\S+', Name.Variable), 327 (r'\S+', Name.Variable),
328 ], 328 ],
329 'vocabs': [ 329 'vocabs': [
330 (r'\s+', Text), 330 (r'\s+', Text),

eric ide

mercurial