added example for yaml

This commit is contained in:
Meg Sharkey 2012-03-12 16:39:06 -07:00
commit f684fed674
10 changed files with 284 additions and 22 deletions

View file

@ -71,8 +71,11 @@ var YamlHighlightRules = function() {
}, {
token : "string", // multi line string start
merge : true,
regex : '[\\|]\\w*',
regex : '[\\|>]\\w*',
next : "qqstring"
}, {
token : "string", // single quoted string
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
}, {
token : "constant.numeric", // float
regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
@ -80,9 +83,6 @@ var YamlHighlightRules = function() {
token : "constant.language.boolean",
regex : "(?:true|false|yes|no)\\b"
}, {
token : "string", // single quoted string
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
}, {
token : "invalid.illegal", // comments are not allowed
regex : "\\/\\/.*$"
}, {