syntax highlight and indent for expect scripts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

syntax highlight and indent for expect scripts

Peng Yu
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

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CABrM6w%3DcmadzA1J1k6na4bfYwN8HfuDOGuqYrVfx7rgsrP%3DGOw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: syntax highlight and indent for expect scripts

Doug Kearns

On Sat, 12 Sep 2020 at 03:55, Peng Yu <[hidden email]> 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

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJ1uvoD0%3Dzfy-T%2B35WARH1jpHssz3kb8n7%3Dw6MaArOBLHhT0eg%40mail.gmail.com.

expect-runtime.zip (1K) Download Attachment