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,29 @@
Array Bignum Binding
Class;
Continuation Dir Exception
FalseClass File Stat File
Fixnum Fload Hash Integer
IO MatchData Method Module
NilClass Numeric Object
Proc Range Regexp String
Struct TMS Symbol ThreadGroup
Thread Time TrueClass
----------------------------------------------------
[
["builtin", "Array"], ["builtin", "Bignum"], ["builtin", "Binding"],
["builtin", "Class"], ["punctuation", ";"],
["builtin", "Continuation"], ["builtin", "Dir"], ["builtin", "Exception"],
["builtin", "FalseClass"], ["builtin", "File"], ["builtin", "Stat"], ["builtin", "File"],
["builtin", "Fixnum"], ["builtin", "Fload"], ["builtin", "Hash"], ["builtin", "Integer"],
["builtin", "IO"], ["builtin", "MatchData"], ["builtin", "Method"], ["builtin", "Module"],
["builtin", "NilClass"], ["builtin", "Numeric"], ["builtin", "Object"],
["builtin", "Proc"], ["builtin", "Range"], ["builtin", "Regexp"], ["builtin", "String"],
["builtin", "Struct"], ["builtin", "TMS"], ["builtin", "Symbol"], ["builtin", "ThreadGroup"],
["builtin", "Thread"], ["builtin", "Time"], ["builtin", "TrueClass"]
]
----------------------------------------------------
Checks for all builtins.

View file

@ -0,0 +1,13 @@
#
# foobar
----------------------------------------------------
[
["comment", "#"],
["comment", "# foobar"]
]
----------------------------------------------------
Checks for comments.

View file

@ -0,0 +1,21 @@
Foobar
FOO_BAR_42
F
FOO
BAR?
BAZ!
----------------------------------------------------
[
["constant", "Foobar"],
["constant", "FOO_BAR_42"],
["constant", "F"],
["constant", "FOO"],
["constant", "BAR?"],
["constant", "BAZ!"]
]
----------------------------------------------------
Checks for constants.

View file

@ -0,0 +1,39 @@
alias and BEGIN begin
break case
class;
def
define_method defined
do each else elsif
END end ensure false
for if in module
new;
next nil not
or raise redo require
rescue retry return
self super then throw
true undef unless until
when while yield
----------------------------------------------------
[
["keyword", "alias"], ["keyword", "and"], ["keyword", "BEGIN"], ["keyword", "begin"],
["keyword", "break"], ["keyword", "case"],
["keyword", "class"], ["punctuation", ";"],
["keyword", "def"],
["keyword", "define_method"], ["keyword", "defined"],
["keyword", "do"], ["keyword", "each"], ["keyword", "else"], ["keyword", "elsif"],
["keyword", "END"], ["keyword", "end"], ["keyword", "ensure"], ["keyword", "false"],
["keyword", "for"], ["keyword", "if"], ["keyword", "in"], ["keyword", "module"],
["keyword", "new"], ["punctuation", ";"],
["keyword", "next"], ["keyword", "nil"], ["keyword", "not"],
["keyword", "or"], ["keyword", "raise"], ["keyword", "redo"], ["keyword", "require"],
["keyword", "rescue"], ["keyword", "retry"], ["keyword", "return"],
["keyword", "self"], ["keyword", "super"], ["keyword", "then"], ["keyword", "throw"],
["keyword", "true"], ["keyword", "undef"], ["keyword", "unless"], ["keyword", "until"],
["keyword", "when"], ["keyword", "while"], ["keyword", "yield"]
]
----------------------------------------------------
Checks for all keywords.

View file

