mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
Highlight editorconfig properties with dashes (#12691)
Problem: editorconfig properties with dashes are not highlighted Solution: update the property pattern to include dashes
This commit is contained in:
parent
2eb413f89b
commit
958e15bb1c
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: EditorConfig
|
" Language: EditorConfig
|
||||||
" Maintainer: Gregory Anders <greg@gpanders.com>
|
" Maintainer: Gregory Anders <greg@gpanders.com>
|
||||||
" Last Change: 2023-01-03
|
" Last Change: 2023-07-20
|
||||||
|
|
||||||
if exists('b:current_syntax')
|
if exists('b:current_syntax')
|
||||||
finish
|
finish
|
||||||
@ -10,7 +10,7 @@ endif
|
|||||||
runtime! syntax/dosini.vim
|
runtime! syntax/dosini.vim
|
||||||
unlet! b:current_syntax
|
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 root charset end_of_line indent_style
|
||||||
syntax keyword editorconfigProperty indent_size tab_width max_line_length
|
syntax keyword editorconfigProperty indent_size tab_width max_line_length
|
||||||
|
Loading…
x
Reference in New Issue
Block a user