From 87333c87b5c72978607f9d041f331666f2b4938e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 4 Jun 2023 17:42:44 -0400 Subject: [PATCH] Fix type parsing for &,@,? --- syntax/sss.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syntax/sss.vim b/syntax/sss.vim index 537d985..f69ea19 100644 --- a/syntax/sss.vim +++ b/syntax/sss.vim @@ -133,8 +133,9 @@ hi def link SSSTypeUnits Type syn region SSSType start=/\[/ end=/\]\|$/ contains=SSSType contained nextgroup=SSSTableValueType,SSSTypeUnits syn region SSSType start=/{/ end=/}\|$/ contains=SSSType,SSSAssoc contained nextgroup=SSSTableValueType,SSSTypeUnits syn region SSSType start=/(/ end=/) *->/ contains=SSSType,SSSTypeDelim nextgroup=SSSType contained -syn match SSSType /[a-zA-Z_0-9@?&]\+/ contained nextgroup=SSSTableValueType,SSSTypeUnits -syn match SSSType /\$[a-zA-Z_0-9@?&]\+/ contained nextgroup=SSSTableValueType,SSSTypeUnits +syn match SSSType /[a-zA-Z_]\i*/ contained nextgroup=SSSTableValueType,SSSTypeUnits +syn match SSSType /\$[a-zA-Z_0-9]\+/ contained nextgroup=SSSTableValueType,SSSTypeUnits +syn match SSSType /[@?&]\+/ contained nextgroup=SSSType hi def link SSSType Type syn match SSSTypeAnnotation /:\@