[vim/vim] vimscript syntax: Custom command call with the dot in the end breaks next highlighting (Issue #20854)

4 views
Skip to first unread message

Maxim Kim

unread,
7:08 AM (15 hours ago) 7:08 AM
to vim/vim, Subscribed
habamax created an issue (vim/vim#20854)

Steps to reproduce

Use following snippet in vim filetype:

def RunOdin()
    update
    if !exists("$WSL_DISTRO_NAME")
        Term! odin run .
    else
        Term! odin run . -thread-count:1
    endif
enddef
image.png (view on web)

Expected behaviour

else should be highlighted

@dkearns fyi

Version of Vim

9.2.843

Environment

debian13, bash

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20854@github.com>

Maxim Kim

unread,
7:09 AM (15 hours ago) 7:09 AM
to vim/vim, Subscribed
habamax left a comment (vim/vim#20854)

Term is a custom command:

command! -bang -nargs=? Term terminal.Run(<q-args> ?? &shell, <q-mods> ?? window#BotRight(), expand("<bang>") == "!")

with built-in term highlighting is ok.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

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

Reply all
Reply to author
Forward
0 new messages