mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
c12be1249f
Problem: filetype: Vivado files are not recognized
Solution: detect '*.mss' files as 'mss' filetype
(Wu, Zhenyu)
references:
https://docs.amd.com/r/2020.2-English/ug1400-vitis-embedded/Microprocessor-Software-Specification-MSS
closes: vim/vim#15907
a87462a498
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
17 lines
467 B
VimL
17 lines
467 B
VimL
" Vim filetype plugin file
|
|
" Language: Vivado mss file
|
|
" Last Change: 2024 Oct 22
|
|
" Document: https://docs.amd.com/r/2020.2-English/ug1400-vitis-embedded/Microprocessor-Software-Specification-MSS
|
|
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
|
|
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
let b:did_ftplugin = 1
|
|
|
|
setlocal comments=b:#,fb:-
|
|
setlocal commentstring=#\ %s
|
|
|
|
let b:match_words = '\<BEGIN\>:\<END\>'
|
|
let b:undo_ftplugin = "setl com< cms< | unlet b:match_words"
|