aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload
diff options
context:
space:
mode:
authorJonas Strittmatter <40792180+smjonas@users.noreply.github.com>2022-10-17 08:18:57 +0200
committerGitHub <noreply@github.com>2022-10-17 08:18:57 +0200
commitd44f088834081ee404db4459fdcfba82d14ef157 (patch)
tree2ff070ab244584bbd5e45f2f1ddb4f7ba756c246 /runtime/autoload
parent8617101b6bf21bf27ba5194db5fb42c73ff67160 (diff)
downloadrneovim-d44f088834081ee404db4459fdcfba82d14ef157.tar.gz
rneovim-d44f088834081ee404db4459fdcfba82d14ef157.tar.bz2
rneovim-d44f088834081ee404db4459fdcfba82d14ef157.zip
vim-patch:9.0.0771: cannot always tell the difference beween tex and … (#20687)
vim-patch:9.0.0771: cannot always tell the difference beween tex and rexx files Problem: Cannot always tell the difference beween tex and rexx files. Solution: Recognize tex by a leading backslash. (Martin Tournoij, closes vim/vim#11380) https://github.com/vim/vim/commit/bd053f894b0d7652928201faa68c53d1ce2acdc5
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/dist/ft.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 7333e5a7e7..17abc90637 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -145,7 +145,7 @@ func dist#ft#FTcls()
return
endif
- if getline(1) =~ '^%'
+ if getline(1) =~ '^\v%(\%|\\)'
setf tex
elseif getline(1)[0] == '#' && getline(1) =~ 'rexx'
setf rexx