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,23 @@
{{#each comments}}{{/each}}
{{~#if isActive~}}{{~/if~}}
----------------------------------------------------
[
["handlebars", [
["delimiter", "{{"], ["block", "#each"], ["variable", "comments"], ["delimiter", "}}"]
]],
["handlebars", [
["delimiter", "{{"], ["block", "/each"], ["delimiter", "}}"]
]],
["handlebars", [
["delimiter", "{{"], ["punctuation", "~"], ["block", "#if"], ["variable", "isActive"], ["punctuation", "~"], ["delimiter", "}}"]
]],
["handlebars", [
["delimiter", "{{"], ["punctuation", "~"], ["block", "/if"], ["punctuation", "~"], ["delimiter", "}}"]
]]
]
----------------------------------------------------
Checks for block helpers.

View File

@ -0,0 +1,17 @@
{{ true }}
{{{ false }}}
----------------------------------------------------
[
["handlebars", [
["delimiter", "{{"], ["boolean", "true"], ["delimiter", "}}"]
]],
["handlebars", [
["delimiter", "{{{"], ["boolean", "false"], ["delimiter", "}}}"]
]]
]
----------------------------------------------------
Checks for all booleans.

View File

@ -0,0 +1,19 @@
{{! foobar}}
{{!-- foo bar baz --}}
{{! foo
bar }}
{{!-- foo
bar --}}
----------------------------------------------------
[
["handlebars", [["comment", "{{! foobar}}"]]],
["handlebars", [["comment", "{{!-- foo bar baz --}}"]]],
["handlebars", [["comment", "{{! foo\r\nbar }}"]]],
["handlebars", [["comment", "{{!-- foo\r\nbar --}}"]]]
]
----------------------------------------------------
Checks for comments.

View File

@ -0,0 +1,59 @@
<div>{{{intro}}}</div>
<div class="{{foo}}">
___HANDLEBARS1___{{{intro}}}
{{!<div></div>}}
----------------------------------------------------
[
["tag", [
["tag", [
["punctuation", "<"],
"div"
]],
["punctuation", ">"]
]],
["handlebars", [
["delimiter", "{{{"],
["variable", "intro"],
["delimiter", "}}}"]
]],
["tag", [
["tag", [
["punctuation", "</"],
"div"
]],
["punctuation", ">"]
]],
["tag", [
["tag", [
["punctuation", "<"],
"div"
]],
["attr-name", ["class"]],
["attr-value", [
["punctuation", "="],
["punctuation", "\""],
["handlebars", [
["delimiter", "{{"],
["variable", "foo"],
["delimiter", "}}"]
]],
["punctuation", "\""]
]],
["punctuation", ">"]
]],
"\r\n___HANDLEBARS1___",
["handlebars", [
["delimiter", "{{{"],
["variable", "intro"],
["delimiter", "}}}"]
]],
["handlebars", [
["comment", "{{!<div></div>}}"]
]]
]
----------------------------------------------------
Checks for Handlebars in Markup.

View File

@ -0,0 +1,29 @@
{{ 0xBadFace }}
{{{ 42 }}}
{{{ 4e2 }}}
{{ 3.5e+1 }}
{{ 0.15e-9 }}
----------------------------------------------------
[
["handlebars", [
["delimiter", "{{"], ["number", "0xBadFace"], ["delimiter", "}}"]
]],
["handlebars", [
["delimiter", "{{{"], ["number", "42"], ["delimiter", "}}}"]
]],
["handlebars", [
["delimiter", "{{{"], ["number", "4e2"], ["delimiter", "}}}"]
]],
["handlebars", [
["delimiter", "{{"], ["number", "3.5e+1"], ["delimiter", "}}"]
]],
["handlebars", [
["delimiter", "{{"], ["number", "0.15e-9"], ["delimiter", "}}"]
]]
]
----------------------------------------------------
Checks for decimal and hexadecimal numbers.

View File

@ -0,0 +1,25 @@
{{ "" }}
{{{''}}}
{{{"foobar"}}}
{{ 'foobar' }}
----------------------------------------------------
[
["handlebars", [
["delimiter", "{{"], ["string", "\"\""], ["delimiter", "}}"]
]],
["handlebars", [
["delimiter", "{{{"], ["string", "''"], ["delimiter", "}}}"]
]],
["handlebars", [
["delimiter", "{{{"], ["string", "\"foobar\""], ["delimiter", "}}}"]
]],
["handlebars", [
["delimiter", "{{"], ["string", "'foobar'"], ["delimiter", "}}"]
]]
]
----------------------------------------------------
Checks for strings