update components

This commit is contained in:
Luke Pulverenti 2016-02-03 18:00:01 -05:00
parent 59ea1c2f7d
commit cf577ba8eb
1136 changed files with 59263 additions and 576 deletions

View file

@ -0,0 +1,16 @@
''
'fo\'obar'
'foo
bar'
----------------------------------------------------
[
["atom", "''"],
["atom", "'fo\\'obar'"],
["atom", "'foo\r\nbar'"]
]
----------------------------------------------------
Checks for atoms.

View file

@ -0,0 +1,14 @@
menubutton(text:'Test' underline:0)
----------------------------------------------------
[
["function", "menubutton"], ["punctuation", "("],
["attr-name", "text"], ["punctuation", ":"], ["atom", "'Test'"],
["attr-name", "underline"], ["punctuation", ":"], ["number", "0"],
["punctuation", ")"]
]
----------------------------------------------------
Checks for parameter names.

View file

@ -0,0 +1,18 @@
%
% Foobar
/**/
/* Foo
bar */
----------------------------------------------------
[
["comment", "%"],
["comment", "% Foobar"],
["comment", "/**/"],
["comment", "/* Foo\r\nbar */"]
]
----------------------------------------------------
Checks for comments.

View file

@ -0,0 +1,13 @@
foobar()
{Foobar}
----------------------------------------------------
[
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["punctuation", "{"], ["function", "Foobar"], ["punctuation", "}"]
]
----------------------------------------------------
Checks for functions and procedures.

View file

@ -0,0 +1,103 @@
$
_
[]
at
attr
case
catch
choice
class
cond
declare
define
dis
else
elsecase
elseif
end
export
fail
false
feat
finally
from
fun
functor
if
import
in
local
lock
meth
nil
not
of
or
prepare
proc
prop
raise
require
self
skip
then
thread
true
try
unit
----------------------------------------------------
[
["keyword", "$"],
["keyword", "_"],
["keyword", "[]"],
["keyword", "at"],
["keyword", "attr"],
["keyword", "case"],
["keyword", "catch"],
["keyword", "choice"],
["keyword", "class"],
["keyword", "cond"],
["keyword", "declare"],
["keyword", "define"],
["keyword", "dis"],
["keyword", "else"],
["keyword", "elsecase"],
["keyword", "elseif"],
["keyword", "end"],
["keyword", "export"],
["keyword", "fail"],
["keyword", "false"],
["keyword", "feat"],
["keyword", "finally"],
["keyword", "from"],
["keyword", "fun"],
["keyword", "functor"],
["keyword", "if"],
["keyword", "import"],
["keyword", "in"],
["keyword", "local"],
["keyword", "lock"],
["keyword", "meth"],
["keyword", "nil"],
["keyword", "not"],
["keyword", "of"],
["keyword", "or"],
["keyword", "prepare"],
["keyword", "proc"],
["keyword", "prop"],
["keyword", "raise"],
["keyword", "require"],
["keyword", "self"],
["keyword", "skip"],
["keyword", "then"],
["keyword", "thread"],
["keyword", "true"],
["keyword", "try"],
["keyword", "unit"]
]
----------------------------------------------------
Checks for keywords.

View file

@ -0,0 +1,35 @@
0
42
0154
0xBadFace
0B0101
3.14159
2e8
3.E~7
4.8E12
&0
&a
&\n
&\124
----------------------------------------------------
[
["number", "0"],
["number", "42"],
["number", "0154"],
["number", "0xBadFace"],
["number", "0B0101"],
["number", "3.14159"],
["number", "2e8"],
["number", "3.E~7"],
["number", "4.8E12"],
["number", "&0"],
["number", "&a"],
["number", "&\\n"],
["number", "&\\124"]
]
----------------------------------------------------
Checks for numbers.

View file

@ -0,0 +1,35 @@
:= :: :::
< <- <: <=
= == =: =< =<:
> >= >: >=:
\= \=:
! !!
| # + -
* / , ~
^ @
andthen
div
mod
orelse
----------------------------------------------------
[
["operator", ":="], ["operator", "::"], ["operator", ":::"],
["operator", "<"], ["operator", "<-"], ["operator", "<:"], ["operator", "<="],
["operator", "="], ["operator", "=="], ["operator", "=:"], ["operator", "=<"], ["operator", "=<:"],
["operator", ">"], ["operator", ">="], ["operator", ">:"], ["operator", ">=:"],
["operator", "\\="], ["operator", "\\=:"],
["operator", "!"], ["operator", "!!"],
["operator", "|"], ["operator", "#"], ["operator", "+"], ["operator", "-"],
["operator", "*"], ["operator", "/"], ["operator", ","], ["operator", "~"],
["operator", "^"], ["operator", "@"],
["operator", "andthen"],
["operator", "div"],
["operator", "mod"],
["operator", "orelse"]
]
----------------------------------------------------
Checks for operators.

View file

@ -0,0 +1,16 @@
""
"Fo\"obar"
"Foo
bar"
----------------------------------------------------
[
["string", "\"\""],
["string", "\"Fo\\\"obar\""],
["string", "\"Foo\r\nbar\""]
]
----------------------------------------------------
Checks for strings.

View file

@ -0,0 +1,15 @@
A
Foobar
Foo42
----------------------------------------------------
[
["variable", "A"],
["variable", "Foobar"],
["variable", "Foo42"]
]
----------------------------------------------------
Checks for variables.