use prism-tomorrow.css

This commit is contained in:
CyC2018
2018-12-19 14:09:39 +08:00
parent 0f00bcacaf
commit e9e604e6a7
1747 changed files with 100462 additions and 0 deletions

View File

@ -0,0 +1,20 @@
@media (min-width: 600px) {}
----------------------------------------------------
[
["atrule", [
["rule", "@media"],
["punctuation", "("],
["property", ["min-width"]],
["punctuation", ":"],
" 600px",
["punctuation", ")"]
]],
["punctuation", "{"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for at-rules.

View File

@ -0,0 +1,13 @@
true
false
----------------------------------------------------
[
["boolean", "true"],
["boolean", "false"]
]
----------------------------------------------------
Checks for booleans.

View File

@ -0,0 +1,19 @@
//
// foobar
/**/
/* foo
bar */
----------------------------------------------------
[
["comment", "//"],
["comment", "// foobar"],
["comment", "/**/"],
["comment", "/* foo\r\nbar */"]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,28 @@
@if @else if @else
@for @each @while
@import @extend
@debug @warn @mixin
@include @function
@return @content
@for $i from 1 through 3
----------------------------------------------------
[
["keyword", "@if"], ["keyword", "@else if"], ["keyword", "@else"],
["keyword", "@for"], ["keyword", "@each"], ["keyword", "@while"],
["keyword", "@import"], ["keyword", "@extend"],
["keyword", "@debug"], ["keyword", "@warn"], ["keyword", "@mixin"],
["keyword", "@include"], ["keyword", "@function"],
["keyword", "@return"], ["keyword", "@content"],
["keyword", "@for"],
["variable", "$i"],
["keyword", "from"],
" 1 ",
["keyword", "through"],
" 3"
]
----------------------------------------------------

View File

@ -0,0 +1,11 @@
null
----------------------------------------------------
[
["null", "null"]
]
----------------------------------------------------
Checks for null.

View File

@ -0,0 +1,38 @@
4 - 2;
4 + 2;
4 * 2;
4 / 2;
4 % 2;
4 == 2;
4 != 2;
4 < 2;
4 <= 2;
4 > 2;
4 >= 2;
true and false
false or true
not true
----------------------------------------------------
[
"4 ", ["operator", "-"], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", "+"], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", "*"], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", "/"], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", "%"], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", "=="], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", "!="], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", "<"], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", "<="], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", ">"], " 2", ["punctuation", ";"],
"\r\n4 ", ["operator", ">="], " 2", ["punctuation", ";"],
["boolean", "true"], ["operator", "and"], ["boolean", "false"],
["boolean", "false"], ["operator", "or"], ["boolean", "true"],
["operator", "not"], ["boolean", "true"]
]
----------------------------------------------------
Checks for operators.

View File

@ -0,0 +1,15 @@
%foobar
%foo-bar
%foo_bar
----------------------------------------------------
[
["placeholder", "%foobar"],
["placeholder", "%foo-bar"],
["placeholder", "%foo_bar"]
]
----------------------------------------------------
Checks for placeholders.

View File

@ -0,0 +1,23 @@
$bg: background;
$color: color;
div {
$bg: none;
background-#{$color}: blue;
#{$bg}-repeat: no-repeat;
}
----------------------------------------------------
[
["property", [["variable", "$bg"]]], ["punctuation", ":"], " background", ["punctuation", ";"],
["property", [["variable", "$color"]]], ["punctuation", ":"], " color", ["punctuation", ";"],
["selector", ["div "]], ["punctuation", "{"],
["property", [["variable", "$bg"]]], ["punctuation", ":"], " none", ["punctuation", ";"],
["property", ["background-", ["variable", "#{$color}"]]], ["punctuation", ":"], " blue", ["punctuation", ";"],
["property", [["variable", "#{$bg}"], "-repeat"]], ["punctuation", ":"], " no-repeat", ["punctuation", ";"],
["punctuation", "}"]
]
----------------------------------------------------
Checks for properties.

View File

@ -0,0 +1,23 @@
a {}
p, div {}
#foobar .foo {}
&:hover {}
&-sidebar {}
#context a%extreme {}
#{$selector}:before {}
----------------------------------------------------
[
["selector", ["a "]], ["punctuation", "{"], ["punctuation", "}"],
["selector", ["p, div "]], ["punctuation", "{"], ["punctuation", "}"],
["selector", ["#foobar .foo "]], ["punctuation", "{"], ["punctuation", "}"],
["selector", [["parent", "&"], ":hover "]], ["punctuation", "{"], ["punctuation", "}"],
["selector", [["parent", "&"], "-sidebar "]], ["punctuation", "{"], ["punctuation", "}"],
["selector", ["#context a", ["placeholder", "%extreme"]]], ["punctuation", "{"], ["punctuation", "}"],
["selector", [["variable", "#{$selector}"], ":before "]], ["punctuation", "{"], ["punctuation", "}"]
]
----------------------------------------------------
Checks for selectors.

View File

@ -0,0 +1,21 @@
$foo: "bar" !default;
@extend .baz !optional;
----------------------------------------------------
[
["property", [["variable", "$foo"]]],
["punctuation", ":"],
["string", "\"bar\""],
["statement", "!default"],
["punctuation", ";"],
["keyword", "@extend"],
" .baz ",
["statement", "!optional"],
["punctuation", ";"]
]
----------------------------------------------------
Checks for statements.

View File

@ -0,0 +1,19 @@
url('foo.png')
font-url('foo.ttf')
----------------------------------------------------
[
["url", "url"],
["punctuation", "("],
["string", "'foo.png'"],
["punctuation", ")"],
["url", "font-url"],
["punctuation", "("],
["string", "'foo.ttf'"],
["punctuation", ")"]
]
----------------------------------------------------
Checks for URLs.

View File

@ -0,0 +1,21 @@
$foo
$foo-bar
$foo_bar
#{$foo}
#{$foo-bar}
#{$foo_bar}
----------------------------------------------------
[
["variable", "$foo"],
["variable", "$foo-bar"],
["variable", "$foo_bar"],
["variable", "#{$foo}"],
["variable", "#{$foo-bar}"],
["variable", "#{$foo_bar}"]
]
----------------------------------------------------
Checks for variables.