diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-04-07 09:09:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-07 09:09:08 +0200 |
| commit | f85f4e25d2d5edf46fcb950ced028685fe95a7d7 (patch) | |
| tree | 13e18de6162879f53e14df3f99430274c088133f /runtime/autoload | |
| parent | 233014f92b5d4d5bf8a6f019241aafd1b05dd383 (diff) | |
| download | rneovim-f85f4e25d2d5edf46fcb950ced028685fe95a7d7.tar.gz rneovim-f85f4e25d2d5edf46fcb950ced028685fe95a7d7.tar.bz2 rneovim-f85f4e25d2d5edf46fcb950ced028685fe95a7d7.zip | |
vim-patch:8.2.4701: Kuka Robot Language files not recognized (#18012)
Problem: Kuka Robot Language files not recognized.
Solution: Recognize *.src and *.dat files. (Patrick Meiser-Knosowski,
closes vim/vim#10096)
https://github.com/vim/vim/commit/3ad2090316edc85e93094bba7af64f9991cc7f85
Diffstat (limited to 'runtime/autoload')
| -rw-r--r-- | runtime/autoload/dist/ft.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index c52def1051..959f4be896 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -899,6 +899,23 @@ func dist#ft#FTtf() setf tf endfunc +" Determine if a *.src file is Kuka Robot Language +func dist#ft#FTsrc() + if exists("g:filetype_src") + exe "setf " .. g:filetype_src + elseif getline(nextnonblank(1)) =~? '^\s*\%(&\w\+\|\%(global\s\+\)\?def\>\)' + setf krl + endif +endfunc + +" Determine if a *.dat file is Kuka Robot Language +func dist#ft#FTdat() + if exists("g:filetype_dat") + exe "setf " .. g:filetype_dat + elseif getline(nextnonblank(1)) =~? '^\s*\%(&\w\+\|defdat\>\)' + setf krl + endif +endfunc " Restore 'cpoptions' let &cpo = s:cpo_save |