mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-06 20:49:33 +00:00
Fix font-lock in perl-mode
* lisp/progmodes/perl-mode.el (perl-font-lock-keywords-1): Prevent the regexp from matching keywords if they start with a Perl sigil. (Bug#30549)
This commit is contained in:
parent
ed071fa79c
commit
f9dfad9358
@ -165,7 +165,7 @@
|
||||
;; Fontify function and package names in declarations.
|
||||
("\\<\\(package\\|sub\\)\\>[ \t]*\\(\\sw+\\)?"
|
||||
(1 font-lock-keyword-face) (2 font-lock-function-name-face nil t))
|
||||
("\\<\\(import\\|no\\|require\\|use\\)\\>[ \t]*\\(\\sw+\\)?"
|
||||
("\\(^\\|[^$@%&\\]\\)\\<\\(import\\|no\\|require\\|use\\)\\>[ \t]*\\(\\sw+\\)?"
|
||||
(1 font-lock-keyword-face) (2 font-lock-constant-face nil t)))
|
||||
"Subdued level highlighting for Perl mode.")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user