added example for yaml
This commit is contained in:
parent
8be362ab54
commit
f684fed674
10 changed files with 284 additions and 22 deletions
|
|
@ -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 : "\\/\\/.*$"
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue