aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-08-21 09:53:17 -0400
committernodist <kevin.comas.git@gmail.com>2026-08-21 09:53:17 -0400
commit7b3266a882dc3efae1eaa76f4f27e849a693e3e2 (patch)
treefbe90d338bde1e4ffdb8d97e9a84efe7d4a2492a
parentbce0798171324732a2941935d7b7fcc9700f366e (diff)
new syntax
-rw-r--r--syntax/kpl.vim49
1 files changed, 49 insertions, 0 deletions
diff --git a/syntax/kpl.vim b/syntax/kpl.vim
new file mode 100644
index 0000000..5c02cf9
--- /dev/null
+++ b/syntax/kpl.vim
@@ -0,0 +1,49 @@
+
+syn match kpl_action "[?@#`]"
+hi def link kpl_action Special
+
+syn match kpl_operator "[$%~!&*\-+=|:<,>/]\|\.\.\|`[a-z]\w*" contains=@NoSpell
+hi def link kpl_operator Operator
+
+syn match kpl_todo contained "\<TODO\>" contains=@NoSpell
+syn match kpl_comment_line "\/\/.*$" contains=kpl_todo
+syn region kpl_comment_range start="/\*" end="\*/" contains=kpl_todo
+hi def link kpl_todo TODO
+hi def link kpl_comment_line Comment
+hi def link kpl_comment_range Comment
+
+syn match kpl_semicolon ";"
+hi def link kpl_semicolon Removed
+
+syn match kpl_number "\%(\d_\d\|\d\)\+\%(\.\%(\d_\d\|\d\)\+\)\?"
+hi def link kpl_number Number
+
+syn match kpl_character "'\\\?.'" contains=@NoSpell
+hi def link kpl_character Added
+
+syn region kpl_string start=/"/ skip=/\\\\"/ end=/"/
+hi def link kpl_string String
+
+syn match kpl_var "[a-z]\w\{0,49}" contains=@NoSpell
+hi def link kpl_var Ignore
+
+syn match kpl_ignore "\<_\>"
+hi def link kpl_ignore Comment
+
+syn match kpl_constant "_\w\{1,49}" contains=@NoSpell
+hi def link kpl_constant Constant
+
+syn match kpl_type "[A-Z]\w\{0,49}" contains=@NoSpell
+hi def link kpl_type Type
+
+syn match kpl_tag "\.\w\{1,50}"
+hi def link kpl_tag Identifier
+
+syn match kpl_block "[{}]"
+hi def link kpl_block Function
+
+syn match kpl_collection "[()]"
+hi def link kpl_collection Directory
+
+syn match kpl_modifier "\[\|\]"
+hi def link kpl_modifier Changed