summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Siqueira <janksiqueira@gmail.com>2019-11-25 14:30:57 -0300
committerGeorg Brandl <georg@python.org>2019-11-27 06:30:39 +0100
commitf39476cfefc83c9c6842b7abe20989ea08514c4b (patch)
tree05491243f16e6a8c57dadd63f8fd774887a412f1
parentafc4856087923db94674351a7c8988f222d20392 (diff)
downloadpygments-git-f39476cfefc83c9c6842b7abe20989ea08514c4b.tar.gz
Fixes #1124
-rw-r--r--pygments/lexers/matlab.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/lexers/matlab.py b/pygments/lexers/matlab.py
index f687810b..6c91f2d0 100644
--- a/pygments/lexers/matlab.py
+++ b/pygments/lexers/matlab.py
@@ -124,6 +124,8 @@ class MatlabLexer(RegexLexer):
# (not great, but handles common cases...)
(r'(?<=[\w)\].])\'+', Operator),
+ (r'"[^"]*"', String),
+
(r'(?<![\w)\].])\'', String, 'string'),
(r'[a-zA-Z_]\w*', Name),
(r'.', Text),