summaryrefslogtreecommitdiff
path: root/mnv/runtime/syntax/editorconfig.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/syntax/editorconfig.mnv')
-rw-r--r--mnv/runtime/syntax/editorconfig.mnv21
1 files changed, 21 insertions, 0 deletions
diff --git a/mnv/runtime/syntax/editorconfig.mnv b/mnv/runtime/syntax/editorconfig.mnv
new file mode 100644
index 0000000000..22f5ed8df9
--- /dev/null
+++ b/mnv/runtime/syntax/editorconfig.mnv
@@ -0,0 +1,21 @@
+" MNV 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.mnv
+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'