summaryrefslogtreecommitdiff
path: root/pygments/lexers/make.py
diff options
context:
space:
mode:
authorRobin Jarry <robin.jarry@6wind.com>2016-04-04 09:38:02 +0200
committerRobin Jarry <robin.jarry@6wind.com>2016-04-04 09:38:02 +0200
commit9a59ecd4d1d48550a8b7a1ce0774f31f2e31fa3b (patch)
tree935ceeb9c072c1880277beae57d9d92dcd0fc930 /pygments/lexers/make.py
parentce93b89a0b9d6b3b0eb828e049952c4ff84421fd (diff)
downloadpygments-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.py2
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),