summaryrefslogtreecommitdiff
path: root/lisp/progmodes/verilog-mode.el
diff options
context:
space:
mode:
authorMattias Engdegard <mattiase@acm.org>2021-03-30 07:54:41 -0400
committerWilson Snyder <wsnyder@wsnyder.org>2021-03-30 07:54:41 -0400
commitc2e90d11190fea8e9c32fcd6bc9e4a88b3cbf0de (patch)
treeaba9ad44240d7f679c22855b354a67b9f7b65264 /lisp/progmodes/verilog-mode.el
parent4bfcfdb41638f37c89c0db8f297707773c677656 (diff)
downloademacs-c2e90d11190fea8e9c32fcd6bc9e4a88b3cbf0de.tar.gz
emacs-c2e90d11190fea8e9c32fcd6bc9e4a88b3cbf0de.tar.bz2
emacs-c2e90d11190fea8e9c32fcd6bc9e4a88b3cbf0de.zip
lisp/progmodes/verilog-mode.el internal code cleanup.
* lisp/progmodes/verilog-mode.el (verilog-at-close-struct-p): Internal code cleanup.
Diffstat (limited to 'lisp/progmodes/verilog-mode.el')
-rw-r--r--lisp/progmodes/verilog-mode.el15
1 files changed, 5 insertions, 10 deletions
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el
index 8ba3483bcca..a7f72950b10 100644
--- a/lisp/progmodes/verilog-mode.el
+++ b/lisp/progmodes/verilog-mode.el
@@ -9,7 +9,7 @@
;; Keywords: languages
;; The "Version" is the date followed by the decimal rendition of the Git
;; commit hex.
-;; Version: 2021.03.29.215531170
+;; Version: 2021.03.30.243771231
;; Yoni Rabkin <yoni@rabkins.net> contacted the maintainer of this
;; file on 19/3/2008, and the maintainer agreed that when a bug is
@@ -124,7 +124,7 @@
;;
;; This variable will always hold the version number of the mode
-(defconst verilog-mode-version "2021-03-29-cd8bea2-vpo-GNU"
+(defconst verilog-mode-version "2021-03-30-e87a75f-vpo-GNU"
"Version of this Verilog mode.")
(defconst verilog-mode-release-emacs t
"If non-nil, this version of Verilog mode was released with Emacs itself.")
@@ -6650,14 +6650,9 @@ Return >0 for nested struct."
(defun verilog-at-close-struct-p ()
"If at the } that closes a struct, return true."
- (if (and
- (equal (char-after) ?\})
- (verilog-in-struct-p))
- ;; true
- (save-excursion
- (if (looking-at "}\\(?:\\s-*\\w+\\s-*\\(\\s-*\\,\\s-*\\w+\\)*\\)?;") 1))
- ;; false
- nil))
+ (and (equal (char-after) ?\})
+ (verilog-in-struct-p)
+ (looking-at "}\\(?:\\s-*\\w+\\s-*\\(?:,\\s-*\\w+\\s-*\\)*\\)?;")))
(defun verilog-parenthesis-depth ()
"Return non zero if in parenthetical-expression."