diff options
author | Christian Clason <christian.clason@uni-due.de> | 2021-09-13 10:00:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 10:00:09 +0200 |
commit | b9d57fa107a456596e68d2ee3853ba75142a6930 (patch) | |
tree | 8b33505656c97680286e93ca882bf1858f350f33 /runtime/autoload | |
parent | 643cb8a6ecc9c78580ccaf1821b52f836b7b7ef4 (diff) | |
download | rneovim-b9d57fa107a456596e68d2ee3853ba75142a6930.tar.gz rneovim-b9d57fa107a456596e68d2ee3853ba75142a6930.tar.bz2 rneovim-b9d57fa107a456596e68d2ee3853ba75142a6930.zip |
vim-patch:8.2.3432: octave/Matlab filetype detection does not work properly (#15652)
Problem: Octave/Matlab filetype detection does not work properly.
Solution: Update the patterns used for matching. (Doug Kearns)
https://github.com/vim/vim/commit/ca0627df69c29508f6f797bef27a1f5fa9a447d3
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 48a9657cf5..7484149a26 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -269,7 +269,8 @@ func dist#ft#FTm() return endif - let octave_block_terminators = '\<end\%(_try_catch\|classdef\|enumeration\|events\|for\|function\|if\|methods\|parfor\|properties\|switch\|while\)\>' + " excluding end(for|function|if|switch|while) common to Murphi + let octave_block_terminators = '\<end\%(_try_catch\|classdef\|enumeration\|events\|methods\|parfor\|properties\)\>' let n = 1 let saw_comment = 0 " Whether we've seen a multiline comment leader. @@ -285,8 +286,7 @@ func dist#ft#FTm() setf objc return endif - if line =~ '^\s*\%(#\|%!\|[#%]{\=\s*$\)' || - \ line =~ '^\s*unwind_protect\>' || + if line =~ '^\s*\%(#\|%!\)' || line =~ '^\s*unwind_protect\>' || \ line =~ '\%(^\|;\)\s*' .. octave_block_terminators setf octave return |