fix #1598 Pipe '|' symbol breaks YAML Syntax highlighting

This commit is contained in:
nightwing 2013-09-11 23:28:42 +04:00
commit 2efe7f203e

View file

@ -72,7 +72,7 @@ var YamlHighlightRules = function() {
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
}, {
token : "string", // multi line string start
regex : '[\\|>]\\w*',
regex : '[|>][-+\\d\\s]*$',
next : "qqstring"
}, {
token : "string", // single quoted string