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,17 @@
@BaseScript MyBaseClass baseScript
@DelegatesTo(EmailSpec)
----------------------------------------------------
[
["annotation", "@BaseScript"],
" MyBaseClass baseScript\r\n",
["annotation", "@DelegatesTo"],
["punctuation", "("],
"EmailSpec",
["punctuation", ")"]
]
----------------------------------------------------
Checks for annotations.

View file

@ -0,0 +1,61 @@
as def in abstract
assert boolean break
byte case catch char
class;
const continue
default do double else
enum
extends;
final
finally float for goto
if
implements;
import
instanceof;
int
interface;
long native
new;
package private protected
public return short
static strictfp super
switch synchronized this
throw throws
trait;
transient
try void volatile while
----------------------------------------------------
[
["keyword", "as"], ["keyword", "def"], ["keyword", "in"], ["keyword", "abstract"],
["keyword", "assert"], ["keyword", "boolean"], ["keyword", "break"],
["keyword", "byte"], ["keyword", "case"], ["keyword", "catch"], ["keyword", "char"],
["keyword", "class"], ["punctuation", ";"],
["keyword", "const"], ["keyword", "continue"],
["keyword", "default"], ["keyword", "do"], ["keyword", "double"], ["keyword", "else"],
["keyword", "enum"],
["keyword", "extends"], ["punctuation", ";"],
["keyword", "final"],
["keyword", "finally"], ["keyword", "float"], ["keyword", "for"], ["keyword", "goto"],
["keyword", "if"],
["keyword", "implements"], ["punctuation", ";"],
["keyword", "import"],
["keyword", "instanceof"], ["punctuation", ";"],
["keyword", "int"],
["keyword", "interface"], ["punctuation", ";"],
["keyword", "long"], ["keyword", "native"],
["keyword", "new"], ["punctuation", ";"],
["keyword", "package"], ["keyword", "private"], ["keyword", "protected"],
["keyword", "public"], ["keyword", "return"], ["keyword", "short"],
["keyword", "static"], ["keyword", "strictfp"], ["keyword", "super"],
["keyword", "switch"], ["keyword", "synchronized"], ["keyword", "this"],
["keyword", "throw"], ["keyword", "throws"],
["keyword", "trait"], ["punctuation", ";"],
["keyword", "transient"],
["keyword", "try"], ["keyword", "void"], ["keyword", "volatile"], ["keyword", "while"]
]
----------------------------------------------------
Checks for all keywords.

View file

@ -0,0 +1,43 @@
0b0110
0b0110_1111_0000
0b01G 0b01L 0b01I
0b01D 0b01F
0xBABE
0xBad_Face
0x1.8p1
0xa.fp-2
42_000
3.14_15_9
1.2e3
3E+1
4E-2
42g 42l 42i
42d 42f
----------------------------------------------------
[
["number", "0b0110"],
["number", "0b0110_1111_0000"],
["number", "0b01G"], ["number", "0b01L"], ["number", "0b01I"],
["number", "0b01D"], ["number", "0b01F"],
["number", "0xBABE"],
["number", "0xBad_Face"],
["number", "0x1.8p1"],
["number", "0xa.fp-2"],
["number", "42_000"],
["number", "3.14_15_9"],
["number", "1.2e3"],
["number", "3E+1"],
["number", "4E-2"],
["number", "42g"], ["number", "42l"], ["number", "42i"],
["number", "42d"], ["number", "42f"]
]
----------------------------------------------------
Checks for binary, hexadecimal and decimal numbers.

View file

@ -0,0 +1,45 @@
~
= == =~ ==~
? ?. ?:
* ** *. *= **=
. .@ .&
5..8
5..<8
- -- -= ->
+ ++ +=
! !=
< << <<= <= <=>
> >> >>> >>= >>>= >=
& && &=
| || |=
/
/=
^ ^=
% %=
----------------------------------------------------
[
["operator", "~"],
["operator", "="], ["operator", "=="], ["operator", "=~"], ["operator", "==~"],
["operator", "?"], ["operator", "?."], ["operator", "?:"],
["operator", "*"], ["operator", "**"], ["operator", "*."], ["operator", "*="], ["operator", "**="],
["operator", "."], ["operator", ".@"], ["operator", ".&"],
["number", "5"], ["operator", ".."], ["number", "8"],
["number", "5"], ["operator", "..<"], ["number", "8"],
["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", "%="]
]
----------------------------------------------------
Checks for all operators.

View file

@ -0,0 +1,13 @@
#!foobar
#!/usr/bin/env groovy
----------------------------------------------------
[
["shebang", "#!foobar"],
["shebang", "#!/usr/bin/env groovy"]
]
----------------------------------------------------
Check for shebang comments.

View file

@ -0,0 +1,25 @@
setup:
given:
when:
then:
and:
cleanup:
expect:
where:
----------------------------------------------------
[
["spock-block", "setup:"],
["spock-block", "given:"],
["spock-block", "when:"],
["spock-block", "then:"],
["spock-block", "and:"],
["spock-block", "cleanup:"],
["spock-block", "expect:"],
["spock-block", "where:"]
]
----------------------------------------------------
Checks for all spock blocks.

View file

@ -0,0 +1,48 @@
""""""
"""foo"""
"""foo
bar"""
''''''
'''foo'''
'''foo
bar'''
""
"fo\"o"
''
'fo\'o'
/foo/
/fo\/o/
$/fo$/$o/$
$/foo
bar/$
----------------------------------------------------
[
["string", "\"\"\"\"\"\""],
["string", "\"\"\"foo\"\"\""],
["string", "\"\"\"foo\r\nbar\"\"\""],
["string", "''''''"],
["string", "'''foo'''"],
["string", "'''foo\r\nbar'''"],
["string", "\"\""],
["string", "\"fo\\\"o\""],
["string", "''"],
["string", "'fo\\'o'"],
["string", "/foo/"],
["string", "/fo\\/o/"],
["string", "$/fo$/$o/$"],
["string", "$/foo\r\nbar/$"]
]
----------------------------------------------------
Checks for single quoted, triple single quoted, double quoted,
triple double quoted, slashy and dollar slashy strings.