summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/graphics.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pygments/lexers/graphics.py b/pygments/lexers/graphics.py
index 63c76373..a20dfb28 100644
--- a/pygments/lexers/graphics.py
+++ b/pygments/lexers/graphics.py
@@ -562,13 +562,14 @@ class GnuplotLexer(RegexLexer):
Keyword, 'noargs'),
(r'([a-zA-Z_]\w*)(\s*)(=)',
bygroups(Name.Variable, Whitespace, Operator), 'genericargs'),
- (r'([a-zA-Z_]\w*)(\s*\(.*?\)\s*)(=)',
- bygroups(Name.Function, Whitespace, Operator), 'genericargs'),
+ (r'([a-zA-Z_]\w*)(\s*)(\()(.*?)(\))(\s*)(=)',
+ bygroups(Name.Function, Whitespace, Punctuation,
+ Text, Punctuation, Whitespace, Operator), 'genericargs'),
(r'@[a-zA-Z_]\w*', Name.Constant), # macros
(r';', Keyword),
],
'comment': [
- (r'[^\\\n]', Comment),
+ (r'[^\\\n]+', Comment),
(r'\\\n', Comment),
(r'\\', Comment),
# don't add the newline to the Comment token