diff options
Diffstat (limited to 'tests/lexers/matlab/example.txt')
| -rw-r--r-- | tests/lexers/matlab/example.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/lexers/matlab/example.txt b/tests/lexers/matlab/example.txt new file mode 100644 index 00000000..8891f6f6 --- /dev/null +++ b/tests/lexers/matlab/example.txt @@ -0,0 +1,23 @@ +---input--- + function myfunc(s) + a = 1; + end + +---tokens--- +' ' Text.Whitespace +'function' Keyword +' ' Text.Whitespace +'myfunc' Name.Function +'(' Punctuation +'s' Text +')' Punctuation +'\n ' Text.Whitespace +'a' Name +' ' Text.Whitespace +'=' Punctuation +' ' Text.Whitespace +'1' Literal.Number.Integer +';' Punctuation +'\n ' Text.Whitespace +'end' Keyword +'\n' Text.Whitespace |
