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

changeset 7701
25f42e208e08
parent 7547
21b0534faebc
child 7983
54c5cfbb1e29
equal deleted inserted replaced
7700:a3cf077a8db3 7701:25f42e208e08
3 pygments.lexers.haxe 3 pygments.lexers.haxe
4 ~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for Haxe and related stuff. 6 Lexers for Haxe and related stuff.
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
77 77
78 # #error can be optionally follow by the error msg 78 # #error can be optionally follow by the error msg
79 if proc in ['error']: 79 if proc in ['error']:
80 ctx.stack.append('preproc-error') 80 ctx.stack.append('preproc-error')
81 81
82 yield match.start(), Comment.Preproc, u'#' + proc 82 yield match.start(), Comment.Preproc, '#' + proc
83 ctx.pos = match.end() 83 ctx.pos = match.end()
84 84
85 tokens = { 85 tokens = {
86 'root': [ 86 'root': [
87 include('spaces'), 87 include('spaces'),

eric ide

mercurial