From 2a4a0e0662f2f882403af7200b4249c564a621ab Mon Sep 17 00:00:00 2001 From: Kaj Munhoz Arfvidsson Date: Sat, 2 Nov 2024 00:56:49 +0100 Subject: [PATCH] fix: block comments decrease performance (#106) (#110) --- syntax/typst.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/typst.vim b/syntax/typst.vim index cef199f..88201e9 100644 --- a/syntax/typst.vim +++ b/syntax/typst.vim @@ -18,8 +18,8 @@ syntax cluster typstCommon " Common > Comment {{{2 syntax cluster typstComment \ contains=typstCommentBlock,typstCommentLine -syntax match typstCommentBlock - \ #/\*\%(\_.\{-}\)\*/# +syntax region typstCommentBlock + \ start="/\*" end="\*/" keepend \ contains=typstCommentTodo,@Spell syntax match typstCommentLine \ #//.*#