diff options
author | Martin Tournoij <martin@arp242.net> | 2022-10-16 12:49:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-16 12:49:12 +0100 |
commit | bd053f894b0d7652928201faa68c53d1ce2acdc5 (patch) | |
tree | 717cbbda10877e01c7a4c7df72136c60059a7e95 /runtime/autoload/dist/ft.vim | |
parent | d8cd6f7427bc89aa38f42cc44f58bf5fb5f0f972 (diff) |
patch 9.0.0771: cannot always tell the difference beween tex and rexx filesv9.0.0771
Problem: Cannot always tell the difference beween tex and rexx files.
Solution: Recognize tex by a leading backslash. (Martin Tournoij,
closes #11380)
Diffstat (limited to 'runtime/autoload/dist/ft.vim')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 48eaf3f60f..d5c21ac184 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -145,7 +145,7 @@ export def FTcls() return endif - if getline(1) =~ '^%' + if getline(1) =~ '^\v%(\%|\\)' setf tex elseif getline(1)[0] == '#' && getline(1) =~ 'rexx' setf rexx |