[vim/vim] vimscript syntax: highlight error for `contains` elements in a new line (Issue #19366)

5 views
Skip to first unread message

Maxim Kim

unread,
Feb 8, 2026, 8:09:17 PM (3 days ago) Feb 8
to vim/vim, Subscribed
habamax created an issue (vim/vim#19366)

Steps to reproduce

Example is taken from :e $VIMRUNTIME/syntax/typst.vim line 39:

" Code {{{1
syntax cluster typstCode
    \ contains=@typstCommon
            \ ,@typstCodeKeywords
            \ ,@typstCodeConstants
            \ ,@typstCodeIdentifiers
            \ ,@typstCodeFunctions
            \ ,@typstCodeParens

" Code > Keywords {{{2
syntax cluster typstCodeKeywords
    \ contains=typstCodeConditional
            \ ,typstCodeRepeat
            \ ,typstCodeKeyword
            \ ,typstCodeStatement
image.png (view on web)

Expected behaviour

\ ,typst* shouldn't be highlighted as errors.

@dkearns fyi

Version of Vim

9.1.2141

Environment

debian13, bash

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19366@github.com>

dkearns

unread,
Feb 10, 2026, 11:56:18 AM (22 hours ago) Feb 10
to vim/vim, Subscribed
dkearns left a comment (vim/vim#19366)

This is fixed by #18520


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19366/3879197012@github.com>

Reply all
Reply to author
Forward
0 new messages