use prism-tomorrow.css
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
---
|
||||
foo: true
|
||||
bar: false
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "---"],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["boolean", "true"],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["boolean", "false"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for booleans.
|
@ -0,0 +1,13 @@
|
||||
#
|
||||
# foobar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "#"],
|
||||
["comment", "# foobar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
@ -0,0 +1,31 @@
|
||||
---
|
||||
canonical: 2001-12-15T02:59:43.1Z
|
||||
iso8601: 2001-12-14t21:59:43.10-05:00
|
||||
spaced: 2001-12-14 21:59:43.10 -5
|
||||
date: 2002-12-14
|
||||
times:
|
||||
- 10:53
|
||||
- 10:53:20.53
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "---"],
|
||||
["key", "canonical"], ["punctuation", ":"],
|
||||
["datetime", "2001-12-15T02:59:43.1Z"],
|
||||
["key", "iso8601"], ["punctuation", ":"],
|
||||
["datetime", "2001-12-14t21:59:43.10-05:00"],
|
||||
["key", "spaced"], ["punctuation", ":"],
|
||||
["datetime", "2001-12-14 21:59:43.10 -5"],
|
||||
["key", "date"], ["punctuation", ":"],
|
||||
["datetime", "2002-12-14"],
|
||||
["key", "times"], ["punctuation", ":"],
|
||||
["punctuation", "-"],
|
||||
["datetime", "10:53"],
|
||||
["punctuation", "-"],
|
||||
["datetime", "10:53:20.53"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for dates, times and datetimes.
|
@ -0,0 +1,13 @@
|
||||
%YAML 1.2
|
||||
%TAG
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["directive", "%YAML 1.2"],
|
||||
["directive", "%TAG"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for directives.
|
@ -0,0 +1,19 @@
|
||||
&B1
|
||||
&A
|
||||
*A
|
||||
&SS
|
||||
*SS
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["important", "&B1"],
|
||||
["important", "&A"],
|
||||
["important", "*A"],
|
||||
["important", "&SS"],
|
||||
["important", "*SS"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for important.
|
@ -0,0 +1,15 @@
|
||||
---
|
||||
foo: 4
|
||||
FooBar : 5
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "---"],
|
||||
["key", "foo"], ["punctuation", ":"], ["number", "4"],
|
||||
["key", "FooBar"], ["punctuation", ":"], ["number", "5"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for keys.
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
foo: null
|
||||
bar: ~
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "---"],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["null", "null"],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["null", "~"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for null and ~.
|
@ -0,0 +1,38 @@
|
||||
---
|
||||
foo: 0xBadFace
|
||||
bar: 0o754
|
||||
baz: 42
|
||||
foo: 3.14159
|
||||
bar: 4e8
|
||||
baz: 3.1E-7
|
||||
foo: 0.4e+2
|
||||
bar: -0xFF
|
||||
baz: +0o123
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "---"],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["number", "0xBadFace"],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["number", "0o754"],
|
||||
["key", "baz"], ["punctuation", ":"],
|
||||
["number", "42"],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["number", "3.14159"],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["number", "4e8"],
|
||||
["key", "baz"], ["punctuation", ":"],
|
||||
["number", "3.1E-7"],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["number", "0.4e+2"],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["number", "-0xFF"],
|
||||
["key", "baz"], ["punctuation", ":"],
|
||||
["number", "+0o123"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
@ -0,0 +1,23 @@
|
||||
---
|
||||
foo: >
|
||||
Foo bar
|
||||
baz
|
||||
bar: |
|
||||
Foo bar
|
||||
baz
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "---"],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["punctuation", ">"],
|
||||
["scalar", "\r\n\tFoo bar\r\n\tbaz"],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["punctuation", "|"],
|
||||
["scalar", "\r\n\tFoo bar\r\n\tbaz"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for scalars.
|
@ -0,0 +1,29 @@
|
||||
---
|
||||
foo: ""
|
||||
bar: "fo\"obar"
|
||||
foo: ''
|
||||
bar: 'fo\'obar'
|
||||
foo: "foo" # bar
|
||||
bar: 'bar' # foo
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "---"],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["string", "\"\""],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["string", "\"fo\\\"obar\""],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["string", "''"],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["string", "'fo\\'obar'"],
|
||||
["key", "foo"], ["punctuation", ":"],
|
||||
["string", "\"foo\""], ["comment", "# bar"],
|
||||
["key", "bar"], ["punctuation", ":"],
|
||||
["string", "'bar'"], ["comment", "# foo"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
@ -0,0 +1,15 @@
|
||||
!!map
|
||||
!!str
|
||||
!!seq
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["tag", "!!map"],
|
||||
["tag", "!!str"],
|
||||
["tag", "!!seq"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for tags
|
Reference in New Issue
Block a user