File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,16 @@ export default function(hljs) {
8686 className : 'type' ,
8787 begin : '!\\w+!' + URI_CHARACTERS ,
8888 } ,
89- { // local tags
89+ // https://yaml.org/spec/1.2/spec.html#id2784064
90+ { // verbatim tags
91+ className : 'type' ,
92+ begin : '!<' + URI_CHARACTERS + ">" ,
93+ } ,
94+ { // primary tags
9095 className : 'type' ,
9196 begin : '!' + URI_CHARACTERS ,
9297 } ,
93- { // data type
98+ { // secondary tags
9499 className : 'type' ,
95100 begin : '!!' + URI_CHARACTERS ,
96101 } ,
Original file line number Diff line number Diff line change 77<span class="hljs-attr">key:</span> <span class="hljs-type">!foo2.bar</span> <span class="hljs-string">test</span>
88<span class="hljs-attr">key:</span> <span class="hljs-type">!(foo.bar?):tag</span> <span class="hljs-string">test</span>
99<span class="hljs-attr">key:</span> <span class="hljs-type">!named!tag</span> <span class="hljs-string">test</span>
10+
11+ <span class="hljs-string">---</span> <span class="hljs-type">!<tag:clarkevans.com,2002:invoice></span>
12+ <span class="hljs-attr">invoice:</span> <span class="hljs-number">34843</span>
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ key: !!python/name:module.name test
77key: !foo2.bar test
88key: !(foo.bar?):tag test
99key: !named!tag test
10+
11+ --- !<tag:clarkevans.com,2002:invoice>
12+ invoice: 34843
You can’t perform that action at this time.
0 commit comments