changeset 32705:31b68cad57cc

Highlight editorconfig properties with dashes (#12691) Commit: https://github.com/vim/vim/commit/958e15bb1c7d582cdca324dc61a4daf5c01842bc Author: ObserverOfTime <chronobserver@disroot.org> Date: Wed Aug 9 18:05:39 2023 +0300 Highlight editorconfig properties with dashes (https://github.com/vim/vim/issues/12691) Problem: editorconfig properties with dashes are not highlighted Solution: update the property pattern to include dashes
author Christian Brabandt <cb@256bit.org>
date Wed, 09 Aug 2023 17:15:03 +0200
parents ac61cd09b633
children fa80326c0188
files runtime/syntax/editorconfig.vim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/syntax/editorconfig.vim
+++ b/runtime/syntax/editorconfig.vim
@@ -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