summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/lexers/math.py4
-rw-r--r--tests/examplefiles/function.mu1
2 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py
index 9f4c62af..d69a8523 100644
--- a/pygments/lexers/math.py
+++ b/pygments/lexers/math.py
@@ -75,8 +75,8 @@ class MuPADLexer(RegexLexer):
#(r'\b(?:adt|linalg|newDomain|hold)\b', Name.Builtin),
(r'''(?x)
((?:[a-zA-Z_#][a-zA-Z_#0-9]*|`[^`]*`)
- (?:::[a-zA-Z_#][a-zA-Z_#0-9]*|`[^`]*`)*)\s*([(])''',
- bygroups(Name.Function, Punctuation)),
+ (?:::[a-zA-Z_#][a-zA-Z_#0-9]*|`[^`]*`)*)(\s*)([(])''',
+ bygroups(Name.Function, Text, Punctuation)),
(r'''(?x)
(?:[a-zA-Z_#][a-zA-Z_#0-9]*|`[^`]*`)
(?:::[a-zA-Z_#][a-zA-Z_#0-9]*|`[^`]*`)*''', Name.Variable),
diff --git a/tests/examplefiles/function.mu b/tests/examplefiles/function.mu
new file mode 100644
index 00000000..46bb259d
--- /dev/null
+++ b/tests/examplefiles/function.mu
@@ -0,0 +1 @@
+a::b ()