neovim/runtime/ftplugin/mss.vim
Christian Clason c12be1249f vim-patch:9.1.0873: filetype: Vivado files are not recognized
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>
2024-11-19 10:44:30 +01:00

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"