Skip to content

Commit

Permalink
toml: allow - in keys
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeUnderscore authored and alecthomas committed May 3, 2021
1 parent 72795c5 commit 386cc48
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 @@ -27,7 +27,7 @@ func tomlRules() Rules {
{`"(\\\\|\\"|[^"])*"`, StringDouble, nil},
{`'(\\\\|\\'|[^'])*'`, StringSingle, nil},
{`[.,=\[\]{}]`, Punctuation, nil},
{`[^\W\d]\w*`, NameOther, nil},
{`[A-Za-z0-9_-]+`, NameOther, nil},
},
}
}

0 comments on commit 386cc48

Please sign in to comment.