update components
This commit is contained in:
parent
2a4b879c21
commit
63664e6c1c
1155 changed files with 62261 additions and 84 deletions
29
dashboard-ui/bower_components/prism/tests/languages/ruby/builtin_feature.test
vendored
Normal file
29
dashboard-ui/bower_components/prism/tests/languages/ruby/builtin_feature.test
vendored
Normal 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.
|
13
dashboard-ui/bower_components/prism/tests/languages/ruby/comment_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/ruby/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
#
|
||||
# foobar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "#"],
|
||||
["comment", "# foobar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
21
dashboard-ui/bower_components/prism/tests/languages/ruby/constant_feature.test
vendored
Normal file
21
dashboard-ui/bower_components/prism/tests/languages/ruby/constant_feature.test
vendored
Normal 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.
|
39
dashboard-ui/bower_components/prism/tests/languages/ruby/keyword_feature.test
vendored
Normal file
39
dashboard-ui/bower_components/prism/tests/languages/ruby/keyword_feature.test
vendored
Normal 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.
|
45
dashboard-ui/bower_components/prism/tests/languages/ruby/regex_feature.test
vendored
Normal file
45
dashboard-ui/bower_components/prism/tests/languages/ruby/regex_feature.test
vendored
Normal 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.
|
285
dashboard-ui/bower_components/prism/tests/languages/ruby/string_feature.test
vendored
Normal file
285
dashboard-ui/bower_components/prism/tests/languages/ruby/string_feature.test
vendored
Normal 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.
|
17
dashboard-ui/bower_components/prism/tests/languages/ruby/symbol_feature.test
vendored
Normal file
17
dashboard-ui/bower_components/prism/tests/languages/ruby/symbol_feature.test
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
:_
|
||||
:foo
|
||||
:BAR?
|
||||
:Baz_42!
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["symbol", ":_"],
|
||||
["symbol", ":foo"],
|
||||
["symbol", ":BAR?"],
|
||||
["symbol", ":Baz_42!"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for symbols.
|
27
dashboard-ui/bower_components/prism/tests/languages/ruby/variable_feature.test
vendored
Normal file
27
dashboard-ui/bower_components/prism/tests/languages/ruby/variable_feature.test
vendored
Normal 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.
|
Loading…
Add table
Add a link
Reference in a new issue