patch 9.0.0779: lsl and lm3 file extensions are not recognized

Problem:    lsl and lm3 file extensions are not recognized.
Solution:   Add *.lsl and *.lm3 patterns. (Doug Kearns, closes #11384)
This commit is contained in:
Doug Kearns
2022-10-17 13:32:17 +01:00
committed by Bram Moolenaar
parent 4913d420e8
commit 4ac8e7948c
5 changed files with 55 additions and 2 deletions

View File

@ -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