Commit 9ee911ce authored by Stefan Kangas's avatar Stefan Kangas
Browse files

Mark `;#@` as :safe for asm-comment-char

* lisp/progmodes/asm-mode.el (asm--safe-comment-char-p): New function
that returns true for characters #, @, and ;.
(asm-comment-char): Use new function as :safe predicate.
parent c3b41c12
Pipeline #27458 failed with stages
in 227 minutes and 23 seconds
;;; asm-mode.el --- mode for editing assembler code -*- lexical-binding: t; -*-
;; Copyright (C) 1991, 2001-2023 Free Software Foundation, Inc.
;; Copyright (C) 1991-2023 Free Software Foundation, Inc.
;; Author: Eric S. Raymond <esr@thyrsus.com>
;; Maintainer: emacs-devel@gnu.org
......@@ -52,9 +52,13 @@
:link '(custom-group-link :tag "Font Lock Faces group" font-lock-faces)
:group 'languages)
(defun asm--safe-comment-char-p (char)
(memq char '(?\; ?# ?@)))
(defcustom asm-comment-char ?\;
"The `comment-start' character assumed by Asm mode."
:type 'character)
:type 'character
:safe #'asm--safe-comment-char-p)
(defvar asm-mode-syntax-table
(let ((st (make-syntax-table)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment