forked from kaushalmodi/.emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fontification of verilog var names with 'signed' keywords
- Loading branch information
1 parent
eb48cde
commit 655eda0
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
;; Keywords: languages | ||
;; The "Version" is the date followed by the decimal rendition of the Git | ||
;; commit hex. | ||
;; Version: 2022.06.13.263427885 | ||
;; Version: 2022.06.16.010301656 | ||
|
||
;; Yoni Rabkin <[email protected]> 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 "2022-06-13-fb3972d-vpo" | ||
(defconst verilog-mode-version "2022-06-16-09d30d8-vpo" | ||
"Version of this Verilog mode.") | ||
(defconst verilog-mode-release-emacs nil | ||
"If non-nil, this version of Verilog mode was released with Emacs itself.") | ||
|
@@ -3372,7 +3372,7 @@ See also `verilog-font-lock-extra-types'.") | |
1 'font-lock-constant-face append) | ||
;; Fontify variable names in declarations | ||
(list | ||
verilog-declaration-re | ||
verilog-declaration-re-2-no-macro ;declaration type with optional (un)signed keyword and range | ||
(list | ||
;; Anchored matcher (lookup Search-Based Fontification) | ||
'verilog-declaration-varname-matcher | ||
|
@@ -3396,8 +3396,8 @@ See also `verilog-font-lock-extra-types'.") | |
'("\\(\\\\\\S-*\\s-\\)" 0 font-lock-function-name-face) | ||
;; Fontify macro definitions/ uses | ||
'("`\\s-*[A-Za-z][A-Za-z0-9_]*" 0 (if (boundp 'font-lock-preprocessor-face) | ||
'font-lock-preprocessor-face | ||
'font-lock-type-face)) | ||
'font-lock-preprocessor-face | ||
'font-lock-type-face)) | ||
;; Fontify delays/numbers | ||
'("\\(@\\)\\|\\([ \t\n\f\r]#\\s-*\\(\\([0-9_.]+\\('s?[hdxbo][0-9a-fA-F_xz]*\\)?\\)\\|\\(([^()]+)\\|\\sw+\\)\\)\\)" | ||
0 font-lock-type-face append) | ||
|