[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)
- [nongnu] elpa/nasm-mode 63d4433 62/67: allow for customization of tabs/spaces behaviour, (continued)
- [nongnu] elpa/nasm-mode 63d4433 62/67: allow for customization of tabs/spaces behaviour, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 4b06918 02/67: Allow labels without colons., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 9e8e7c9 15/67: Add constant syntax highlighting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode ac9ce5d 18/67: Require imenu (to ensure automatic buffer-local)., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode ca9d65f 26/67: Default nasm-basic-offset to tab-width., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode fa44b36 38/67: Remove some junk from nasm-instructions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 694160a 46/67: Add README note., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode e8ca8b9 50/67: Make comment-start local., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 1ec7d0a 53/67: Add a LIMIT argument to looking-back call, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 9a5f989 57/67: Fix docstring indentation for nasm-font-lock-keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 832caad 59/67: Make semicolons behave when typed into strings,
ELPA Syncer <=
- [nongnu] elpa/nasm-mode af3d935 61/67: Allow directive names as labels (font-locking), ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 01f90c3 03/67: Fix byte-compiler breakage., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode ad2ff83 05/67: Add .gitignore., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode b595921 11/67: Add nasm-colon key binding., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 10f775e 28/67: Update instruction listing, since some were missing., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 213331e 31/67: Oops, bump version number., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode b2469e0 33/67: Add context-sensitive comment handling., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 4de4e56 47/67: Add clzero, monitorx, and mwaitx to instructions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 5b0d30f 58/67: Allow prefix in point following mnemonic check, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode e072340 60/67: Update TODO list, ELPA Syncer, 2021/08/29