mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Merge from origin/emacs-29
4b6f2a7028* lisp/progmodes/xref.el: Bump the version.24c8b146bb* lisp/progmodes/xref.el (xref--xref-buffer-mode): Split ...46f9e53c3dFix import of keys in buffer created by epa-search-keys36ade0704eFix connection-local variables settingse759905d2e; Minor copyedits in EGLOT-NEWSba22a2c346Bump Eglot version to 1.1254e123a505Update Eglot's manual about eglot-workspace-configuration812597f864; * lisp/novice.el (disabled-command-function): Add note ...4a603c9849Amend last Eglot commit (bug#62065)b916ec88b2Make eglot-ensure's post-command-hook run a bit later (bu...1c05175c21Fix display of disabled-command help text3ce37db988Remove mention of old dotted-list reader quirk from manual42335c2c1fFix value history shown for 'gc-cons-percentage'fffbce2934TRework fix for bug#621068bc12a2736; * etc/NEWS: Fix last change.2ac068d294; Remove 'ns-popup-font-panel' from documentation5bc32d008fAdd missing indentation rule for rust-ts-mode (Bug#62109)0404924930; One more improvement to ELisp "internals" appendix.c857775ca6Fix bug#621060fedbfa6a9; Minor improvement of documentation of GC thresholdsb0b24ad2fcAdd missing rust-ts-mode highlight query for scoped_type_...c0cf69f7a1Make "case" keyword a dedenter in Pythondb178517ce; * lisp/arc-mode.el (w32-get-console-codepage): Declare.157a91b54bFix decoding non-ASCII file names in zip archives on MS-W...4803f97204Fix copying binary files from zip archives679f528b95Skip ruby-ts-syntax-propertize-symbol unless treesitter i...081cc7aa8e; * doc/misc/eglot.texi (Project-specific configuration):...1de513a29fFix enums and unions appearing as structs in c-ts-base-mo...ecdfd584a5ruby-ts-mode: Fine-tune s-p-f on symbols (bug#62086)29228e24f2python-info-dedenter-opening-block-positions: Fix to supp...01b65d442aAutoload Eglot helper funtion eglot--debbugs-or-github-bu...50a3559c5aAdd chapter on advanced server configuration to Eglot manual2e7460c231; * lisp/progmodes/java-ts-mode.el (treesit-query-capture...255eeee0e0java-ts-mode: detect if text_block is supported.6fe9075ff3Revert workaround introduced in Bug#56271f175141aeaFix searching for end of string in python-nav-end-of-stat... # Conflicts: # etc/NEWS
This commit is contained in:
commit
a55aaf9eaf
22 changed files with 1049 additions and 188 deletions
|
|
@ -36,6 +36,8 @@
|
|||
(declare-function treesit-node-start "treesit.c")
|
||||
(declare-function treesit-node-type "treesit.c")
|
||||
(declare-function treesit-node-child-by-field-name "treesit.c")
|
||||
(declare-function treesit-node-child-by-field-name "treesit.c")
|
||||
(declare-function treesit-query-capture "treesit.c")
|
||||
|
||||
(defcustom java-ts-mode-indent-offset 4
|
||||
"Number of spaces for each indentation step in `java-ts-mode'."
|
||||
|
|
@ -145,6 +147,16 @@
|
|||
"|=" "~" ">>" ">>>" "<<" "::" "?" "&=")
|
||||
"Java operators for tree-sitter font-locking.")
|
||||
|
||||
(defun java-ts-mode--string-highlight-helper ()
|
||||
"Returns, for strings, a query based on what is supported by
|
||||
the available version of Tree-sitter for java."
|
||||
(condition-case nil
|
||||
(progn (treesit-query-capture 'java '((text_block) @font-lock-string-face))
|
||||
`((string_literal) @font-lock-string-face
|
||||
(text_block) @font-lock-string-face))
|
||||
(error
|
||||
`((string_literal) @font-lock-string-face))))
|
||||
|
||||
(defvar java-ts-mode--font-lock-settings
|
||||
(treesit-font-lock-rules
|
||||
:language 'java
|
||||
|
|
@ -182,8 +194,7 @@
|
|||
:language 'java
|
||||
:override t
|
||||
:feature 'string
|
||||
`((string_literal) @font-lock-string-face
|
||||
(text_block) @font-lock-string-face)
|
||||
(java-ts-mode--string-highlight-helper)
|
||||
:language 'java
|
||||
:override t
|
||||
:feature 'literal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue