Skip to content

Commit 5eb249d

Browse files
committed
Fix some invalid query patterns causing SIGABRT
This fixes #125.
1 parent 6c04c36 commit 5eb249d

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
7+
- Fixed some invalid query patterns [causing SIGABRT](https://github.com/ubolonton/emacs-tree-sitter/issues/125), by upgrading `tree-sitter` crate.
78

89
## [0.15.0] - 2021-03-15
910
- Upgraded `tree-sitter` crate to 0.19.3, which:

Cargo.lock

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ lto = "thin"
99

1010
[profile.release.build-override]
1111
opt-level = 0
12+
13+
[patch.crates-io.tree-sitter]
14+
git = "https://github.com/tree-sitter/tree-sitter"

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ crate-type = ["cdylib"]
1313
[dependencies]
1414
emacs = "0.17"
1515
libloading = "0.7.0"
16-
tree-sitter = "0.19.3"
16+
tree-sitter = "0.19.4"
1717
once_cell = "1.7.2"

lisp/tree-sitter-tests.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ If RESET is non-nil, also do another full parse and check again."
126126
(tsc-lang-node-type language))
127127
node-type))))
128128
(ert-info ("0 should be the special node type \"end\"")
129-
(should (equal 'end (tsc-lang-node-type language 0))))
129+
(should (equal "end" (format "%s" (tsc-lang-node-type language 0)))))
130130
(ert-info ("Node type IDs should be from 0 to type count minus 1")
131131
(should-not (null (tsc-lang-node-type language 1)))
132132
(should-not (null (tsc-lang-node-type language (- type-count 1))))

0 commit comments

Comments
 (0)