ThirdParty/Pygments/pygments/lexers/make.py

changeset 4697
c2e9bf425554
parent 4172
4f20dba37ab6
child 5713
6762afd9f963
equal deleted inserted replaced
4696:bf4d19a7cade 4697:c2e9bf425554
3 pygments.lexers.make 3 pygments.lexers.make
4 ~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for Makefiles and similar. 6 Lexers for Makefiles and similar.
7 7
8 :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2015 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
171 ], 171 ],
172 'args': [ 172 'args': [
173 (r'\(', Punctuation, '#push'), 173 (r'\(', Punctuation, '#push'),
174 (r'\)', Punctuation, '#pop'), 174 (r'\)', Punctuation, '#pop'),
175 (r'(\$\{)(.+?)(\})', bygroups(Operator, Name.Variable, Operator)), 175 (r'(\$\{)(.+?)(\})', bygroups(Operator, Name.Variable, Operator)),
176 (r'(\$ENV\{)(.+?)(\})', bygroups(Operator, Name.Variable, Operator)),
176 (r'(\$<)(.+?)(>)', bygroups(Operator, Name.Variable, Operator)), 177 (r'(\$<)(.+?)(>)', bygroups(Operator, Name.Variable, Operator)),
177 (r'(?s)".*?"', String.Double), 178 (r'(?s)".*?"', String.Double),
178 (r'\\\S+', String), 179 (r'\\\S+', String),
179 (r'[^)$"# \t\n]+', String), 180 (r'[^)$"# \t\n]+', String),
180 (r'\n', Text), # explicitly legal 181 (r'\n', Text), # explicitly legal

eric ide

mercurial