update components
This commit is contained in:
parent
5e3ab690af
commit
90eb88f883
1155 changed files with 62261 additions and 84 deletions
12
dashboard-ui/bower_components/prism/tests/languages/clike/boolean_feature.test
vendored
Normal file
12
dashboard-ui/bower_components/prism/tests/languages/clike/boolean_feature.test
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
true; false;
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["boolean", "true"], ["punctuation", ";"],
|
||||
["boolean", "false"], ["punctuation", ";"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for booleans.
|
53
dashboard-ui/bower_components/prism/tests/languages/clike/class-name_feature.test
vendored
Normal file
53
dashboard-ui/bower_components/prism/tests/languages/clike/class-name_feature.test
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
class Foo
|
||||
interface bar
|
||||
extends Foo
|
||||
implements bar
|
||||
trait Foo
|
||||
instanceof \bar
|
||||
new \Foo
|
||||
catch (bar)
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"class ",
|
||||
["class-name", [
|
||||
"Foo"
|
||||
]],
|
||||
"\r\ninterface ",
|
||||
["class-name", [
|
||||
"bar"
|
||||
]],
|
||||
"\r\nextends ",
|
||||
["class-name", [
|
||||
"Foo"
|
||||
]],
|
||||
"\r\nimplements ",
|
||||
["class-name", [
|
||||
"bar"
|
||||
]],
|
||||
"\r\ntrait ",
|
||||
["class-name", [
|
||||
"Foo"
|
||||
]],
|
||||
["keyword", "instanceof"],
|
||||
["class-name", [
|
||||
["punctuation", "\\"],
|
||||
"bar"
|
||||
]],
|
||||
["keyword", "new"],
|
||||
["class-name", [
|
||||
["punctuation", "\\"],
|
||||
"Foo"
|
||||
]],
|
||||
["keyword", "catch"],
|
||||
["punctuation", "("],
|
||||
["class-name", [
|
||||
"bar"
|
||||
]],
|
||||
["punctuation", ")"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for class names.
|
16
dashboard-ui/bower_components/prism/tests/languages/clike/comment_feature.test
vendored
Normal file
16
dashboard-ui/bower_components/prism/tests/languages/clike/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// foobar
|
||||
/**/
|
||||
/* foo
|
||||
bar */
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "// foobar"],
|
||||
["comment", "/**/"],
|
||||
["comment", "/* foo\r\nbar */"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for single-line and multi-line comments.
|
23
dashboard-ui/bower_components/prism/tests/languages/clike/function_feature.test
vendored
Normal file
23
dashboard-ui/bower_components/prism/tests/languages/clike/function_feature.test
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
foo()
|
||||
foo_bar()
|
||||
f42()
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["function", "foo"],
|
||||
["punctuation", "("],
|
||||
["punctuation", ")"],
|
||||
|
||||
["function", "foo_bar"],
|
||||
["punctuation", "("],
|
||||
["punctuation", ")"],
|
||||
|
||||
["function", "f42"],
|
||||
["punctuation", "("],
|
||||
["punctuation", ")"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for functions.
|
30
dashboard-ui/bower_components/prism/tests/languages/clike/keyword_feature.test
vendored
Normal file
30
dashboard-ui/bower_components/prism/tests/languages/clike/keyword_feature.test
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
if; else; while; do; for;
|
||||
return; in; instanceof; function; new;
|
||||
try; throw; catch; finally; null;
|
||||
break; continue;
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "if"], ["punctuation", ";"],
|
||||
["keyword", "else"], ["punctuation", ";"],
|
||||
["keyword", "while"], ["punctuation", ";"],
|
||||
["keyword", "do"], ["punctuation", ";"],
|
||||
["keyword", "for"], ["punctuation", ";"],
|
||||
["keyword", "return"], ["punctuation", ";"],
|
||||
["keyword", "in"], ["punctuation", ";"],
|
||||
["keyword", "instanceof"], ["punctuation", ";"],
|
||||
["keyword", "function"], ["punctuation", ";"],
|
||||
["keyword", "new"], ["punctuation", ";"],
|
||||
["keyword", "try"], ["punctuation", ";"],
|
||||
["keyword", "throw"], ["punctuation", ";"],
|
||||
["keyword", "catch"], ["punctuation", ";"],
|
||||
["keyword", "finally"], ["punctuation", ";"],
|
||||
["keyword", "null"], ["punctuation", ";"],
|
||||
["keyword", "break"], ["punctuation", ";"],
|
||||
["keyword", "continue"], ["punctuation", ";"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all keywords.
|
23
dashboard-ui/bower_components/prism/tests/languages/clike/number_feature.test
vendored
Normal file
23
dashboard-ui/bower_components/prism/tests/languages/clike/number_feature.test
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
42
|
||||
3.14159
|
||||
4e10
|
||||
2.1e-10
|
||||
0.4e+2
|
||||
0xbabe
|
||||
0xBABE
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "42"],
|
||||
["number", "3.14159"],
|
||||
["number", "4e10"],
|
||||
["number", "2.1e-10"],
|
||||
["number", "0.4e+2"],
|
||||
["number", "0xbabe"],
|
||||
["number", "0xBABE"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for decimal numbers and hexadecimal numbers.
|
21
dashboard-ui/bower_components/prism/tests/languages/clike/operator_feature.test
vendored
Normal file
21
dashboard-ui/bower_components/prism/tests/languages/clike/operator_feature.test
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
- + -- ++
|
||||
< <= > >=
|
||||
= == ===
|
||||
! != !==
|
||||
& && | ||
|
||||
? * / ~ ^ %
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["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.
|
24
dashboard-ui/bower_components/prism/tests/languages/clike/string_feature.test
vendored
Normal file
24
dashboard-ui/bower_components/prism/tests/languages/clike/string_feature.test
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
""
|
||||
''
|
||||
"f\"oo"
|
||||
'b\'ar'
|
||||
"foo\
|
||||
bar"
|
||||
'foo\
|
||||
bar'
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "\"\""],
|
||||
["string", "''"],
|
||||
["string", "\"f\\\"oo\""],
|
||||
["string", "'b\\'ar'"],
|
||||
["string", "\"foo\\\r\nbar\""],
|
||||
["string", "'foo\\\r\nbar'"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for empty strings, single-line strings and
|
||||
multi-line strings, both single-quoted and double-quoted.
|
Loading…
Add table
Add a link
Reference in a new issue