annotate runtime/syntax/editorconfig.vim @ 34140:adc185c5ca29 v9.1.0031

patch 9.1.0031: Link Error on Windows Commit: https://github.com/vim/vim/commit/4afda3307dfa330fe7f7b19fc3c1e1de75f9b79a Author: Christian Brabandt <cb@256bit.org> Date: Mon Jan 15 22:51:22 2024 +0100 patch 9.1.0031: Link Error on Windows Problem: Link Error on Windows Solution: Add ifdef HAVE_TGETENT for term_strings_not_set() Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 15 Jan 2024 23:00:03 +0100
parents 31b68cad57cc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31671
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: EditorConfig
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: Gregory Anders <greg@gpanders.com>
32705
31b68cad57cc Highlight editorconfig properties with dashes (#12691)
Christian Brabandt <cb@256bit.org>
parents: 31671
diff changeset
4 " Last Change: 2023-07-20
31671
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 if exists('b:current_syntax')
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 finish
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 endif
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 runtime! syntax/dosini.vim
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 unlet! b:current_syntax
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
32705
31b68cad57cc Highlight editorconfig properties with dashes (#12691)
Christian Brabandt <cb@256bit.org>
parents: 31671
diff changeset
13 syntax match editorconfigUnknownProperty "^\s*\zs[a-zA-Z0-9_-]\+\ze\s*="
31671
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 syntax keyword editorconfigProperty root charset end_of_line indent_style
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 syntax keyword editorconfigProperty indent_size tab_width max_line_length
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 syntax keyword editorconfigProperty trim_trailing_whitespace insert_final_newline
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 hi def link editorconfigProperty dosiniLabel
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
5ed19049b1e8 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 let b:current_syntax = 'editorconfig'