Skip to content

Correct treesit-mode requirement to Emacs 29.1#202

Open
charjr wants to merge 1 commit into
godotengine:masterfrom
charjr:update-ts-mode-version
Open

Correct treesit-mode requirement to Emacs 29.1#202
charjr wants to merge 1 commit into
godotengine:masterfrom
charjr:update-ts-mode-version

Conversation

@charjr
Copy link
Copy Markdown
Contributor

@charjr charjr commented May 19, 2026

gdscript-ts-mode uses font-lock-function-call-face which was only introduced in version 29.1.

;; font-lock.el

(defface font-lock-function-call-face
  '((t :inherit font-lock-function-name-face))
  "Font Lock mode face used to highlight function calls."
  :group 'font-lock-faces
  :version "29.1")

'((call (identifier) @font-lock-builtin-face (:match "preload" @font-lock-builtin-face))
(call (identifier) @font-lock-function-call-face)
(attribute_call (identifier) @font-lock-function-call-face))

It won't highlight function calls correctly on lower versions. Also sincetreesit is a 29.1 feature, the mode is basically useless on lower versions anyway.

`gdscript-ts-mode` makes use of `font-lock-function-call-face` which
was only introduced in version 29.1.

As such it would not highlight function calls correctly on lower
versions. (and presumably throw a warning for a void symbol)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant