vim-patch:b1fa262: runtime(asm): add '#' as comment symbol (GNU as)

closes: vim/vim#19158

b1fa262960

Co-authored-by: Mateo Gjika <104777599+mateoxh@users.noreply.github.com>
This commit is contained in:
zeertzjq
2026-01-20 07:07:47 +08:00
parent 4fb8ba303c
commit c0062da148

View File

@@ -5,12 +5,13 @@
" 2023 Aug 28 by Vim Project (undo_ftplugin)
" 2024 Apr 09 by Vim Project (add Matchit support)
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
" 2026 Jan 19 by Vim Project (add # as comment symbol)
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
setl include=^\\s*%\\s*include
setl comments=:;,s1:/*,mb:*,ex:*/,://
setl comments=:;,s1:/*,mb:*,ex:*/,://,:#
setl commentstring=;\ %s
let b:undo_ftplugin = "setl commentstring< comments< include<"