Fix up highlight rules
This commit is contained in:
parent
f2e523b0b4
commit
068fee994b
1 changed files with 7 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ var TomlHighlightRules = function() {
|
||||||
next : "qqstring"
|
next : "qqstring"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
token: ["text", "variable.keygroup.toml"],
|
token: ["variable.keygroup.toml"],
|
||||||
regex: /(?:^\\s*)(?:\\[([^\\]]+)\\])/
|
regex: "(?:^\\s*)(\\[([^\\]]+)\\])"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
token : keywordMapper,
|
token : keywordMapper,
|
||||||
|
|
@ -81,6 +81,11 @@ var TomlHighlightRules = function() {
|
||||||
regex : "\\\\$",
|
regex : "\\\\$",
|
||||||
next : "qqstring",
|
next : "qqstring",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
token : "string",
|
||||||
|
regex : '"|$',
|
||||||
|
next : "start",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
defaultToken: "string"
|
defaultToken: "string"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue