1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(font-lock-regexp-face): New face

* lisp/font-lock.el (font-lock-regexp-face): New face.

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings):
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Use it for regexps.

* etc/NEWS: Mention the addition.
This commit is contained in:
Dmitry Gutov 2023-01-06 19:56:20 +02:00
parent 5ab03bcc43
commit 2ea6ee5cbf
5 changed files with 11 additions and 6 deletions

View file

@ -3498,7 +3498,7 @@ This function is intended for use in `after-change-functions'."
:language 'javascript
:feature 'string
'((regex pattern: (regex_pattern)) @font-lock-string-face
'((regex pattern: (regex_pattern)) @font-lock-regexp-face
(string) @font-lock-string-face)
:language 'javascript