tiasm.vim 793 B

12345678910111213141516171819
  1. " Vim filetype plugin file
  2. " Language: TI linear assembly language
  3. " Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
  4. " Last Change: 2025 Jan 08
  5. if exists("b:did_ftplugin") | finish | endif
  6. let b:did_ftplugin = 1
  7. setlocal comments=:;
  8. setlocal commentstring=;\ %s
  9. let b:undo_ftplugin = "setl commentstring< comments<"
  10. if exists("loaded_matchit")
  11. 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'
  12. let b:match_ignorecase = 1
  13. let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
  14. endif