diff options
| author | Vincenzo Pupillo | 2025-09-15 21:20:52 +0200 |
|---|---|---|
| committer | Michael Albinus | 2025-09-15 21:20:52 +0200 |
| commit | 3438e15e31d88acef13751ef5e56b85d79ab78d9 (patch) | |
| tree | ab6df021e2ca8af8da50494c2866035dbc11fa6d | |
| parent | d6a7b0cd33c6300aeba184d1e7b5fdec41704058 (diff) | |
| download | emacs-3438e15e31d88acef13751ef5e56b85d79ab78d9.tar.gz emacs-3438e15e31d88acef13751ef5e56b85d79ab78d9.zip | |
Fix tree-sitter ABI version incompatibility in php-ts-mode
* lisp/progmodes/php-ts-mode.el (php-ts-mode--language-source-alist):
For ABI version < 15 add the recommended version "v0.23.12" (full hash
"f7cf7348737d8cff1b13407a0bfedce02ee7b046").
| -rw-r--r-- | lisp/progmodes/php-ts-mode.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/php-ts-mode.el b/lisp/progmodes/php-ts-mode.el index 3c9cb2ba8d0..65a177e6cc8 100644 --- a/lisp/progmodes/php-ts-mode.el +++ b/lisp/progmodes/php-ts-mode.el | |||
| @@ -81,7 +81,10 @@ | |||
| 81 | ;;; Install treesitter language parsers | 81 | ;;; Install treesitter language parsers |
| 82 | (defvar php-ts-mode--language-source-alist | 82 | (defvar php-ts-mode--language-source-alist |
| 83 | '((php "https://github.com/tree-sitter/tree-sitter-php" | 83 | '((php "https://github.com/tree-sitter/tree-sitter-php" |
| 84 | :commit "5b5627faaa290d89eb3d01b9bf47c3bb9e797dea" | 84 | :commit ,(if (and (treesit-available-p) |
| 85 | (< (treesit-library-abi-version) 15)) | ||
| 86 | "f7cf7348737d8cff1b13407a0bfedce02ee7b046" | ||
| 87 | "5b5627faaa290d89eb3d01b9bf47c3bb9e797dea") | ||
| 85 | :source-dir "php/src") | 88 | :source-dir "php/src") |
| 86 | (phpdoc "https://github.com/claytonrcarter/tree-sitter-phpdoc" | 89 | (phpdoc "https://github.com/claytonrcarter/tree-sitter-phpdoc" |
| 87 | :commit "03bb10330704b0b371b044e937d5cc7cd40b4999")) | 90 | :commit "03bb10330704b0b371b044e937d5cc7cd40b4999")) |