Embedding Lua in vim9script breaks syntax highlight

9 views
Skip to first unread message

Nicolas

unread,
Oct 30, 2022, 1:38:50 AM10/30/22
to vim_use
Hi,

it Seems that the lua print code line above, when embedded in lua region code breaks vim9 syntax highlight.

How to fix it ?
Thank you
Nicolas

Capture d’écran 2022-10-30 063445.png
Capture d’écran 2022-10-30 063530.png

Owajigbanam Ogbuluijah

unread,
Oct 30, 2022, 2:23:19 PM10/30/22
to vim...@googlegroups.com
Hi Nicolas,

I'd recommend having Lua code in a Lua file, then using the Lua region in Vim9script to import the Lua file — if you must.

A better recommendation would just be to write Vim9script though. I find it easier to write.

Best,
Igbanam

--
--
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 vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/fb697870-e489-4d98-ad05-1a28e5b793a0n%40googlegroups.com.

Nicolas

unread,
Oct 30, 2022, 2:45:30 PM10/30/22
to vim...@googlegroups.com
Thank you a lot for advise Owajigbanam :) 
Nicolas. 

You received this message because you are subscribed to a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/_lQU2GB4g9w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOmRJrfYr6pZT7DsAmYtMkz7hi9mrp_V2UjwdXVSrsrvyC2xxg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages