summaryrefslogtreecommitdiff
path: root/pygments/lexers/make.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/make.py')
-rw-r--r--pygments/lexers/make.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/make.py b/pygments/lexers/make.py
index b222b672..f67f1095 100644
--- a/pygments/lexers/make.py
+++ b/pygments/lexers/make.py
@@ -5,7 +5,7 @@
Lexers for Makefiles and similar.
- :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -102,8 +102,8 @@ class BaseMakefileLexer(RegexLexer):
(r'\$\(', Keyword, 'expansion'),
],
'expansion': [
- (r'[^$a-zA-Z_()]+', Text),
- (r'[a-zA-Z_]+', Name.Variable),
+ (r'[^\w$().-]+', Text),
+ (r'[\w.-]+', Name.Variable),
(r'\$', Keyword),
(r'\(', Keyword, '#push'),
(r'\)', Keyword, '#pop'),