aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilson Snyder2019-07-06 13:27:13 -0400
committerWilson Snyder2019-07-06 13:27:13 -0400
commit3a00a56f4281d7f38c917abfac84349349ad42dd (patch)
tree3e5c27100200b57c8ebdffafe2a8a2d9da290485
parentc16a8fc180ad766fe7dd97af0bab99e3e4552690 (diff)
downloademacs-3a00a56f4281d7f38c917abfac84349349ad42dd.tar.gz
emacs-3a00a56f4281d7f38c917abfac84349349ad42dd.zip
Backout replacing manually crafted hex regexes with [:xdigit:].
* lisp/progmodes/verilog-mode.el (verilog-delay-re): (verilog-type-font-keywords, verilog-read-always-signals-recurse): (verilog-is-number): Backout replacing manually crafted hex regexes with [:xdigit:] (Bug#36167). This repairs Verilog-mode regressions; Verilog-mode maintains back-compatibility with Emacsen before this syntax was supported.
-rw-r--r--lisp/progmodes/verilog-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el
index 4295f2e5a0d..8ddd262af3e 100644
--- a/lisp/progmodes/verilog-mode.el
+++ b/lisp/progmodes/verilog-mode.el
@@ -2762,7 +2762,7 @@ find the errors."
2762 "\\s-*\\(\\<\\(reg\\|wire\\)\\>\\s-*\\)?\\(\\<\\(un\\)?signed\\>\\s-*\\)?\\(" verilog-range-re "\\)?")) 2762 "\\s-*\\(\\<\\(reg\\|wire\\)\\>\\s-*\\)?\\(\\<\\(un\\)?signed\\>\\s-*\\)?\\(" verilog-range-re "\\)?"))
2763(defconst verilog-macroexp-re "`\\sw+") 2763(defconst verilog-macroexp-re "`\\sw+")
2764 2764
2765(defconst verilog-delay-re "#\\s-*\\(\\([0-9_]+\\('s?[hdxbo][[:xdigit:]_xz]+\\)?\\)\\|\\(([^()]*)\\)\\|\\(\\sw+\\)\\)") 2765(defconst verilog-delay-re "#\\s-*\\(\\([0-9_]+\\('s?[hdxbo][0-9a-fA-F_xz]+\\)?\\)\\|\\(([^()]*)\\)\\|\\(\\sw+\\)\\)")
2766(defconst verilog-declaration-re-2-no-macro 2766(defconst verilog-declaration-re-2-no-macro
2767 (concat "\\s-*" verilog-declaration-re 2767 (concat "\\s-*" verilog-declaration-re
2768 "\\s-*\\(\\(" verilog-optional-signed-range-re "\\)\\|\\(" verilog-delay-re "\\)" 2768 "\\s-*\\(\\(" verilog-optional-signed-range-re "\\)\\|\\(" verilog-delay-re "\\)"
@@ -3292,7 +3292,7 @@ See also `verilog-font-lock-extra-types'.")
3292 'font-lock-preprocessor-face 3292 'font-lock-preprocessor-face
3293 'font-lock-type-face)) 3293 'font-lock-type-face))
3294 ;; Fontify delays/numbers 3294 ;; Fontify delays/numbers
3295 '("\\(@\\)\\|\\([ \t\n\f\r]#\\s-*\\(\\([0-9_.]+\\('s?[hdxbo][[:xdigit:]_xz]*\\)?\\)\\|\\(([^()]+)\\|\\sw+\\)\\)\\)" 3295 '("\\(@\\)\\|\\([ \t\n\f\r]#\\s-*\\(\\([0-9_.]+\\('s?[hdxbo][0-9a-fA-F_xz]*\\)?\\)\\|\\(([^()]+)\\|\\sw+\\)\\)\\)"
3296 0 font-lock-type-face append) 3296 0 font-lock-type-face append)
3297 ;; Fontify property/sequence cycle delays - these start with '##' 3297 ;; Fontify property/sequence cycle delays - these start with '##'
3298 '("\\(##\\(\\sw+\\|\\[[^]]+\\]\\)\\)" 3298 '("\\(##\\(\\sw+\\|\\[[^]]+\\]\\)\\)"
@@ -9182,7 +9182,7 @@ TEMP-NEXT is true to ignore next token, fake from inside case statement."
9182 (setq end-else-check t)) 9182 (setq end-else-check t))
9183 (forward-char 1)) 9183 (forward-char 1))
9184 ((equal keywd "'") 9184 ((equal keywd "'")
9185 (cond ((looking-at "'[sS]?[hdxboHDXBO]?[ \t]*[[:xdigit:]_xzXZ?]+") 9185 (cond ((looking-at "'[sS]?[hdxboHDXBO]?[ \t]*[0-9a-fA-F_xzXZ?]+")
9186 (goto-char (match-end 0))) 9186 (goto-char (match-end 0)))
9187 ((looking-at "'{") 9187 ((looking-at "'{")
9188 (forward-char 2) 9188 (forward-char 2)
@@ -9872,7 +9872,7 @@ Allows version control to check out the file if need be."
9872 "Return true if SYMBOL is number-like." 9872 "Return true if SYMBOL is number-like."
9873 (or (string-match "^[0-9 \t:]+$" symbol) 9873 (or (string-match "^[0-9 \t:]+$" symbol)
9874 (string-match "^[---]*[0-9]+$" symbol) 9874 (string-match "^[---]*[0-9]+$" symbol)
9875 (string-match "^[0-9 \t]+'s?[hdxbo][[:xdigit:]_xz? \t]*$" symbol))) 9875 (string-match "^[0-9 \t]+'s?[hdxbo][0-9a-fA-F_xz? \t]*$" symbol)))
9876 9876
9877(defun verilog-symbol-detick (symbol wing-it) 9877(defun verilog-symbol-detick (symbol wing-it)
9878 "Return an expanded SYMBOL name without any defines. 9878 "Return an expanded SYMBOL name without any defines.