From 5af7aebba708ebf80b6d435b4626b591abb789e4 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 16 Nov 2024 17:03:51 +0000 Subject: [PATCH] vim: fix self:: being highlighted as a label rather than a builtin var --- ivy.vim/syntax/ivy.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ivy.vim/syntax/ivy.vim b/ivy.vim/syntax/ivy.vim index 032675c..5ef9330 100755 --- a/ivy.vim/syntax/ivy.vim +++ b/ivy.vim/syntax/ivy.vim @@ -12,8 +12,8 @@ syn match ivyType /\<[A-Z]\{1,2\}\([a-z0-9]\+[A-Z]\{0, syn keyword ivyStorage class protocol syn keyword ivyRepeat for while in break continue syn keyword ivyConditional if elif else unless match -syn match ivySelectorLabel /\<[a-z]\([A-Za-z0-9_]\+\)\:/ -syn match ivySelectorLabel /\<\([a-z]\([A-Za-z0-9_]\+\)\:\)\+/ +syn match ivySelectorLabel /\<[a-z]\([A-Za-z0-9_]\+\)\:\(\:\)\@!/ +syn match ivySelectorLabel /\<\([a-z]\([A-Za-z0-9_]\+\)\:\(\:\)\@!\)\+/ syn match ivyUnnamedVariable /\<_\>/ syn match ivyAtomName /#[a-z][a-z0-9_:/]*\>/ @@ -31,7 +31,8 @@ syn match ivyLineContinuation /\\\n/ " Modifiers syn keyword ivyException try catch finally throw -syn keyword ivyBuiltinVar self error cout cin cerr +syn match ivySelfVar /\