projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
500abc4
)
Add compact_constructor_declaration font-locking to java-ts-mode
author
Theodor Thornhill
<theo@thornhill.no>
Tue, 30 May 2023 13:29:38 +0000
(15:29 +0200)
committer
Theodor Thornhill
<theo@thornhill.no>
Tue, 30 May 2023 13:29:38 +0000
(15:29 +0200)
* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
New pattern.
lisp/progmodes/java-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/java-ts-mode.el
b/lisp/progmodes/java-ts-mode.el
index fca00cdce4fb0f661a5779896d7d98906a0fa681..44dfd74cafd1218673694ce4a0a0af5eee186b70 100644
(file)
--- a/
lisp/progmodes/java-ts-mode.el
+++ b/
lisp/progmodes/java-ts-mode.el
@@
-226,6
+226,9
@@
the available version of Tree-sitter for java."
(constructor_declaration
name: (identifier) @font-lock-type-face)
+ (compact_constructor_declaration
+ name: (identifier) @font-lock-type-face)
+
(field_access
object: (identifier) @font-lock-type-face)