We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e67b925 commit f6bcb34Copy full SHA for f6bcb34
src/languages/yaml.js
@@ -74,17 +74,17 @@ export default function(hljs) {
74
excludeEnd: true,
75
relevance: 0
76
},
77
- { // local tags
+ { // "named" tags
78
className: 'type',
79
- begin: '!' + YAML_TAG_RE,
+ begin: '!\w+!' + YAML_TAG_RE,
80
81
{ // "global" tags (data types)
82
83
begin: '!!' + YAML_TAG_RE,
84
85
- { // "named" tags
+ { // local tags
86
87
- begin: '!\w+!' + YAML_TAG_RE,
+ begin: '!' + YAML_TAG_RE,
88
89
{ // fragment id &ref
90
className: 'meta',
0 commit comments