mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
This commit is contained in:
commit
16855c89dd
1 changed files with 25 additions and 20 deletions
|
@ -117,11 +117,16 @@ RUN ./autogen.sh autoconf
|
|||
RUN ./configure --with-tree-sitter
|
||||
RUN make -j `nproc` bootstrap
|
||||
|
||||
# Install language grammars.
|
||||
# Install language grammars. The ABI versions of libtree-sitter0 and
|
||||
# the respective grammars must match. The grammar ABI version is determined by
|
||||
# grep LANGUAGE_VERSION /path/to/grammar-repo/src/parser.c
|
||||
RUN mkdir -p /root/.emacs.d/tree-sitter
|
||||
RUN git config --global http.sslverify "false"
|
||||
# See https://github.com/emacs-tree-sitter/tree-sitter-langs/tree/master/repos
|
||||
RUN src/emacs -Q --batch \
|
||||
--eval \
|
||||
'(message "ABI min version %d max version %d" \
|
||||
(treesit-library-abi-version t) (treesit-library-abi-version))' \
|
||||
--eval '(setq \
|
||||
treesit-extra-load-path (list "/root/.emacs.d/tree-sitter") \
|
||||
treesit-language-source-alist \
|
||||
|
@ -141,7 +146,7 @@ RUN src/emacs -Q --batch \
|
|||
(lua "https://github.com/tree-sitter-grammars/tree-sitter-lua") \
|
||||
(python "https://github.com/tree-sitter/tree-sitter-python") \
|
||||
(ruby "https://github.com/tree-sitter/tree-sitter-ruby") \
|
||||
(rust "https://github.com/tree-sitter/tree-sitter-rust") \
|
||||
(rust "https://github.com/tree-sitter/tree-sitter-rust" "v0.23.3") \
|
||||
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src") \
|
||||
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src"))))' \
|
||||
--eval '(dolist (lang (mapcar (quote car) treesit-language-source-alist)) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue