robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
a9271f927f
master
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 10if exists ( "b:did_ftplugin" ) |finish |endif 11let b: did_ftplugin = 1 12 13setl include = ^\\s*%\\s*include 14setl comments = :;,s1:/*,mb:*,ex:*/,://,:# 15setl commentstring = ;\ %s 16 17let b: undo_ftplugin = "setl commentstring< comments< include<" 18 19" Matchit support 20if ! exists ( 'b:match_words' ) 21let b: match_skip = 's:comment\|string\|character\|special' 22let 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\>' 23let b: match_ignorecase = 1 24let b: undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words b:match_skip" 25endif