diff options
Diffstat (limited to 'pygments/lexers/matlab.py')
-rw-r--r-- | pygments/lexers/matlab.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/matlab.py b/pygments/lexers/matlab.py index 16df0398..d39f1ff1 100644 --- a/pygments/lexers/matlab.py +++ b/pygments/lexers/matlab.py @@ -162,10 +162,10 @@ class MatlabLexer(RegexLexer): and '{' not in first_non_comment): return 1. # comment - elif re.match(r'^\s*%', text, re.M): + elif re.search(r'^\s*%', text, re.M): return 0.2 # system cmd - elif re.match(r'^!\w+', text, re.M): + elif re.search(r'^!\w+', text, re.M): return 0.2 |