Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ubolonton committed Feb 20, 2020
1 parent 288a3a5 commit 98b8939
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]
- Changed all APIs to use Emacs's 1-based byte positions instead of 0-based byte offsets.
- Changed all APIs to use Emacs's 1-based line numbers instead of 0-based row numbering.
- Changed representation of tree-sitter point from 2-element vector to cons cell.
- Changed representation of query match/capture from 2-element vector to cons cell.

## [0.3.0] - 2020-02-21
- Used Emacs's 1-based byte positions and line numbers instead of 0-based byte offsets and row coordinates.
- Used cons cells instead of 2-element vectors to represent tree-sitter points and query matches/captures.

## [0.2.0] - 2020-02-02
- Upgraded `tree-sitter` to 0.6.0.
Expand All @@ -17,5 +17,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.1.0] - 2020-01-27
Initial release

[Unreleased]: https://github.com/ubolonton/emacs-tree-sitte/compare/0.2.0...HEAD
[Unreleased]: https://github.com/ubolonton/emacs-tree-sitte/compare/0.3.0...HEAD
[0.3.0]: https://github.com/ubolonton/emacs-tree-sitte/compare/0.2.0...0.3.0
[0.2.0]: https://github.com/ubolonton/emacs-tree-sitte/compare/0.1.0...0.2.0
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "emacs-tree-sitter"
version = "0.1.0"
version = "0.3.0"
authors = ["Tuấn-Anh Nguyễn <[email protected]>"]
edition = "2018"
publish = false
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ If you want to hack on `emacs-tree-sitter` itself, see the section [Setup for De
These types are understood only by this package. They are not recognized by `type-of`, but have corresponding type-checking predicates, which are useful for debugging: `ts-language-p`, `ts-tree-p`, `ts-node-p`...
For consistency with Emacs's conventions, this binding has some differences compared to the tree-sitter's C/Rust APIs:
- It uses 1-based byte position, not 0-based byte offset.
- It uses 1-based line number, not 0-based row.
- It uses 1-based byte positions, not 0-based byte offsets.
- It uses 1-based line numbers, not 0-based row coordinates.
### Functions
Expand Down
2 changes: 1 addition & 1 deletion tree-sitter.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Tuấn-Anh Nguyễn <[email protected]>
;; Keywords: languages tools parsers dynamic-modules tree-sitter
;; Homepage: https://github.com/ubolonton/emacs-tree-sitter
;; Version: 0.2.0
;; Version: 0.3.0
;; Package-Requires: ((emacs "25.1"))
;; License: MIT

Expand Down

0 comments on commit 98b8939

Please sign in to comment.