diff options
author | Jan Siqueira <janksiqueira@gmail.com> | 2019-11-25 14:30:57 -0300 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2019-11-27 06:30:39 +0100 |
commit | f39476cfefc83c9c6842b7abe20989ea08514c4b (patch) | |
tree | 05491243f16e6a8c57dadd63f8fd774887a412f1 | |
parent | afc4856087923db94674351a7c8988f222d20392 (diff) | |
download | pygments-git-f39476cfefc83c9c6842b7abe20989ea08514c4b.tar.gz |
Fixes #1124
-rw-r--r-- | pygments/lexers/matlab.py | 2 |
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), |