.tf files sometimes incorrectly identified as terraform

38 views
Skip to first unread message

Christian J. Robinson

unread,
Jun 12, 2026, 10:48:44 AM (yesterday) 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,
11:20 AM (8 hours ago) 11:20 AM
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.....
Reply all
Reply to author
Forward
0 new messages