update components
This commit is contained in:
parent
2a4b879c21
commit
63664e6c1c
1155 changed files with 62261 additions and 84 deletions
19
dashboard-ui/bower_components/prism/tests/languages/haml/code_feature.test
vendored
Normal file
19
dashboard-ui/bower_components/prism/tests/languages/haml/code_feature.test
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
~ 42
|
||||
- 42
|
||||
= 42
|
||||
&= 42
|
||||
!= 42
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "~"], ["code", [["number", "42"]]],
|
||||
["punctuation", "-"], ["code", [["number", "42"]]],
|
||||
["punctuation", "="], ["code", [["number", "42"]]],
|
||||
["punctuation", "&="], ["code", [["number", "42"]]],
|
||||
["punctuation", "!="], ["code", [["number", "42"]]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for single-line code.
|
15
dashboard-ui/bower_components/prism/tests/languages/haml/doctype_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/haml/doctype_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
!!!
|
||||
!!! 5
|
||||
!!! Strict
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["doctype", "!!!"],
|
||||
["doctype", "!!! 5"],
|
||||
["doctype", "!!! Strict"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for doctypes.
|
21
dashboard-ui/bower_components/prism/tests/languages/haml/interpolation_feature.test
vendored
Normal file
21
dashboard-ui/bower_components/prism/tests/languages/haml/interpolation_feature.test
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
#{ 42 }
|
||||
#{ "foobar" }
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["interpolation", [
|
||||
["delimiter", "#{"],
|
||||
["number", "42"],
|
||||
["delimiter", "}"]
|
||||
]],
|
||||
["interpolation", [
|
||||
["delimiter", "#{"],
|
||||
["string", ["\"foobar\""]],
|
||||
["delimiter", "}"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for interpolation in plain text.
|
58
dashboard-ui/bower_components/prism/tests/languages/haml/multiline-code_feature.test
vendored
Normal file
58
dashboard-ui/bower_components/prism/tests/languages/haml/multiline-code_feature.test
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
~ 1,
|
||||
1,
|
||||
1
|
||||
~ 2 |
|
||||
2 |
|
||||
2 |
|
||||
|
||||
- 3,
|
||||
3,
|
||||
3
|
||||
- 4 |
|
||||
4 |
|
||||
4 |
|
||||
|
||||
= 5,
|
||||
5,
|
||||
5
|
||||
= 6 |
|
||||
6 |
|
||||
6 |
|
||||
|
||||
&= 7,
|
||||
7,
|
||||
7
|
||||
&= 8 |
|
||||
8 |
|
||||
8 |
|
||||
|
||||
!= 9,
|
||||
9,
|
||||
9
|
||||
!= 10 |
|
||||
10 |
|
||||
10 |
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "~"], ["multiline-code", [["number", "1"], ["punctuation", ","], ["number", "1"], ["punctuation", ","], ["number", "1"]]],
|
||||
["punctuation", "~"], ["multiline-code", [["number", "2"], ["operator", "|"], ["number", "2"], ["operator", "|"], ["number", "2"], ["operator", "|"]]],
|
||||
|
||||
["punctuation", "-"], ["multiline-code", [["number", "3"], ["punctuation", ","], ["number", "3"], ["punctuation", ","], ["number", "3"]]],
|
||||
["punctuation", "-"], ["multiline-code", [["number", "4"], ["operator", "|"], ["number", "4"], ["operator", "|"], ["number", "4"], ["operator", "|"]]],
|
||||
|
||||
["punctuation", "="], ["multiline-code", [["number", "5"], ["punctuation", ","], ["number", "5"], ["punctuation", ","], ["number", "5"]]],
|
||||
["punctuation", "="], ["multiline-code", [["number", "6"], ["operator", "|"], ["number", "6"], ["operator", "|"], ["number", "6"], ["operator", "|"]]],
|
||||
|
||||
["punctuation", "&="], ["multiline-code", [["number", "7"], ["punctuation", ","], ["number", "7"], ["punctuation", ","], ["number", "7"]]],
|
||||
["punctuation", "&="], ["multiline-code", [["number", "8"], ["operator", "|"], ["number", "8"], ["operator", "|"], ["number", "8"], ["operator", "|"]]],
|
||||
|
||||
["punctuation", "!="], ["multiline-code", [["number", "9"], ["punctuation", ","], ["number", "9"], ["punctuation", ","], ["number", "9"]]],
|
||||
["punctuation", "!="], ["multiline-code", [["number", "10"], ["operator", "|"], ["number", "10"], ["operator", "|"], ["number", "10"], ["operator", "|"]]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for inline code, with all possible prefixes, some not indented, some
|
||||
indented with two spaces, some indented with one tab.
|
46
dashboard-ui/bower_components/prism/tests/languages/haml/multiline-comment_feature.test
vendored
Normal file
46
dashboard-ui/bower_components/prism/tests/languages/haml/multiline-comment_feature.test
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
/
|
||||
|
||||
/ foo
|
||||
|
||||
/foo
|
||||
bar
|
||||
|
||||
/foo
|
||||
bar
|
||||
|
||||
/foo
|
||||
bar
|
||||
|
||||
-#
|
||||
|
||||
-# foo
|
||||
|
||||
-#foo
|
||||
bar
|
||||
|
||||
-#foo
|
||||
bar
|
||||
|
||||
-#foo
|
||||
bar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["multiline-comment", "/"],
|
||||
["multiline-comment", "/ foo"],
|
||||
["multiline-comment", "/foo\r\n bar"],
|
||||
["multiline-comment", "/foo\r\n bar"],
|
||||
["multiline-comment", "/foo\r\n\t bar"],
|
||||
|
||||
["multiline-comment", "-#"],
|
||||
["multiline-comment", "-# foo"],
|
||||
["multiline-comment", "-#foo\r\n bar"],
|
||||
["multiline-comment", "-#foo\r\n bar"],
|
||||
["multiline-comment", "-#foo\r\n\t bar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for multi-line comments, not indented, indented with two spaces and
|
||||
indented with one tab.
|
161
dashboard-ui/bower_components/prism/tests/languages/haml/tag_feature.test
vendored
Normal file
161
dashboard-ui/bower_components/prism/tests/languages/haml/tag_feature.test
vendored
Normal file
|
@ -0,0 +1,161 @@
|
|||
%one
|
||||
%two
|
||||
|
||||
%div#things
|
||||
%div.articles
|
||||
%div.article.title
|
||||
|
||||
%script{:type => "text/javascript",
|
||||
:src => "javascripts/script_#{42}"}
|
||||
|
||||
%div{:id => [@item.type, @item.number]}
|
||||
|
||||
%a(title=@title href=href)
|
||||
%input(selected)
|
||||
|
||||
%html{html_attrs('fr-fr')}
|
||||
|
||||
%div[@user, :greeting]
|
||||
%bar[290]/
|
||||
|
||||
%div#Article.article.entry{:id => @article.number}
|
||||
|
||||
#collection
|
||||
.item
|
||||
|
||||
%br/
|
||||
%blockquote<
|
||||
%img>
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["tag", ["%one"]],
|
||||
["tag", ["%two"]],
|
||||
|
||||
["tag", ["%div#things"]],
|
||||
["tag", ["%div.articles"]],
|
||||
["tag", ["%div.article.title"]],
|
||||
|
||||
["tag", [
|
||||
"%script",
|
||||
["attributes", [
|
||||
["punctuation", "{"],
|
||||
["symbol", ":type"],
|
||||
["operator", "="], ["operator", ">"],
|
||||
["string", ["\"text/javascript\""]],
|
||||
["punctuation", ","],
|
||||
["symbol", ":src"],
|
||||
["operator", "="], ["operator", ">"],
|
||||
["string", [
|
||||
"\"javascripts/script_",
|
||||
["interpolation", [
|
||||
["delimiter", "#{"],
|
||||
["number", "42"],
|
||||
["delimiter", "}"]
|
||||
]],
|
||||
"\""
|
||||
]],
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["tag", [
|
||||
"%div",
|
||||
["attributes", [
|
||||
["punctuation", "{"],
|
||||
["symbol", ":id"],
|
||||
["operator", "="], ["operator", ">"],
|
||||
["punctuation", "["],
|
||||
["variable", "@item"],
|
||||
["punctuation", "."],
|
||||
"type",
|
||||
["punctuation", ","],
|
||||
["variable", "@item"],
|
||||
["punctuation", "."],
|
||||
"number",
|
||||
["punctuation", "]"],
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["tag", [
|
||||
"%a",
|
||||
["attributes", [
|
||||
["punctuation", "("],
|
||||
["attr-name", "title"],
|
||||
["punctuation", "="],
|
||||
["attr-value", "@title"],
|
||||
["attr-name", "href"],
|
||||
["punctuation", "="],
|
||||
["attr-value", "href"],
|
||||
["punctuation", ")"]
|
||||
]]
|
||||
]],
|
||||
["tag", [
|
||||
"%input",
|
||||
["attributes", [
|
||||
["punctuation", "("],
|
||||
["attr-name", "selected"],
|
||||
["punctuation", ")"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["tag", [
|
||||
"%html",
|
||||
["attributes", [
|
||||
["punctuation", "{"],
|
||||
["function", "html_attrs"],
|
||||
["punctuation", "("],
|
||||
["string", ["'fr-fr'"]],
|
||||
["punctuation", ")"],
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["tag", [
|
||||
"%div",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "@user"],
|
||||
["punctuation", ","],
|
||||
["symbol", ":greeting"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["tag", [
|
||||
"%bar",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["number", "290"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
"/"
|
||||
]],
|
||||
|
||||
["tag", [
|
||||
"%div#Article.article.entry",
|
||||
["attributes", [
|
||||
["punctuation", "{"],
|
||||
["symbol", ":id"],
|
||||
["operator", "="], ["operator", ">"],
|
||||
["variable", "@article"],
|
||||
["punctuation", "."],
|
||||
"number",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["tag", ["#collection"]],
|
||||
["tag", [".item"]],
|
||||
|
||||
["tag", ["%br/"]],
|
||||
["tag", ["%blockquote", ["punctuation", "<"]]],
|
||||
["tag", ["%img", ["punctuation", ">"]]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for tags: basic element names, attributes, html-style attributes,
|
||||
attribute methods, boolean attributes, class and id shortcuts,
|
||||
implicit div elements, empty tags and whitespace removal.
|
Loading…
Add table
Add a link
Reference in a new issue