ThirdParty/Pygments/pygments/lexers/templates.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 684
2f29a0b6e1c7
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
237 bygroups(Operator, Text, Name.Function)), 237 bygroups(Operator, Text, Name.Function)),
238 (r'(is)(\s+)(not)?(\s+)?([a-zA-Z_][a-zA-Z0-9_]*)', 238 (r'(is)(\s+)(not)?(\s+)?([a-zA-Z_][a-zA-Z0-9_]*)',
239 bygroups(Keyword, Text, Keyword, Text, Name.Function)), 239 bygroups(Keyword, Text, Keyword, Text, Name.Function)),
240 (r'(_|true|false|none|True|False|None)\b', Keyword.Pseudo), 240 (r'(_|true|false|none|True|False|None)\b', Keyword.Pseudo),
241 (r'(in|as|reversed|recursive|not|and|or|is|if|else|import|' 241 (r'(in|as|reversed|recursive|not|and|or|is|if|else|import|'
242 r'with(?:(?:out)?\s*context)?)\b', Keyword), 242 r'with(?:(?:out)?\s*context)?|scoped|ignore\s+missing)\b',
243 Keyword),
243 (r'(loop|block|super|forloop)\b', Name.Builtin), 244 (r'(loop|block|super|forloop)\b', Name.Builtin),
244 (r'[a-zA-Z][a-zA-Z0-9_]*', Name.Variable), 245 (r'[a-zA-Z][a-zA-Z0-9_]*', Name.Variable),
245 (r'\.[a-zA-Z0-9_]+', Name.Variable), 246 (r'\.[a-zA-Z0-9_]+', Name.Variable),
246 (r':?"(\\\\|\\"|[^"])*"', String.Double), 247 (r':?"(\\\\|\\"|[^"])*"', String.Double),
247 (r":?'(\\\\|\\'|[^'])*'", String.Single), 248 (r":?'(\\\\|\\'|[^'])*'", String.Single),

eric ide

mercurial