From 386cc48f1a7af5064fa0162d8484fd338dc44cef Mon Sep 17 00:00:00 2001 From: D Anzorge Date: Fri, 30 Apr 2021 00:30:35 +0200 Subject: [PATCH] toml: allow - in keys --- lexers/t/toml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, }, } }