From: ObserverOfTime Date: Wed, 9 Aug 2023 15:05:39 +0000 (+0300) Subject: Highlight editorconfig properties with dashes (#12691) X-Git-Tag: v9.0.1680~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=958e15bb1c7d582cdca324dc61a4daf5c01842bc;p=thirdparty%2Fvim.git Highlight editorconfig properties with dashes (#12691) Problem: editorconfig properties with dashes are not highlighted Solution: update the property pattern to include dashes --- diff --git a/runtime/syntax/editorconfig.vim b/runtime/syntax/editorconfig.vim index 6740624bc3..7f75ab6287 100644 --- a/runtime/syntax/editorconfig.vim +++ b/runtime/syntax/editorconfig.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: EditorConfig " Maintainer: Gregory Anders -" 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