From bd6a59d7b9dfa91f02c373572cedb56531e3d2c5 Mon Sep 17 00:00:00 2001 From: Gabrielito666 Date: Sun, 12 Jul 2026 20:17:48 -0400 Subject: [PATCH] fix(jsdocs): The jsDocParam group matched an expression containing opening and closing curly brackets. I am making this change because the current regular expression may confuse a jsDocParam with a jsDocType. Whilst looking into the history of regular expressions, I came to the conclusion that this was simply a relaxation of the rules governing regular expressions to allow for use cases that do not exist. --- extras/jsdoc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/jsdoc.vim b/extras/jsdoc.vim index a7189d1b..d58a168b 100644 --- a/extras/jsdoc.vim +++ b/extras/jsdoc.vim @@ -18,7 +18,7 @@ syntax region jsDocTypeRecord contained start=/{/ end=/}/ contains=jsDocTypeRe syntax region jsDocTypeRecord contained start=/\[/ end=/\]/ contains=jsDocTypeRecord extend syntax region jsDocTypeNoParam contained start="{" end="}" oneline syntax match jsDocTypeNoParam contained "\%(#\|\"\|\w\|\.\|:\|\/\)\+" -syntax match jsDocParam contained "\%(#\|\$\|-\|'\|\"\|{.\{-}}\|\w\|\~\|\.\|:\|\/\|\[.\{-}]\|=\)\+" +syntax match jsDocParam contained "\%(#\|\$\|-\|'\|\"\|\w\|\~\|\.\|:\|\/\|\[.\{-}]\|=\)\+" syntax region jsDocSeeTag contained matchgroup=jsDocSeeTag start="{" end="}" contains=jsDocTags