neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

asm.vim (993B)


      1 " Vim filetype plugin file
      2 " Language:	asm
      3 " Maintainer:	Colin Caine <cmcaine at the common googlemail domain>
      4 " Last Change:	2020 May 23
      5 " 		2023 Aug 28 by Vim Project (undo_ftplugin)
      6 " 		2024 Apr 09 by Vim Project (add Matchit support)
      7 " 		2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
      8 " 		2026 Jan 19 by Vim Project (add # as comment symbol)
      9 
     10 if exists("b:did_ftplugin") | finish | endif
     11 let b:did_ftplugin = 1
     12 
     13 setl include=^\\s*%\\s*include
     14 setl comments=:;,s1:/*,mb:*,ex:*/,://,:#
     15 setl commentstring=;\ %s
     16 
     17 let b:undo_ftplugin = "setl commentstring< comments< include<"
     18 
     19 " Matchit support
     20 if !exists('b:match_words')
     21  let b:match_skip = 's:comment\|string\|character\|special'
     22  let b:match_words = '^\s*%\s*if\%(\|num\|idn\|nidn\)\>:^\s*%\s*elif\>:^\s*%\s*else\>:^\s*%\s*endif\>,^\s*%\s*macro\>:^\s*%\s*endmacro\>,^\s*%\s*rep\>:^\s*%\s*endrep\>'
     23  let b:match_ignorecase = 1
     24  let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words b:match_skip"
     25 endif