emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nasm-mode 832caad 59/67: Make semicolons behave when typed


From: ELPA Syncer
Subject: [nongnu] elpa/nasm-mode 832caad 59/67: Make semicolons behave when typed into strings
Date: Sun, 29 Aug 2021 11:23:52 -0400 (EDT)

branch: elpa/nasm-mode
commit 832caadfcf23ea7e6a62b871726435f9c34e431e
Author: Charlie Green <geek0795@gmail.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Make semicolons behave when typed into strings
---
 nasm-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nasm-mode.el b/nasm-mode.el
index 933f728..b5588d0 100644
--- a/nasm-mode.el
+++ b/nasm-mode.el
@@ -685,8 +685,8 @@ With a prefix arg, kill the comment on the current line with
   (if (not (eql arg 1))
       (comment-kill nil)
     (cond
-     ;; Empty line? Insert.
-     ((nasm--empty-line-p)
+     ;; Empty line, or inside a string? Insert.
+     ((or (nasm--empty-line-p) (nth 3 (syntax-ppss)))
       (insert ";"))
      ;; Inside the indentation? Comment out the line.
      ((nasm--inside-indentation-p)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]