diff options
author | Doug Kearns <dougkearns@gmail.com> | 2022-10-17 13:32:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-17 13:32:17 +0100 |
commit | 4ac8e7948cb3e07bc4598ede8b274891d14dfa7c (patch) | |
tree | 5ba7c4cfcb8365ef4a42534b3f3bcba98b8fa74b /runtime/autoload | |
parent | 4913d420e8e8619cff837372bce87683d6fcaa03 (diff) |
patch 9.0.0779: lsl and lm3 file extensions are not recognizedv9.0.0779
Problem: lsl and lm3 file extensions are not recognized.
Solution: Add *.lsl and *.lm3 patterns. (Doug Kearns, closes #11384)
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index d5c21ac184..8f744457ca 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -1087,5 +1087,18 @@ export def FTdat() endif enddef +export def FTlsl() + if exists("g:filetype_lsl") + exe "setf " .. g:filetype_lsl + endif + + var line = getline(nextnonblank(1)) + if line =~ '^\s*%' || line =~# ':\s*trait\s*$' + setf larch + else + setf lsl + endif +enddef + # Uncomment this line to check for compilation errors early # defcompile |