Skip to content

Commit

Permalink
Release 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed Mar 14, 2021
1 parent dc74c2b commit 5d362ce
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 0.10.0 - 2021-03-14
- Updated most language grammars to the latest version.
- Upgraded `tree-sitter` CLI version to 0.19.3.

## 0.9.2 - 2021-02-12
- Added `janet-simple` grammars.
- Added minor updates to some other grammars.
Expand Down
2 changes: 1 addition & 1 deletion tree-sitter-langs-build.el
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ latest commit."
;; ---------------------------------------------------------------------------
;;; Building language grammars.

(defconst tree-sitter-langs--bundle-version "0.9.2"
(defconst tree-sitter-langs--bundle-version "0.10.0"
"Version of the grammar bundle.
This should be bumped whenever a language submodule is updated, which should be
infrequent (grammar-only changes). It is different from the version of
Expand Down
13 changes: 11 additions & 2 deletions tree-sitter-langs.el
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5d362ce

Please sign in to comment.