blob: 13a3dc64f7c1aa05836629bfb9dec9c68ffccf0d [file] [log] [blame]
Wu, Zhenyu4f73c072025-01-08 20:20:06 +01001" Vim filetype plugin file
2" Language: TI linear assembly language
3" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
4" Last Change: 2025 Jan 08
5
6if exists("b:did_ftplugin") | finish | endif
7let b:did_ftplugin = 1
8
9setlocal comments=:;
10setlocal commentstring=;\ %s
11
12let b:undo_ftplugin = "setl commentstring< comments<"
13
14if exists("loaded_matchit")
15 let b:match_words = '^\s\+\.if\>:^\s\+\.elseif:^\s\+\.else\>:^\s\+\.endif\>,^\s\+\.group:^\s\+\.gmember:^\s\+\.endgroup,^\s\+\.loop:^\s\+\.break:^\s\+\.endloop,^\s\+\.macro:^\s\+\.mexit:^\s\+\.endm,^\s\+\.asmfunc:^\s\+\.endasmfunc,^\s\+\.c\?struct:^\s\+\.endstruct,^\s\+\.c\?union:^\s\+\.endunion,^\s\+\.c\?proc:^\s\+\.return:^\s\+\.endproc'
16 let b:match_ignorecase = 1
17 let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
18endif