Per Mickey Petersen's article How to Get Started with Tree-Sitter, to compile Emacs tree-sitter support for a given language, use:
M-x treesit-install-language-grammar RET LANGUAGE RETwhere LANGUAGE is one of the languages in treesit-language-source-alist below.
While the function treesit-install-language-grammar works well in most cases, two exceptions
are the dockerfile and perl libraries. In