On Mi, 13 Mai 2026, Janis Papanagnou wrote:
> "Sh: EMBEDDING LANGUAGES~
> "You may wish to embed languages into sh. I'll give an example courtesy of
> "Lorance Stinson on how to do this with awk as an example. Put the following
> "file into $HOME/.vim/after/syntax/sh/awkembed.vim:
>
> " AWK Embedding: {{{1
> " ==============
> " Shamelessly ripped from aspperl.vim by Aaron Hope.
> if exists("b:current_syntax")
> unlet b:current_syntax
> endif
> syn include @AWKScript syntax/awk.vim
> syn region AWKScriptCode matchgroup=AWKCommand start=+[=\\]\@<!'+ skip=+\\'+
> end=+'+ contains=@AWKScript contained
> syn region AWKScriptEmbedded matchgroup=AWKCommand start=+\<awk\>+ skip=+\\$+
> end=+[=\\]\@<!'+me=e-1 contains=@shIdList,@shExprList2 nextgroup=AWKScriptCode
> syn cluster shCommandSubList add=AWKScriptEmbedded
> hi def link AWKCommand Type
This is the example from the help at: :h sh-embed
So it should be supported by the current shell syntax script.
Thanks,
Christian
--
You will soon forget this.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/agXvRxSvSfEMjHD7%40256bit.org.