Mercurial > vim
comparison runtime/autoload/dist/ft.vim @ 28351:1aa3460f799d v8.2.4701
patch 8.2.4701: Kuka Robot Language files not recognized
Commit: https://github.com/vim/vim/commit/3ad2090316edc85e93094bba7af64f9991cc7f85
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 6 18:57:39 2022 +0100
patch 8.2.4701: Kuka Robot Language files not recognized
Problem: Kuka Robot Language files not recognized.
Solution: Recognize *.src and *.dat files. (Patrick Meiser-Knosowski,
closes #10096)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 06 Apr 2022 20:00:03 +0200 |
parents | c968191a8557 |
children | 6dd88e45d47d |
comparison
equal
deleted
inserted
replaced
28350:12d0eb14c3f2 | 28351:1aa3460f799d |
---|---|
894 endif | 894 endif |
895 endfor | 895 endfor |
896 setf tf | 896 setf tf |
897 enddef | 897 enddef |
898 | 898 |
899 # Determine if a *.src file is Kuka Robot Language | |
900 export def FTsrc() | |
901 if exists("g:filetype_src") | |
902 exe "setf " .. g:filetype_src | |
903 elseif getline(nextnonblank(1)) =~? '^\s*\%(&\w\+\|\%(global\s\+\)\?def\>\)' | |
904 setf krl | |
905 endif | |
906 enddef | |
907 | |
908 # Determine if a *.dat file is Kuka Robot Language | |
909 export def FTdat() | |
910 if exists("g:filetype_dat") | |
911 exe "setf " .. g:filetype_dat | |
912 elseif getline(nextnonblank(1)) =~? '^\s*\%(&\w\+\|defdat\>\)' | |
913 setf krl | |
914 endif | |
915 enddef | |
899 | 916 |
900 # Uncomment this line to check for compilation errors early | 917 # Uncomment this line to check for compilation errors early |
901 # defcompile | 918 # defcompile |