chore(release): 0.4.0

This commit is contained in:
Ika 2021-03-14 18:37:55 +08:00
parent 32689b654d
commit 2e772bfeec
13 changed files with 17 additions and 8 deletions

View file

@ -2,6 +2,15 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
# [0.4.0](https://github.com/ikatyang/tree-sitter-yaml/compare/v0.3.1...v0.4.0) (2021-03-14)
### Features
* upgrade to tree-sitter@0.19.3 ([#19](https://github.com/ikatyang/tree-sitter-yaml/issues/19)) ([32689b6](https://github.com/ikatyang/tree-sitter-yaml/commit/32689b6))
## [0.3.1](https://github.com/ikatyang/tree-sitter-yaml/compare/v0.3.0...v0.3.1) (2021-01-01) ## [0.3.1](https://github.com/ikatyang/tree-sitter-yaml/compare/v0.3.0...v0.3.1) (2021-01-01)

View file

@ -277,7 +277,7 @@ let tree;
const startPosition = queryEditor.posFromIndex(error.index); const startPosition = queryEditor.posFromIndex(error.index);
const endPosition = { const endPosition = {
line: startPosition.line, line: startPosition.line,
ch: startPosition.ch + (error.length || 1) ch: startPosition.ch + (error.length || Infinity)
}; };
if (error.index === queryText.length) { if (error.index === queryText.length) {

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -4,7 +4,7 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="assets/tree-sitter-playground-0.16.7/style.css" media="screen" type="text/css"> <link rel="stylesheet" href="assets/tree-sitter-playground-0.19.3/style.css" media="screen" type="text/css">
<title>Tree-sitter YAML Playground</title> <title>Tree-sitter YAML Playground</title>
</head> </head>
@ -24,7 +24,7 @@
} }
</style> </style>
<h1><a href="https://github.com/ikatyang/tree-sitter-yaml">Tree-sitter YAML</a> <span class="version">v0.3.1</span></h1> <h1><a href="https://github.com/ikatyang/tree-sitter-yaml">Tree-sitter YAML</a> <span class="version">v0.4.0</span></h1>
<div id="playground-container" style="visibility: hidden;"> <div id="playground-container" style="visibility: hidden;">
@ -61,11 +61,11 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.45.0/codemirror.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.45.0/codemirror.min.js"></script>
<script>LANGUAGE_BASE_URL = "assets/tree-sitter-yaml-0.3.1";</script> <script>LANGUAGE_BASE_URL = "assets/tree-sitter-yaml-0.4.0";</script>
<script src="assets/web-tree-sitter-0.16.7/tree-sitter.js"></script> <script src="assets/web-tree-sitter-0.19.3/tree-sitter.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.min.js"></script>
<script src="assets/tree-sitter-playground-0.16.7/playground.js"></script> <script src="assets/tree-sitter-playground-0.19.3/playground.js"></script>
<script> <script>
((codeExample, queryExample) => { ((codeExample, queryExample) => {

View file

@ -1,6 +1,6 @@
{ {
"name": "tree-sitter-yaml", "name": "tree-sitter-yaml",
"version": "0.3.1", "version": "0.4.0",
"description": "YAML grammar for tree-sitter", "description": "YAML grammar for tree-sitter",
"keywords": [ "keywords": [
"parser", "parser",