aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Engdegard2021-03-30 07:54:41 -0400
committerWilson Snyder2021-03-30 07:54:41 -0400
commitc2e90d11190fea8e9c32fcd6bc9e4a88b3cbf0de (patch)
treeaba9ad44240d7f679c22855b354a67b9f7b65264
parent4bfcfdb41638f37c89c0db8f297707773c677656 (diff)
downloademacs-c2e90d11190fea8e9c32fcd6bc9e4a88b3cbf0de.tar.gz
emacs-c2e90d11190fea8e9c32fcd6bc9e4a88b3cbf0de.zip
lisp/progmodes/verilog-mode.el internal code cleanup.
* lisp/progmodes/verilog-mode.el (verilog-at-close-struct-p): Internal code cleanup.
-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 @@
9;; Keywords: languages 9;; Keywords: languages
10;; The "Version" is the date followed by the decimal rendition of the Git 10;; The "Version" is the date followed by the decimal rendition of the Git
11;; commit hex. 11;; commit hex.
12;; Version: 2021.03.29.215531170 12;; Version: 2021.03.30.243771231
13 13
14;; Yoni Rabkin <yoni@rabkins.net> contacted the maintainer of this 14;; Yoni Rabkin <yoni@rabkins.net> contacted the maintainer of this
15;; file on 19/3/2008, and the maintainer agreed that when a bug is 15;; file on 19/3/2008, and the maintainer agreed that when a bug is
@@ -124,7 +124,7 @@
124;; 124;;
125 125
126;; This variable will always hold the version number of the mode 126;; This variable will always hold the version number of the mode
127(defconst verilog-mode-version "2021-03-29-cd8bea2-vpo-GNU" 127(defconst verilog-mode-version "2021-03-30-e87a75f-vpo-GNU"
128 "Version of this Verilog mode.") 128 "Version of this Verilog mode.")
129(defconst verilog-mode-release-emacs t 129(defconst verilog-mode-release-emacs t
130 "If non-nil, this version of Verilog mode was released with Emacs itself.") 130 "If non-nil, this version of Verilog mode was released with Emacs itself.")
@@ -6650,14 +6650,9 @@ Return >0 for nested struct."
6650 6650
6651(defun verilog-at-close-struct-p () 6651(defun verilog-at-close-struct-p ()
6652 "If at the } that closes a struct, return true." 6652 "If at the } that closes a struct, return true."
6653 (if (and 6653 (and (equal (char-after) ?\})
6654 (equal (char-after) ?\}) 6654 (verilog-in-struct-p)
6655 (verilog-in-struct-p)) 6655 (looking-at "}\\(?:\\s-*\\w+\\s-*\\(?:,\\s-*\\w+\\s-*\\)*\\)?;")))
6656 ;; true
6657 (save-excursion
6658 (if (looking-at "}\\(?:\\s-*\\w+\\s-*\\(\\s-*\\,\\s-*\\w+\\)*\\)?;") 1))
6659 ;; false
6660 nil))
6661 6656
6662(defun verilog-parenthesis-depth () 6657(defun verilog-parenthesis-depth ()
6663 "Return non zero if in parenthetical-expression." 6658 "Return non zero if in parenthetical-expression."