Patrick Meiser-Knosowski wrote:
> Sorry, I was mislead by FTr(), where it is the other way around.
>
> export def FTr()
> var max = line("$") > 50 ? 50 : line("$")
>
> for n in range(1, max)
> # Rebol is easy to recognize, check for that first
> if getline(n) =~? '\<REBOL\>'
> setf rebol
> return
> endif
>
> ... and so on...
>
> **# Nothing recognized, use user default or assume Rexx
> if exists("g:filetype_r")
> exe "setf " .. g:filetype_r
> else
> # Rexx used to be the default, but R appears to be much more popular.
> setf r
> endif**
> enddef
The R files are an exception, it is documented at :help ft-rexx-syntax
I would say this is unexpected, perhaps even wrong. But changing it now
probably causes more harm than improving the situation.
--
MICHAEL PALIN PLAYED: 1ST SOLDIER WITH A KEEN INTEREST IN BIRDS, DENNIS, MR
DUCK (A VILLAGE CARPENTER WHO IS ALMOST KEENER THAN
ANYONE ELSE TO BURN WITCHES), THREE-HEADED KNIGHT, SIR
GALAHAD, KING OF SWAMP CASTLE, BROTHER MAYNARD'S ROOMATE
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220407181204.18F6D1C19BB%40moolenaar.net.