update components

This commit is contained in:
Luke Pulverenti 2016-02-02 21:12:02 -05:00
parent 2a4b879c21
commit 63664e6c1c
1155 changed files with 62261 additions and 84 deletions

View file

@ -0,0 +1,16 @@
% foobar
%{}%
%{ foo
bar }%
----------------------------------------------------
[
["comment", "% foobar"],
["comment", "%{}%"],
["comment", "%{ foo\r\nbar }%"]
]
----------------------------------------------------
Checks for single-line and multi-line comments.

View file

@ -0,0 +1,13 @@
foo()
foo_42()
----------------------------------------------------
[
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
["function", "foo_42"], ["punctuation", "("], ["punctuation", ")"]
]
----------------------------------------------------
Checks for functions.

View file

@ -0,0 +1,21 @@
break case catch continue
else elseif end for
function if inf NaN
otherwise parfor pause
pi return switch
try while
----------------------------------------------------
[
["keyword", "break"], ["keyword", "case"], ["keyword", "catch"], ["keyword", "continue"],
["keyword", "else"], ["keyword", "elseif"], ["keyword", "end"], ["keyword", "for"],
["keyword", "function"], ["keyword", "if"], ["keyword", "inf"], ["keyword", "NaN"],
["keyword", "otherwise"], ["keyword", "parfor"], ["keyword", "pause"],
["keyword", "pi"], ["keyword", "return"], ["keyword", "switch"],
["keyword", "try"], ["keyword", "while"]
]
----------------------------------------------------
Checks for all keywords.

View file

@ -0,0 +1,27 @@
42
3.14159
2.1e2
3.2E+4
0.1e-5
3i
2j
i
j
----------------------------------------------------
[
["number", "42"],
["number", "3.14159"],
["number", "2.1e2"],
["number", "3.2E+4"],
["number", "0.1e-5"],
["number", "3i"],
["number", "2j"],
["number", "i"],
["number", "j"]
]
----------------------------------------------------
Checks for numbers.

View file

@ -0,0 +1,29 @@
.' .^
.* ./ .\
@ ^ :
+ - ~
* / \
< <= > >=
== ~=
& &&
| ||
A'
----------------------------------------------------
[
["operator", ".'"], ["operator", ".^"],
["operator", ".*"], ["operator", "./"], ["operator", ".\\"],
["operator", "@"], ["operator", "^"], ["operator", ":"],
["operator", "+"], ["operator", "-"], ["operator", "~"],
["operator", "*"], ["operator", "/"], ["operator", "\\"],
["operator", "<"], ["operator", "<="], ["operator", ">"], ["operator", ">="],
["operator", "=="], ["operator", "~="],
["operator", "&"], ["operator", "&&"],
["operator", "|"], ["operator", "||"],
"\r\nA", ["operator", "'"]
]
----------------------------------------------------
Checks for all operators.

View file

@ -0,0 +1,13 @@
''
'foo''bar'
----------------------------------------------------
[
["string", "''"],
["string", "'foo''bar'"]
]
----------------------------------------------------
Checks for strings.