MATLAB lexer does not find 'Number' tokens

Issue #807 resolved
Anonymous created an issue

Here is a way of showing the bug.

Everything works as expected with the Python lexer:

from pygments.lexers import get_lexer_by_name l = get_lexer_by_name('python') for t, v in l.get_tokens('2'): ... print t, v ... Token.Literal.Number.Integer 2 Token.Text

But with the MATLAB lexer, here is the output:

from pygments.lexers import get_lexer_by_name l = get_lexer_by_name('matlab') for t, v in l.get_tokens('2'): ... print t, v ... Token.Text 2 Token.Text

Comments (1)

  1. Log in to comment