Can syntax clusters contain other clusters?

7 views
Skip to first unread message

BPJ

unread,
Jun 18, 2022, 8:58:58 AMJun 18
to vim...@googlegroups.com
The subject line says it all: I'm trying to use syntax clusters and wonder if clusters may contain other clusters, i.e. should this work?

syn cluster mydslAnyValue contains=@mydslValue,@mydslContainer
syn cluster mydslAllValues contains=@mydslAnyValue,mydslConstant

TIA,

/bpj

Bram Moolenaar

unread,
Jun 18, 2022, 11:50:35 AMJun 18
to vim...@googlegroups.com, BPJ
Yes, there is an example just above ":help E848".

--
BODY: I'm not dead!
CART DRIVER: 'Ere. He says he's not dead.
LARGE MAN: Yes he is.
BODY: I'm not!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

BPJ

unread,
Jun 18, 2022, 12:24:38 PMJun 18
to Bram Moolenaar, vim_use, BPJ
The problem was with something else. Sorry for the noise!
Reply all
Reply to author
Forward
0 new messages