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,22 @@
#!/usr/local/bin/lua
--
-- Foobar
--[[Foo
bar]]
--[====[Foo
bar]=====] ]===]
baz]====]
----------------------------------------------------
[
["comment", "#!/usr/local/bin/lua"],
["comment", "--"],
["comment", "-- Foobar"],
["comment", "--[[Foo\r\nbar]]"],
["comment", "--[====[Foo\r\nbar]=====] ]===]\r\nbaz]====]"]
]
----------------------------------------------------
Checks for comments.

View file

@ -0,0 +1,17 @@
foo ()
Foo_bar_42()
foo {}
Foo_bar_42{}
----------------------------------------------------
[
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
["function", "Foo_bar_42"], ["punctuation", "("], ["punctuation", ")"],
["function", "foo"], ["punctuation", "{"], ["punctuation", "}"],
["function", "Foo_bar_42"], ["punctuation", "{"], ["punctuation", "}"]
]
----------------------------------------------------
Checks for functions.

View file

@ -0,0 +1,53 @@
and
break
do
else
elseif
end
false
for
function
goto
if
in
local
nil
not
or
repeat
return
then
true
until
while
----------------------------------------------------
[
["keyword", "and"],
["keyword", "break"],
["keyword", "do"],
["keyword", "else"],
["keyword", "elseif"],
["keyword", "end"],
["keyword", "false"],
["keyword", "for"],
["keyword", "function"],
["keyword", "goto"],
["keyword", "if"],
["keyword", "in"],
["keyword", "local"],
["keyword", "nil"],
["keyword", "not"],
["keyword", "or"],
["keyword", "repeat"],
["keyword", "return"],
["keyword", "then"],
["keyword", "true"],
["keyword", "until"],
["keyword", "while"]
]
----------------------------------------------------
Checks for keywords.

View file

@ -0,0 +1,35 @@
0
42
3.14159
3.
.42
4e14
3.14e+8
.7E-1
4.e12
0xBadFace
0x0.1E
0xA23p-4
0X1.921FB54442D18P+1
----------------------------------------------------
[
["number", "0"],
["number", "42"],
["number", "3.14159"],
["number", "3."],
["number", ".42"],
["number", "4e14"],
["number", "3.14e+8"],
["number", ".7E-1"],
["number", "4.e12"],
["number", "0xBadFace"],
["number", "0x0.1E"],
["number", "0xA23p-4"],
["number", "0X1.921FB54442D18P+1"]
]
----------------------------------------------------
Checks for numbers.

View file

@ -0,0 +1,25 @@
+ - * %
^ & | #
/ //
< << <=
> >> >=
= ==
~ ~=
..
----------------------------------------------------
[
["operator", "+"], ["operator", "-"], ["operator", "*"], ["operator", "%"],
["operator", "^"], ["operator", "&"], ["operator", "|"], ["operator", "#"],
["operator", "/"], ["operator", "//"],
["operator", "<"], ["operator", "<<"], ["operator", "<="],
["operator", ">"], ["operator", ">>"], ["operator", ">="],
["operator", "="], ["operator", "=="],
["operator", "~"], ["operator", "~="],
["operator", ".."]
]
----------------------------------------------------
Checks for operators.

View file

@ -0,0 +1,32 @@
""
"Fo\"obar"
"Foo\
bar\z
baz"
''
'Fo\'obar'
'Foo\
bar\z
baz'
[[Foo
bar]]
[====[Foo
bar]=====] ]===]
baz]====]
----------------------------------------------------
[
["string", "\"\""],
["string", "\"Fo\\\"obar\""],
["string", "\"Foo\\\r\nbar\\z\r\nbaz\""],
["string", "''"],
["string", "'Fo\\'obar'"],
["string", "'Foo\\\r\nbar\\z\r\nbaz'"],
["string", "[[Foo\r\nbar]]"],
["string", "[====[Foo\r\nbar]=====] ]===]\r\nbaz]====]"]
]
----------------------------------------------------
Checks for strings.