This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/matlab/test_dot_operator.txt
Antony Lee e92868536d
MATLAB parser cleanup & fix for parsing 1./x (#1673)
* Clarify recognition of "command form" by MATLAB parser.

Expand a bit the explanation; remove an unnecessary non-capturing group,
replace \s+ by \s at the end (we just need to check for the presence of
a space).

* MATLAB: Correctly parse 1./x as (1)(./)(x).
2021-02-06 14:58:34 +01:00

10 lines
178 B
Text

# 1./x is (1)(./)(x), not (1.)(/)(x)
---input---
1./x
---tokens---
'1' Literal.Number.Integer
'./' Operator
'x' Name
'\n' Text.Whitespace