summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-05-16 15:10:33 -0400
committernodist <kevin.comas.git@gmail.com>2026-05-16 15:10:33 -0400
commit569c4dddb04154967cbdc15ba395a45d110dc56e (patch)
tree3245298d188ac63a2694e348f1dc6df045f81bed
parent3d837715c698312120ed20600274b8bd3a8f5666 (diff)
update keyword as start with a-z but call be followed with \w
-rw-r--r--syntax/kpl.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/kpl.vim b/syntax/kpl.vim
index 70a422c..9722c79 100644
--- a/syntax/kpl.vim
+++ b/syntax/kpl.vim
@@ -28,7 +28,7 @@ syn match kplVar "[a-z]\w*" contains=@NoSpell
hi def link kplVar Ignore
" Ignore
-syn match kplIgnore "_\w*" contains=@NoSpell
+syn match kplIgnore "\<_\w*" contains=@NoSpell
hi def link kplIgnore Comment
" Symbol
@@ -36,7 +36,7 @@ syn match kplSymbol "\.\w\+" contains=@NoSpell
hi def link kplSymbol Identifier
" Keyword
-syn match kplKeyword "`[a-z]\+" contains=@NoSpell
+syn match kplKeyword "`[a-z]\w*" contains=@NoSpell
hi def link kplKeyword Conditional
" Type