]> git.eshelyaron.com Git - emacs.git/commitdiff
ruby-ts-mode: Move 'self' and 'super' from constants to keywords
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 6 Jan 2023 01:31:41 +0000 (03:31 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 6 Jan 2023 01:32:46 +0000 (03:32 +0200)
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--font-lock-settings):
Move 'self' and 'super' from constants to keywords.

lisp/progmodes/ruby-ts-mode.el

index 6daeb8fdb661e1366af8d0e0a77e1c27927e88a5..e7087e06d85cf5490733c83b9411ea42ea013c35 100644 (file)
@@ -205,15 +205,15 @@ values of OVERRIDE"
 
    :language language
    :feature 'keyword
-   `([,@ruby-ts--keywords] @font-lock-keyword-face)
+   `([,@ruby-ts--keywords] @font-lock-keyword-face
+     (self) @font-lock-keyword-face
+     (super) @font-lock-keyword-face)
 
    :language language
    :feature 'constant
    '((true) @font-lock-doc-markup-face
      (false) @font-lock-doc-markup-face
-     (nil) @font-lock-doc-markup-face
-     (self) @font-lock-doc-markup-face
-     (super) @font-lock-doc-markup-face)
+     (nil) @font-lock-doc-markup-face)
 
    :language language
    :feature 'symbol