aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-11-02 17:11:29 +0100
committerChristian Clason <ch.clason+github@icloud.com>2024-11-02 23:33:25 +0100
commitf5933d196b419901f96b0516b5039f3862eee27c (patch)
treea71a82da32291ff0a515a493d040db8efab48fe2 /runtime/syntax
parent86e54734bf9e05605d8b7146e7b0e79025138ba2 (diff)
downloadrneovim-f5933d196b419901f96b0516b5039f3862eee27c.tar.gz
rneovim-f5933d196b419901f96b0516b5039f3862eee27c.tar.bz2
rneovim-f5933d196b419901f96b0516b5039f3862eee27c.zip
vim-patch:d181baf: runtime(typst): synchronize updates from the upstream typst.vim
2 commits included from the upstream: - https://github.com/kaarmu/typst.vim/commit/2a4a0e0662f2f882403af7200b4249c564a621ab - https://github.com/kaarmu/typst.vim/commit/50e89f481102d5c9ef6990b9f8086c0c7d64bff6 https://github.com/vim/vim/commit/d181bafd0bb53f3caaf15a95a329a31d8208206b Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
Diffstat (limited to 'runtime/syntax')
-rw-r--r--runtime/syntax/typst.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/syntax/typst.vim b/runtime/syntax/typst.vim
index 82fdadb3d5..dae1424780 100644
--- a/runtime/syntax/typst.vim
+++ b/runtime/syntax/typst.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Typst
" Maintainer: Gregory Anders <greg@gpanders.com>
-" Last Change: 2024-07-14
+" Last Change: 2024 Nov 02
" Based on: https://github.com/kaarmu/typst.vim
if exists('b:current_syntax')
@@ -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
\ #//.*#