From 4e4365445b9bc460b8685e1cc1380ffa4bea321d Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Thu, 16 May 2024 22:01:20 +0200 Subject: [PATCH] add ' to iskeyword --- syntax/quox.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/syntax/quox.vim b/syntax/quox.vim index fe122d9..158d7d9 100644 --- a/syntax/quox.vim +++ b/syntax/quox.vim @@ -3,7 +3,9 @@ if exists('b:current_syntax') endif let b:current_syntax = 'quox' -set isk+=-,# +setlocal iskeyword+=# +setlocal iskeyword+=- +setlocal iskeyword+=' syn match quoxDelim /[\[\](){};]/ syn match quoxDelim /\<_\>/ @@ -35,8 +37,8 @@ hi def link quoxNat Number syn region quoxString start=+"+ end=+"+ skip=+\\"+ contains=quoxCharEsc hi def link quoxString String -syn match quoxTag /'\k\+/ -syn region quoxTag start=+'"+ end=+"+ skip=+\\"+ contains=quoxCharEsc +syn match quoxTag /\<'\k\+/ +syn region quoxTag start=+\<'"+ end=+"+ skip=+\\"+ contains=quoxCharEsc hi def link quoxTag Constant syn match quoxCharEsc /\\\%(\\\|"\|x\x\+;\|[nt]\)/ contained