Commit: runtime(asm): add '#' as comment symbol (GNU as)

0 views
Skip to first unread message

Christian Brabandt

unread,
Jan 19, 2026, 2:16:20 PM (10 hours ago) Jan 19
to vim...@googlegroups.com
runtime(asm): add '#' as comment symbol (GNU as)

Commit: https://github.com/vim/vim/commit/b1fa262960ca3ef910ae192db58d28b3e3c7719a
Author: Mateo Gjika <10477759...@users.noreply.github.com>
Date: Mon Jan 19 19:08:39 2026 +0000

runtime(asm): add '#' as comment symbol (GNU as)

closes: https://github.com/vim/vim/issues/19158

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/ftplugin/asm.vim b/runtime/ftplugin/asm.vim
index 4482b90d0..46ffcf825 100644
--- a/runtime/ftplugin/asm.vim
+++ b/runtime/ftplugin/asm.vim
@@ -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 <rib...@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<"
Reply all
Reply to author
Forward
0 new messages