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_line_continuation.txt
Alex Povel 3c06350da8
Provide (all?) Matlab built-ins (#1705)
* Add (all?) Matlab built-ins

See also https://de.mathworks.com/help/matlab/referencelist.html

* Adjust pytest goldens
2021-02-14 08:57:22 +01:00

25 lines
608 B
Text

# Test that line continuation by ellipses does not produce generic
# output on the second line.
---input---
set('T',300,...
'P',101325);
---tokens---
'set' Name.Builtin
'(' Punctuation
"'" Literal.String
"T'" Literal.String
',' Punctuation
'300' Literal.Number.Integer
',' Punctuation
'...' Keyword
'\n' Text.Whitespace
"'" Literal.String
"P'" Literal.String
',' Punctuation
'101325' Literal.Number.Integer
')' Punctuation
';' Punctuation
'\n' Text.Whitespace