Skip to content

Commit bac6996

Browse files
thargoralecthomas
authored andcommitted
added curly braces to toml lexer
1 parent 2b9ea60 commit bac6996

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lexers/t/toml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var TOML = internal.Register(MustNewLexer(
2222
{`[+-]?[0-9](_?\d)*`, LiteralNumberInteger, nil},
2323
{`"(\\\\|\\"|[^"])*"`, StringDouble, nil},
2424
{`'(\\\\|\\'|[^'])*'`, StringSingle, nil},
25-
{`[.,=\[\]]`, Punctuation, nil},
25+
{`[.,=\[\]{}]`, Punctuation, nil},
2626
{`[^\W\d]\w*`, NameOther, nil},
2727
},
2828
},

0 commit comments

Comments
 (0)