diff --git a/lexers/t/toml.go b/lexers/t/toml.go index b685a2c96..18a44c5b2 100644 --- a/lexers/t/toml.go +++ b/lexers/t/toml.go @@ -27,7 +27,7 @@ func tomlRules() Rules { {`"(\\\\|\\"|[^"])*"`, StringDouble, nil}, {`'(\\\\|\\'|[^'])*'`, StringSingle, nil}, {`[.,=\[\]{}]`, Punctuation, nil}, - {`[^\W\d]\w*`, NameOther, nil}, + {`[A-Za-z0-9_-]+`, NameOther, nil}, }, } }