diff options
author | Robin Jarry <robin.jarry@6wind.com> | 2016-04-04 09:38:02 +0200 |
---|---|---|
committer | Robin Jarry <robin.jarry@6wind.com> | 2016-04-04 09:38:02 +0200 |
commit | 9a59ecd4d1d48550a8b7a1ce0774f31f2e31fa3b (patch) | |
tree | 935ceeb9c072c1880277beae57d9d92dcd0fc930 /pygments/lexers/make.py | |
parent | ce93b89a0b9d6b3b0eb828e049952c4ff84421fd (diff) | |
download | pygments-9a59ecd4d1d48550a8b7a1ce0774f31f2e31fa3b.tar.gz |
lexers/make: allow parentheses in variable names
In GNU make, variable names in assignations can be composed of the
expansion of other variables:
FOO-$(SOME-VAR) = some value
Add "(" and ")" to valid characters in a variable name.
Diffstat (limited to 'pygments/lexers/make.py')
-rw-r--r-- | pygments/lexers/make.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/make.py b/pygments/lexers/make.py index f5eac127..b0627aa5 100644 --- a/pygments/lexers/make.py +++ b/pygments/lexers/make.py @@ -90,7 +90,7 @@ class BaseMakefileLexer(RegexLexer): bygroups(Keyword, Text), 'export'), (r'export\s+', Keyword), # assignment - (r'([\w${}.-]+)(\s*)([!?:+]?=)([ \t]*)((?:.*\\\n)+|.*\n)', + (r'([\w${}().-]+)(\s*)([!?:+]?=)([ \t]*)((?:.*\\\n)+|.*\n)', bygroups(Name.Variable, Text, Operator, Text, using(BashLexer))), # strings (r'(?s)"(\\\\|\\.|[^"\\])*"', String.Double), |