.tf files sometimes incorrectly identified as terraform

41 views
Skip to first unread message

Christian J. Robinson

unread,
Jun 12, 2026, 10:48:44 AM (2 days ago) Jun 12
to vim_dev
The function that tries to examine the file to identify whether it's for the TinyFugue (tf) client or for terraform erroneously assumes that lines must start with ";", "/", or nothing to be valid TinyFugue code. This is not correct. Moreover, it examines the entire .tf file to try to make this determination. In fact, a TinyFugue script file can have line continuation which means that any character can start a line.

The way the function is called also overrides my attempts to correct this problem by putting my own ftdetect/tf.vim file in place in ~/.vim/ftdetect or ~/.vim/after/ftdetect.

I'm not sure how to solve this problem optimally.

--
Christian J. Robinson <hep...@gmail.com>

Christian Brabandt

unread,
Jun 13, 2026, 11:20:02 AM (15 hours ago) Jun 13
to vim...@googlegroups.com
Thanks, the suggested fix is here now:
https://github.com/vim/vim/pull/20510

Thanks,
Christian
--
Hurewitz's Memory Principle:
The chance of forgetting something is directly proportional
to... to... uh.....

Christian J. Robinson

unread,
Jun 13, 2026, 7:43:41 PM (7 hours ago) Jun 13
to vim...@googlegroups.com
I can confirm that this works for me.

--
--
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 vim_dev+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/ai11GjuzslVDq44P%40256bit.org.
Reply all
Reply to author
Forward
0 new messages