-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
;; Author: Tuấn-Anh Nguyễn <[email protected]> | ||
;; Keywords: languages tools parsers tree-sitter | ||
;; Homepage: https://github.com/ubolonton/tree-sitter-langs | ||
;; Version: 0.9.2 | ||
;; Package-Requires: ((emacs "25.1") (tree-sitter "0.12.2")) | ||
;; Version: 0.10.0 | ||
;; Package-Requires: ((emacs "25.1") (tree-sitter "0.15.0")) | ||
;; SPDX-License-Identifier: MIT | ||
|
||
;;; Commentary: | ||
|
@@ -40,6 +40,15 @@ | |
(eval-when-compile | ||
(require 'pcase)) | ||
|
||
;; Not everyone uses a package manager that properly checks dependencies. We check it ourselves, and | ||
;; ask users to upgrade `tree-sitter' if necessary. Otherwise, they would get `tsc-lang-abi-too-new' | ||
;; errors, without an actionable message. | ||
(let ((min-version "0.15.0")) | ||
(when (version< tsc-dyn--version min-version) | ||
(display-warning 'tree-sitter-langs | ||
(format "Please upgrade `tree-sitter'. This bundle requires version %s or later." min-version) | ||
:emergency))) | ||
|
||
(defgroup tree-sitter-langs nil | ||
"Grammar bundle for `tree-sitter'." | ||
:group 'tree-sitter) | ||
|