From d603c6166bc5c1a2e2af03fdecf3e0924bcfea8e Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Wed, 21 Dec 2022 07:34:25 -0700 Subject: [PATCH] Match nim type on single chars as well --- syntax/nim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/nim.vim b/syntax/nim.vim index 09b4562..53468e0 100644 --- a/syntax/nim.vim +++ b/syntax/nim.vim @@ -59,7 +59,7 @@ syn keyword nimKeyword lent sink iterable owned auto any syn match nimFunction "[a-zA-Z_][a-zA-Z0-9_]*" contained syn match nimPragma "[a-zA-Z_][a-zA-Z0-9_]*" contained syn match nimClass "[a-zA-Z_][a-zA-Z0-9_]*" contained -syn match nimType "\v<[A-Z][a-zA-Z0-9_]+>" +syn match nimType "\v<[A-Z][a-zA-Z0-9_]*>" syn keyword nimRepeat for while syn keyword nimConditional if elif else case of when try except return finally syn keyword nimOperator and in is not or xor shl shr div