Skip to content

Commit

Permalink
added curly braces to toml lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
thargor authored and alecthomas committed Jun 30, 2020
1 parent 2b9ea60 commit bac6996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexers/t/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var TOML = internal.Register(MustNewLexer(
{`[+-]?[0-9](_?\d)*`, LiteralNumberInteger, nil},
{`"(\\\\|\\"|[^"])*"`, StringDouble, nil},
{`'(\\\\|\\'|[^'])*'`, StringSingle, nil},
{`[.,=\[\]]`, Punctuation, nil},
{`[.,=\[\]{}]`, Punctuation, nil},
{`[^\W\d]\w*`, NameOther, nil},
},
},
Expand Down

0 comments on commit bac6996

Please sign in to comment.