]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
Highlight editorconfig properties with dashes (#12691)
authorObserverOfTime <chronobserver@disroot.org>
Wed, 9 Aug 2023 15:05:39 +0000 (18:05 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 15:05:39 +0000 (17:05 +0200)
Problem: editorconfig properties with dashes are not highlighted
Solution: update the property pattern to include dashes

runtime/syntax/editorconfig.vim

index 6740624bc306212511915ed681538e1fc79ad21b..7f75ab628740c9e98a550d4ba82bf53692345fa5 100644 (file)
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language:     EditorConfig
 " Maintainer:   Gregory Anders <greg@gpanders.com>
-" Last Change:  2023-01-03
+" Last Change:  2023-07-20
 
 if exists('b:current_syntax')
   finish
@@ -10,7 +10,7 @@ endif
 runtime! syntax/dosini.vim
 unlet! b:current_syntax
 
-syntax match editorconfigUnknownProperty "^\s*\zs\w\+\ze\s*="
+syntax match editorconfigUnknownProperty "^\s*\zs[a-zA-Z0-9_-]\+\ze\s*="
 
 syntax keyword editorconfigProperty root charset end_of_line indent_style
 syntax keyword editorconfigProperty indent_size tab_width max_line_length