Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
denisrosset committed Jul 1, 2020
1 parent 3cd8652 commit 91703e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinxcontrib/mat_lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ class MatlabLexer(RegexLexer):

# quote can be transpose, instead of string:
# (not great, but handles common cases...)
(r'(?<=[\w)\].])\'+', Operator),
(r'(?<=[\w)}\].])\'+', Operator),

(r'(\d+\.\d*|\d*\.\d+)([eEf][+-]?[0-9]+)?', Number.Float),
(r'\d+[eEf][+-]?[0-9]+', Number.Float),
(r'\d+', Number.Integer),

(r'"(""|[^"])*"', String),

(r'(?<![\w)\].])\'', String, 'string'),
(r'(?<![\w)}\].])\'', String, 'string'),

(r'[a-zA-Z_]\w*', Name),
(r'.', Text),
],
Expand Down

0 comments on commit 91703e2

Please sign in to comment.