diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2023-01-20 03:56:44 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2023-01-20 03:58:03 +0200 |
commit | d66ac5285f72e0343d1cc6aae2db70a00b35feed (patch) | |
tree | 7c8b6e57b5de85be9b786faa478a92da14f81874 /lisp/progmodes/java-ts-mode.el | |
parent | 370b1ac99ec4328981ce8502ecb03353dbea5041 (diff) | |
download | emacs-d66ac5285f72e0343d1cc6aae2db70a00b35feed.tar.gz emacs-d66ac5285f72e0343d1cc6aae2db70a00b35feed.tar.bz2 emacs-d66ac5285f72e0343d1cc6aae2db70a00b35feed.zip |
ruby-ts-mode: Highlight builtin methods
* lisp/progmodes/ruby-mode.el (ruby-builtin-methods-with-reqs)
(ruby-builtin-methods-no-reqs): New constants, extracted.
(ruby-font-lock-keywords): Replace values with references.
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--builtin-methods): New
variable. Construct regexp from aforementioned constants' values.
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings):
Use it.
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
Add new font-lock feature: builtin-functions.
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--predefined-constants)
(ruby-ts--predefined-variables): Unrelated to the rest of the
patch, add string-start and string-end anchors.
Diffstat (limited to 'lisp/progmodes/java-ts-mode.el')
0 files changed, 0 insertions, 0 deletions