vendor/assets/javascripts/prism-yaml.js in highlighting-0.1.2 vs vendor/assets/javascripts/prism-yaml.js in highlighting-0.1.3
- old
+ new
@@ -4,10 +4,10 @@
lookbehind: true,
alias: 'string'
},
'comment': /#.*/,
'key': {
- pattern: /(\s*[:\-,[{\r\n?][ \t]*(![^\s]+)?[ \t]*)[^\r\n{[\]},#]+?(?=\s*:\s)/,
+ pattern: /(\s*(?:^|[:\-,[{\r\n?])[ \t]*(![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/,
lookbehind: true,
alias: 'atrule'
},
'directive': {
pattern: /(^[ \t]*)%.+/m,