7546:bf5f777260a6 | 7547:21b0534faebc |
---|---|
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-2017 by the Pygments team, see AUTHORS. | 8 :copyright: Copyright 2006-2019 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, '#' + proc | 82 yield match.start(), Comment.Preproc, u'#' + 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'), |