Variable: treesit-language-remap-alist

treesit-language-remap-alist is a buffer-local variable defined in treesit.c.

Documentation

An alist remapping language symbols.

The value should be an alist of (LANGUAGE-A . LANGUAGE-B). When such pair exists in the alist, creating a parser for LANGUAGE-A actually creates a parser for LANGUAGE-B. Basically, anything that requires or applies to LANGUAGE-A will be redirected to LANGUAGE-B instead.

View in manual

Probably introduced at or before Emacs version 31.1.

Source Code

// Defined in /usr/src/emacs/src/treesit.c
  DEFVAR_LISP ("treesit-language-remap-alist",
	       Vtreesit_language_remap_alist,
	       doc:
	       /* An alist remapping language symbols.

The value should be an alist of (LANGUAGE-A . LANGUAGE-B).  When such
pair exists in the alist, creating a parser for LANGUAGE-A actually
creates a parser for LANGUAGE-B.  Basically, anything that requires or
applies to LANGUAGE-A will be redirected to LANGUAGE-B instead.  */);