view runtime/syntax/editorconfig.vim @ 32053:76fd08a4ae1d v9.0.1358

patch 9.0.1358: compilation error with some compilers Commit: https://github.com/vim/vim/commit/30a844771554d28f1a88a256e6088dbb252228c1 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 27 08:07:14 2023 +0000 patch 9.0.1358: compilation error with some compilers Problem: Compilation error with some compilers. Solution: Avoid using "class" as member name.
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Feb 2023 09:15:04 +0100
parents 5ed19049b1e8
children 31b68cad57cc
line wrap: on
line source

" Vim syntax file
" Language:     EditorConfig
" Maintainer:   Gregory Anders <greg@gpanders.com>
" Last Change:  2023-01-03

if exists('b:current_syntax')
  finish
endif

runtime! syntax/dosini.vim
unlet! b:current_syntax

syntax match editorconfigUnknownProperty "^\s*\zs\w\+\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'