diff options
| author | Wilson Snyder | 2019-05-06 18:35:31 -0400 |
|---|---|---|
| committer | Wilson Snyder | 2019-05-06 18:35:31 -0400 |
| commit | 01963fbbe10d290ba037cd523d21ebbcd2536b40 (patch) | |
| tree | 154514499fc49a293ba6acd7134211404db0b4bc | |
| parent | f0c0b2cea3ffea7e3c53ff24c58e7a08ac40babb (diff) | |
| download | emacs-01963fbbe10d290ba037cd523d21ebbcd2536b40.tar.gz emacs-01963fbbe10d290ba037cd523d21ebbcd2536b40.zip | |
Fix verilog-mode module backticks; whitespace from prev commits.
* verilog-mode.el (verilog-read-inst-module-matcher):
Work when point is near backtick. Reported by Mattias Engdegard.
| -rw-r--r-- | lisp/progmodes/verilog-mode.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index e75e5845ef3..eeed4c0d7c8 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el | |||
| @@ -121,7 +121,7 @@ | |||
| 121 | ;; | 121 | ;; |
| 122 | 122 | ||
| 123 | ;; This variable will always hold the version number of the mode | 123 | ;; This variable will always hold the version number of the mode |
| 124 | (defconst verilog-mode-version "2019-04-02-5d62d3f-vpo-GNU" | 124 | (defconst verilog-mode-version "2019-05-06-28bee25-vpo-GNU" |
| 125 | "Version of this Verilog mode.") | 125 | "Version of this Verilog mode.") |
| 126 | (defconst verilog-mode-release-emacs t | 126 | (defconst verilog-mode-release-emacs t |
| 127 | "If non-nil, this version of Verilog mode was released with Emacs itself.") | 127 | "If non-nil, this version of Verilog mode was released with Emacs itself.") |
| @@ -2760,13 +2760,13 @@ find the errors." | |||
| 2760 | (defconst verilog-delay-re "#\\s-*\\(\\([0-9_]+\\('s?[hdxbo][0-9a-fA-F_xz]+\\)?\\)\\|\\(([^()]*)\\)\\|\\(\\sw+\\)\\)") | 2760 | (defconst verilog-delay-re "#\\s-*\\(\\([0-9_]+\\('s?[hdxbo][0-9a-fA-F_xz]+\\)?\\)\\|\\(([^()]*)\\)\\|\\(\\sw+\\)\\)") |
| 2761 | (defconst verilog-declaration-re-2-no-macro | 2761 | (defconst verilog-declaration-re-2-no-macro |
| 2762 | (concat "\\s-*" verilog-declaration-re | 2762 | (concat "\\s-*" verilog-declaration-re |
| 2763 | "\\s-*\\(\\(" verilog-optional-signed-range-re "\\)\\|\\(" verilog-delay-re "\\)" | 2763 | "\\s-*\\(\\(" verilog-optional-signed-range-re "\\)\\|\\(" verilog-delay-re "\\)" |
| 2764 | "\\)")) | 2764 | "\\)")) |
| 2765 | (defconst verilog-declaration-re-2-macro | 2765 | (defconst verilog-declaration-re-2-macro |
| 2766 | (concat "\\s-*" verilog-declaration-re | 2766 | (concat "\\s-*" verilog-declaration-re |
| 2767 | "\\s-*\\(\\(" verilog-optional-signed-range-re "\\)\\|\\(" verilog-delay-re "\\)" | 2767 | "\\s-*\\(\\(" verilog-optional-signed-range-re "\\)\\|\\(" verilog-delay-re "\\)" |
| 2768 | "\\|\\(" verilog-macroexp-re "\\)" | 2768 | "\\|\\(" verilog-macroexp-re "\\)" |
| 2769 | "\\)")) | 2769 | "\\)")) |
| 2770 | (defconst verilog-declaration-re-1-macro | 2770 | (defconst verilog-declaration-re-1-macro |
| 2771 | (concat "^" verilog-declaration-re-2-macro)) | 2771 | (concat "^" verilog-declaration-re-2-macro)) |
| 2772 | 2772 | ||
| @@ -8357,13 +8357,13 @@ Use optional HEADER and PREFIX." | |||
| 8357 | (when (looking-at ")") | 8357 | (when (looking-at ")") |
| 8358 | (verilog-backward-open-paren) | 8358 | (verilog-backward-open-paren) |
| 8359 | (verilog-re-search-backward-quick "\\b[a-zA-Z0-9`_$]" nil nil)) | 8359 | (verilog-re-search-backward-quick "\\b[a-zA-Z0-9`_$]" nil nil)) |
| 8360 | (skip-chars-backward "a-zA-Z0-9'_$") | 8360 | (skip-chars-backward "a-zA-Z0-9`_$") |
| 8361 | ;; #1 is legal syntax for gate primitives | 8361 | ;; #1 is legal syntax for gate primitives |
| 8362 | (when (save-excursion | 8362 | (when (save-excursion |
| 8363 | (verilog-backward-syntactic-ws-quick) | 8363 | (verilog-backward-syntactic-ws-quick) |
| 8364 | (eq ?# (char-before))) | 8364 | (eq ?# (char-before))) |
| 8365 | (verilog-re-search-backward-quick "\\b[a-zA-Z0-9`_$]" nil nil) | 8365 | (verilog-re-search-backward-quick "\\b[a-zA-Z0-9`_$]" nil nil) |
| 8366 | (skip-chars-backward "a-zA-Z0-9'_$")) | 8366 | (skip-chars-backward "a-zA-Z0-9`_$")) |
| 8367 | (looking-at "[a-zA-Z0-9`_$]+") | 8367 | (looking-at "[a-zA-Z0-9`_$]+") |
| 8368 | ;; Important: don't use match string, this must work with Emacs 19 font-lock on | 8368 | ;; Important: don't use match string, this must work with Emacs 19 font-lock on |
| 8369 | (buffer-substring-no-properties (match-beginning 0) (match-end 0)) | 8369 | (buffer-substring-no-properties (match-beginning 0) (match-end 0)) |
| @@ -11412,7 +11412,7 @@ If PAR-VALUES replace final strings with these parameter values." | |||
| 11412 | (when tpl-ass | 11412 | (when tpl-ass |
| 11413 | ;; Evaluate @"(lispcode)" | 11413 | ;; Evaluate @"(lispcode)" |
| 11414 | (when (string-match "@\".*[^\\]\"" tpl-net) | 11414 | (when (string-match "@\".*[^\\]\"" tpl-net) |
| 11415 | (while (string-match "@\"\\(\\([^\\\"]\\|\\\\.\\)*\\)\"" tpl-net) | 11415 | (while (string-match "@\"\\(\\([^\\\"]\\|\\\\.\\)*\\)\"" tpl-net) |
| 11416 | (setq tpl-net | 11416 | (setq tpl-net |
| 11417 | (concat | 11417 | (concat |
| 11418 | (substring tpl-net 0 (match-beginning 0)) | 11418 | (substring tpl-net 0 (match-beginning 0)) |