[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 39f1e05667 009/323: Add filter for commentOnl
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 39f1e05667 009/323: Add filter for commentOnly |
Date: |
Thu, 9 Mar 2023 10:57:50 -0500 (EST) |
branch: externals/beardbolt
commit 39f1e056672a1e70ba147db7e4438fe8240269c0
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>
Add filter for commentOnly
---
rmsbolt.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index 088c1345bb..78724afe67 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -49,6 +49,7 @@
(defvar rmsbolt-intel-x86 t)
(defvar rmsbolt-filter-asm-directives t)
(defvar rmsbolt-filter-unused-labels t)
+(defvar rmsbolt-filter-comment-only t)
;;;; Regexes
@@ -80,6 +81,9 @@
"short" "word" "long" "quad" "value"
"zero"))))
(defvar rmsbolt-directive (rx bol (0+ space) "." (0+ any) eol))
(defvar rmsbolt-endblock (rx "." (or "cfi_endproc" "data" "text" "section")))
+(defvar rmsbolt-comment-only (rx bol (0+ space) (or (and (or (any "#@;") "//"))
+ (and "/*" (0+ any) "*/"))
+ (0+ any) eol))
;;;; Classes
@@ -88,8 +92,7 @@
(compile-cmd
""
:type string
- :documentation "The command used to compile this file")
- )
+ :documentation "The command used to compile this file"))
(cl-defstruct (rmsbolt-lang
(:conc-name rmsbolt-l-))
@@ -224,6 +227,10 @@
(when (string-match-p rmsbolt-endblock line)
(setq prev-label nil))
+ (when (and rmsbolt-filter-comment-only
+ (string-match-p rmsbolt-comment-only line))
+ (go continue))
+
;; continue means we don't add to the ouptut
(when match
(if (not used-label)
@@ -284,7 +291,7 @@
(options (copy-rmsbolt-options (rmsbolt-l-options lang)))
(cmd (rmsbolt--get-cmd)))
(when cmd
- (setf (rmsbolt-ro-compile-cmd options) cmd))
+ (setf (rmsbolt-o-compile-cmd options) cmd))
options))
;;;;; UI Functions
- [elpa] externals/beardbolt 4213316f23 037/323: Fix recentering when not needed, (continued)
- [elpa] externals/beardbolt 4213316f23 037/323: Fix recentering when not needed, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 545a366472 049/323: Add more tests, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2e6163c95a 047/323: Add testing framework, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 5efa347027 046/323: Update readme, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 082cbc7b1c 048/323: Add new tests, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ff6f376d87 053/323: Update README.org, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3ca3f35cdb 050/323: Add very basic support for rust, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 65a1ac7b6e 054/323: Add support for demangling, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt bb64352f8d 034/323: Store and use ranges to view highlighted regions, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 1419a90465 040/323: Add C/C++ demo, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 39f1e05667 009/323: Add filter for commentOnly,
ELPA Syncer <=
- [elpa] externals/beardbolt 4a35528d7d 021/323: Configure all variables with buffer-local values, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3bfc7ed2e3 012/323: Allow custom functions to parse arguments, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 98cea6e8e0 023/323: Simplify creation of new starters with a macro, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 547a47e58f 022/323: Fix default commands, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2530003c71 020/323: Remove rmsbolt-options, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt cf7d2787bc 027/323: Implement line number parsing, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 8fc36eacd8 044/323: Add option to force assembling, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d37f8a0ebf 042/323: Remove reliance on hl-line-mode, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a0527f16af 045/323: Add very basic support for common lisp, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d7acfdd127 041/323: Fix rmsbolt temp directory generation being too late, ELPA Syncer, 2023/03/09