mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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:
committed by
Bram Moolenaar
parent
4913d420e8
commit
4ac8e7948c
13
runtime/autoload/dist/ft.vim
vendored
13
runtime/autoload/dist/ft.vim
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user