syntax highlight and indent for expect scripts

45 views
Skip to first unread message

Peng Yu

unread,
Sep 11, 2020, 1:55:49 PM9/11/20
to vim...@googlegroups.com
Hi,

I'd like to syntax highlight and indent expect scripts. But it is not
clear whether it is supported by vim. Does anybody know whether there
is such support in vim? Thanks.

https://wiki.tcl-lang.org/page/Expect+Tutorials

--
Regards,
Peng

Doug Kearns

unread,
Sep 12, 2020, 7:41:16 AM9/12/20
to vim...@googlegroups.com
On Sat, 12 Sep 2020 at 03:55, Peng Yu <peng...@gmail.com> wrote:
Hi,

I'd like to syntax highlight and indent expect scripts. But it is not
clear whether it is supported by vim. Does anybody know whether there
is such support in vim?

There is currently only syntax support for Expect.  The filetype is set when the filename extension is *.exp or from the appropriate shebang line in the expect command file.

There is, however, full support for TCL so I've attached ftplugin and indent plugins for Expect which just source the corresponding TCL files.  I'll send these to Bram for inclusion in the distributed runtime after I have a think about whether there's a better way to do it.

Regards,
Doug
expect-runtime.zip
Reply all
Reply to author
Forward
0 new messages