@ -0,0 +1,45 @@
/[foo]\/bar/gim
/[bar]/,
/./i;
%r!foo?bar#{39+3}!
%r(foo?bar#{39+3})
%r{foo?bar#{39+3}}
%r[foo?bar#{39+3}]
%r<foo?bar#{39+3}>
----------------------------------------------------
[
["regex", "/[foo]\\/bar/gim"],
["regex", "/[bar]/"], ["punctuation", ","],
["regex", "/./i"], ["punctuation", ";"],
["regex", ["%r!foo?bar", ["interpolation", [
["delimiter", "#{"],
["number", "39"], ["operator", "+"], ["number", "3"],
["delimiter", "}"]
]], "!"]],
["regex", ["%r(foo?bar", ["interpolation", [
["delimiter", "#{"],
["number", "39"], ["operator", "+"], ["number", "3"],
["delimiter", "}"]
]], ")"]],
["regex", ["%r{foo?bar", ["interpolation", [
["delimiter", "#{"],
["number", "39"], ["operator", "+"], ["number", "3"],
["delimiter", "}"]
]], "}"]],
["regex", ["%r[foo?bar", ["interpolation", [
["delimiter", "#{"],
["number", "39"], ["operator", "+"], ["number", "3"],
["delimiter", "}"]
]], "]"]],
["regex", ["%r<foo?bar", ["interpolation", [
["delimiter", "#{"],
["number", "39"], ["operator", "+"], ["number", "3"],
["delimiter", "}"]
]], ">"]]
]
----------------------------------------------------
Checks for regex.

View file

@ -0,0 +1,285 @@
''
""
'foo'
"foo"
'foo\
bar'
"foo\
bar"
"foo #{ 42 } bar"
%!foo #{ 42 }!
%(foo #{ 42 })
%{foo #{ 42 }}
%[foo #{ 42 }]
%<foo #{ 42 }>
%Q!foo #{ 42 }!
%Q(foo #{ 42 })
%Q{foo #{ 42 }}
%Q[foo #{ 42 }]
%Q<foo #{ 42 }>
%I!foo #{ 42 }!
%I(foo #{ 42 })
%I{foo #{ 42 }}
%I[foo #{ 42 }]
%I<foo #{ 42 }>
%W!foo #{ 42 }!
%W(foo #{ 42 })
%W{foo #{ 42 }}
%W[foo #{ 42 }]
%W<foo #{ 42 }>
%x!foo #{ 42 }!
%x(foo #{ 42 })
%x{foo #{ 42 }}
%x[foo #{ 42 }]
%x<foo #{ 42 }>
----------------------------------------------------
[
["string", ["''"]],
["string", ["\"\""]],
["string", ["'foo'"]],
["string", ["\"foo\""]],
["string", ["'foo\\\r\nbar'"]],
["string", ["\"foo\\\r\nbar\""]],
["string", [
"\"foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
" bar\""
]],
["string", [
"%!foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"!"
]],
["string", [
"%(foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
")"
]],
["string", [
"%{foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"}"
]],
["string", [
"%[foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"]"
]],
["string", [
"%<foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
">"
]],
["string", [
"%Q!foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"!"
]],
["string", [
"%Q(foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
")"
]],
["string", [
"%Q{foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"}"
]],
["string", [
"%Q[foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"]"
]],
["string", [
"%Q<foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
">"
]],
["string", [
"%I!foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"!"
]],
["string", [
"%I(foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
")"
]],
["string", [
"%I{foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"}"
]],
["string", [
"%I[foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"]"
]],
["string", [
"%I<foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
">"
]],
["string", [
"%W!foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"!"
]],
["string", [
"%W(foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
")"
]],
["string", [
"%W{foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"}"
]],
["string", [
"%W[foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"]"
]],
["string", [
"%W<foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
">"
]],
["string", [
"%x!foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"!"
]],
["string", [
"%x(foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
")"
]],
["string", [
"%x{foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"}"
]],
["string", [
"%x[foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
"]"
]],
["string", [
"%x<foo ",
["interpolation", [
["delimiter", "#{"],
["number", "42"],
["delimiter", "}"]
]],
">"
]]
]
----------------------------------------------------
Checks for strings and string interpolation.

View file

@ -0,0 +1,17 @@
:_
:foo
:BAR?
:Baz_42!
----------------------------------------------------
[
["symbol", ":_"],
["symbol", ":foo"],
["symbol", ":BAR?"],
["symbol", ":Baz_42!"]
]
----------------------------------------------------
Checks for symbols.

View file

@ -0,0 +1,27 @@
$_
$foo
$BAR?
$Baz_42!
@_
@foo
@BAR?
@Baz_42!
----------------------------------------------------
[
["variable", "$_"],
["variable", "$foo"],
["variable", "$BAR?"],
["variable", "$Baz_42!"],
["variable", "@_"],
["variable", "@foo"],
["variable", "@BAR?"],
["variable", "@Baz_42!"]
]
----------------------------------------------------
Checks for variables.