[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nasm-mode 02c2450 40/67: Assume things that start with dot
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nasm-mode 02c2450 40/67: Assume things that start with dot are labels. |
Date: |
Sun, 29 Aug 2021 11:23:49 -0400 (EDT) |
branch: elpa/nasm-mode
commit 02c2450e6b47b109199ccf4e07ec88288de3a88b
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Assume things that start with dot are labels.
---
nasm-mode.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/nasm-mode.el b/nasm-mode.el
index 38487f3..e90d881 100644
--- a/nasm-mode.el
+++ b/nasm-mode.el
@@ -510,7 +510,13 @@
"NASM preprocessor directives (pptok.c) for `nasm-mode'."))
(defconst nasm-label-regexp
- "\\(\\_<[a-zA-Z_.?][a-zA-Z0-9_$#@~.?]*\\_>\\)\\s-*:"
+ (let ((head "[a-zA-Z_?]")
+ (tail "[a-zA-Z0-9_$#@~?]"))
+ (concat "\\(?:"
+ "\\(\\_<\\." head tail "*\\_>\\)\\(?:\\s-*:\\)?"
+ "\\|"
+ "\\(\\_<" head tail "*\\_>\\)\\s-*:"
+ "\\)"))
"Regexp for `nasm-mode' for matching labels.")
(defconst nasm-constant-regexp
- [nongnu] branch elpa/nasm-mode created (now 65ca654), ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode e950dca 06/67: Use work boundary in smart indentation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode b5efa92 07/67: Allow for NASM's crazy label possibilities., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 3d4786b 08/67: Add ELPA header., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 4155959 21/67: Remove stray newline., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode c303d91 52/67: Add a Makefile for easy static analysis by the compiler, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode c38cff7 01/67: Check in initial working mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 3af81f6 14/67: Require colons on labels., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 02c2450 40/67: Assume things that start with dot are labels.,
ELPA Syncer <=
- [nongnu] elpa/nasm-mode 3992726 42/67: Add nasm-join-line keybinding (M-^)., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 2fe823c 43/67: Adjust nasm-mode to remap join-line specifically., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode c3f5475 48/67: Bump to 1.1.0., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode f53b2c5 56/67: Create a formal TODO list, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 5110886 64/67: Add type specification to nasm-basic-offset, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 96a06c0 65/67: Support M-; (comment-dwim function), ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 65ca654 67/67: make comment functions local, ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode b384240 04/67: Include prefixes in smart indentation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 3da1454 12/67: Add a docstring to nasm-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/nasm-mode 2a5768a 16/67: Indent commented code differently., ELPA Syncer, 2021/08/29