Add array-of-tables to keygroup markup
The markup for array-of-tables at https://github.com/toml-lang/toml#array-of-tables is [[ foo ]] Right now, the last ] isn't part of the markup. Figured making this an explicit token is the most apparent way to fix this.
This commit is contained in:
parent
ad5802be06
commit
9534e4ea92
1 changed files with 5 additions and 1 deletions
|
|
@ -57,6 +57,10 @@ var TomlHighlightRules = function() {
|
||||||
regex : '"(?=.)',
|
regex : '"(?=.)',
|
||||||
next : "qqstring"
|
next : "qqstring"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
token: ["variable.keygroup.toml"],
|
||||||
|
regex: "(?:^\\s*)(\\[\\[([^\\]]+)\\]\\])"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
token: ["variable.keygroup.toml"],
|
token: ["variable.keygroup.toml"],
|
||||||
regex: "(?:^\\s*)(\\[([^\\]]+)\\])"
|
regex: "(?:^\\s*)(\\[([^\\]]+)\\])"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue