diff --git a/CHANGELOG.md b/CHANGELOG.md index 7aa760c6..a455f22a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 32d72cb3..e516c4c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,7 +186,7 @@ dependencies = [ [[package]] name = "emacs-tree-sitter" -version = "0.1.0" +version = "0.3.0" dependencies = [ "emacs 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)", "libloading 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 806d038f..12769562 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "emacs-tree-sitter" -version = "0.1.0" +version = "0.3.0" authors = ["Tuấn-Anh Nguyễn "] edition = "2018" publish = false diff --git a/README.md b/README.md index 49ec1b64..4ccc9624 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/tree-sitter.el b/tree-sitter.el index 11fa6655..848c2daf 100644 --- a/tree-sitter.el +++ b/tree-sitter.el @@ -5,7 +5,7 @@ ;; Author: Tuấn-Anh Nguyễn ;; 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