vim/runtime/ftplugin/mss.vim
Wu, Zhenyu a87462a498
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: #15907

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-11-18 21:36:31 +01:00

16 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"