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,21 @@
@Deprecated(SUBSYSTEM_DEPRECATED)
@SetUp
@Suppress
@field:Ann
@file:JvmName
@set:[Inject VisibleForTesting]
----------------------------------------------------
[
["annotation", "@Deprecated"], ["punctuation", "("], "SUBSYSTEM_DEPRECATED", ["punctuation", ")"],
["annotation", "@SetUp"],
["annotation", "@Suppress"],
["annotation", "@field:Ann"],
["annotation", "@file:JvmName"],
["annotation", "@set:[Inject VisibleForTesting]"]
]
----------------------------------------------------
Checks for annotations.

View file

@ -0,0 +1,16 @@
foo()
foo_Bar_42()
list.filter {}
----------------------------------------------------
[
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
["function", "foo_Bar_42"], ["punctuation", "("], ["punctuation", ")"],
"\r\nlist", ["punctuation", "."],
["function", "filter"], ["punctuation", "{"], ["punctuation", "}"]
]
----------------------------------------------------
Checks for functions.

View file

@ -0,0 +1,46 @@
"$foo ${bar} ${'$'} ${foobar()}"
"""
$foo ${bar}
${'$'} ${foobar()}
"""
----------------------------------------------------
[
["string", [
"\"",
["interpolation", "$foo"],
["interpolation", [
["delimiter", "${"], "bar", ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"], ["string", "'$'"], ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"],
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["delimiter", "}"]
]],
"\""
]],
["raw-string", [
"\"\"\"\r\n",
["interpolation", "$foo"],
["interpolation", [
["delimiter", "${"], "bar", ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"], ["string", "'$'"], ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"],
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["delimiter", "}"]
]],
"\r\n\"\"\""
]]
]
----------------------------------------------------
Checks for string interpolation.

View file

@ -0,0 +1,121 @@
abstract
annotation
as
break
by
catch
class
companion
const
constructor
continue
crossinline
data
do
else
enum
final
finally
for
fun
get
if
import
in
init
inline
inner
interface
internal
is
lateinit
noinline
null
object
open
out
override
package
private
protected
public
reified
return
sealed
set
super
tailrec
this
throw
to
try
val
var
when
where
while
----------------------------------------------------
[
["keyword", "abstract"],
["keyword", "annotation"],
["keyword", "as"],
["keyword", "break"],
["keyword", "by"],
["keyword", "catch"],
["keyword", "class"],
["keyword", "companion"],
["keyword", "const"],
["keyword", "constructor"],
["keyword", "continue"],
["keyword", "crossinline"],
["keyword", "data"],
["keyword", "do"],
["keyword", "else"],
["keyword", "enum"],
["keyword", "final"],
["keyword", "finally"],
["keyword", "for"],
["keyword", "fun"],
["keyword", "get"],
["keyword", "if"],
["keyword", "import"],
["keyword", "in"],
["keyword", "init"],
["keyword", "inline"],
["keyword", "inner"],
["keyword", "interface"],
["keyword", "internal"],
["keyword", "is"],
["keyword", "lateinit"],
["keyword", "noinline"],
["keyword", "null"],
["keyword", "object"],
["keyword", "open"],
["keyword", "out"],
["keyword", "override"],
["keyword", "package"],
["keyword", "private"],
["keyword", "protected"],
["keyword", "public"],
["keyword", "reified"],
["keyword", "return"],
["keyword", "sealed"],
["keyword", "set"],
["keyword", "super"],
["keyword", "tailrec"],
["keyword", "this"],
["keyword", "throw"],
["keyword", "to"],
["keyword", "try"],
["keyword", "val"],
["keyword", "var"],
["keyword", "when"],
["keyword", "where"],
["keyword", "while"]
]
----------------------------------------------------
Checks for keywords.

View file

@ -0,0 +1,15 @@
loop@
break@loop
return@forEach
----------------------------------------------------
[
["label", "loop@"],
["keyword", "break"], ["label", "@loop"],
["keyword", "return"], ["label", "@forEach"]
]
----------------------------------------------------
Checks for labels.

View file

@ -0,0 +1,29 @@
123
123L
0x0F
0b00001011
123.5
123.5e10
123.5e-10
123.5e+10
123.5f
123.5F
----------------------------------------------------
[
["number", "123"],
["number", "123L"],
["number", "0x0F"],
["number", "0b00001011"],
["number", "123.5"],
["number", "123.5e10"],
["number", "123.5e-10"],
["number", "123.5e+10"],
["number", "123.5f"],
["number", "123.5F"]
]
----------------------------------------------------
Checks for numbers.

View file

@ -0,0 +1,31 @@
+ ++ +=
- -- -= ->
= == ===
! !! != !==
/ /= * *=
% %=
< <= > >=
? ?: : ::
.. && ||
and inv or
shl shr ushr xor
----------------------------------------------------
[
["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", "||"],
["operator", "and"], ["operator", "inv"], ["operator", "or"],
["operator", "shl"], ["operator", "shr"], ["operator", "ushr"], ["operator", "xor"]
]
----------------------------------------------------
Checks for operators.

View file

@ -0,0 +1,18 @@
""""""
"""Foo "bar"" baz"""
"""
"Foo"
bar
"""
----------------------------------------------------
[
["raw-string", ["\"\"\"\"\"\""]],
["raw-string", ["\"\"\"Foo \"bar\"\" baz\"\"\""]],
["raw-string", ["\"\"\"\r\n\"Foo\"\r\nbar\r\n\"\"\""]]
]
----------------------------------------------------
Checks for raw strings.