chore(release): 0.3.0
This commit is contained in:
parent
fefc64304e
commit
560a04f84d
|
@ -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.3.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.2.0...v0.3.0) (2020-06-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* upgrade to TOML spec v1.0.0-rc.1 ([#11](https://github.com/ikatyang/tree-sitter-toml/issues/11)) ([7df9880](https://github.com/ikatyang/tree-sitter-toml/commit/7df9880))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.2.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.1.3...v0.2.0) (2019-08-31)
|
## [0.2.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.1.3...v0.2.0) (2019-08-31)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -103,12 +103,13 @@ let tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleCodeChange(editor, changes) {
|
async function handleCodeChange(editor, changes) {
|
||||||
const newText = codeEditor.getValue() + '\n';
|
const newText = codeEditor.getValue();
|
||||||
|
const edits = tree && changes && changes.map(treeEditForEditorChange);
|
||||||
|
|
||||||
const start = performance.now();
|
const start = performance.now();
|
||||||
if (tree && changes) {
|
if (edits) {
|
||||||
for (const change of changes) {
|
for (const edit of edits) {
|
||||||
tree.edit(treeEditForEditorChange(change));
|
tree.edit(edit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const newTree = parser.parse(newText, tree);
|
const newTree = parser.parse(newText, tree);
|
File diff suppressed because one or more lines are too long
Binary file not shown.
BIN
docs/assets/tree-sitter-toml-0.3.0/tree-sitter-toml.wasm
Normal file
BIN
docs/assets/tree-sitter-toml-0.3.0/tree-sitter-toml.wasm
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
1
docs/assets/web-tree-sitter-0.16.7/tree-sitter.js
Normal file
1
docs/assets/web-tree-sitter-0.16.7/tree-sitter.js
Normal file
File diff suppressed because one or more lines are too long
BIN
docs/assets/web-tree-sitter-0.16.7/tree-sitter.wasm
Normal file
BIN
docs/assets/web-tree-sitter-0.16.7/tree-sitter.wasm
Normal file
Binary file not shown.
|
@ -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.15.9/style.css" media="screen" type="text/css">
|
<link rel="stylesheet" href="assets/tree-sitter-playground-0.16.7/style.css" media="screen" type="text/css">
|
||||||
<title>Tree-sitter TOML Playground</title>
|
<title>Tree-sitter TOML Playground</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<h1><a href="https://github.com/ikatyang/tree-sitter-toml">Tree-sitter TOML</a> <span class="version">v0.2.0</span></h1>
|
<h1><a href="https://github.com/ikatyang/tree-sitter-toml">Tree-sitter TOML</a> <span class="version">v0.3.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-toml-0.2.0";</script>
|
<script>LANGUAGE_BASE_URL = "assets/tree-sitter-toml-0.3.0";</script>
|
||||||
<script src="assets/web-tree-sitter-0.15.9/tree-sitter.js"></script>
|
<script src="assets/web-tree-sitter-0.16.7/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.15.9/playground.js"></script>
|
<script src="assets/tree-sitter-playground-0.16.7/playground.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(codeExample => {
|
(codeExample => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tree-sitter-toml",
|
"name": "tree-sitter-toml",
|
||||||
"version": "0.2.0",
|
"version": "0.3.0",
|
||||||
"description": "TOML grammar for tree-sitter",
|
"description": "TOML grammar for tree-sitter",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"parser",
|
"parser",
|
||||||
|
|
Loading…
Reference in a new issue