mirror of
				https://github.com/vim/vim.git
				synced 2025-11-03 09:44:48 -05:00 
			
		
		
		
	Problem: editorconfig properties with dashes are not highlighted Solution: update the property pattern to include dashes
		
			
				
	
	
		
			22 lines
		
	
	
		
			613 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			613 B
		
	
	
	
		
			VimL
		
	
	
	
	
	
" Vim syntax file
 | 
						|
" Language:     EditorConfig
 | 
						|
" Maintainer:   Gregory Anders <greg@gpanders.com>
 | 
						|
" Last Change:  2023-07-20
 | 
						|
 | 
						|
if exists('b:current_syntax')
 | 
						|
  finish
 | 
						|
endif
 | 
						|
 | 
						|
runtime! syntax/dosini.vim
 | 
						|
unlet! b:current_syntax
 | 
						|
 | 
						|
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
 | 
						|
syntax keyword editorconfigProperty trim_trailing_whitespace insert_final_newline
 | 
						|
 | 
						|
hi def link editorconfigProperty dosiniLabel
 | 
						|
 | 
						|
let b:current_syntax = 'editorconfig'
 |