From: Theodor Thornhill Date: Thu, 15 Dec 2022 10:48:32 +0000 (+0100) Subject: Add "this" keyword to java-ts-mode (bug#60086) X-Git-Tag: emacs-29.0.90~1145 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cac070b23e4;p=emacs.git Add "this" keyword to java-ts-mode (bug#60086) * lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings): Add the node to the keyword feature. --- diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index ac591a08599..559a4efef25 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el @@ -144,9 +144,10 @@ :language 'java :override t :feature 'keyword - `([,@java-ts-mode--keywords] @font-lock-keyword-face - (labeled_statement - (identifier) @font-lock-keyword-face)) + `([,@java-ts-mode--keywords + (this)] @font-lock-keyword-face + (labeled_statement + (identifier) @font-lock-keyword-face)) :language 'java :override t :feature 'operator