branch: elpa/nasm-mode
commit 832caadfcf23ea7e6a62b871726435f9c34e431e
Author: Charlie Green <[email protected]>
Commit: Christopher Wellons <[email protected]>
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)