chore(release): 0.4.0
This commit is contained in:
parent
64da30ce70
commit
c584b42dc7
|
@ -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-toml/compare/v0.3.0...v0.4.0) (2020-07-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add queries for highlighting ([#13](https://github.com/ikatyang/tree-sitter-toml/issues/13)) ([64da30c](https://github.com/ikatyang/tree-sitter-toml/commit/64da30c))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [0.3.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.2.0...v0.3.0) (2020-06-28)
|
# [0.3.0](https://github.com/ikatyang/tree-sitter-toml/compare/v0.2.0...v0.3.0) (2020-06-28)
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -24,7 +24,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<h1><a href="https://github.com/ikatyang/tree-sitter-toml">Tree-sitter TOML</a> <span class="version">v0.3.0</span></h1>
|
<h1><a href="https://github.com/ikatyang/tree-sitter-toml">Tree-sitter TOML</a> <span class="version">v0.4.0</span></h1>
|
||||||
|
|
||||||
<div id="playground-container" style="visibility: hidden;">
|
<div id="playground-container" style="visibility: hidden;">
|
||||||
|
|
||||||
|
@ -61,18 +61,24 @@
|
||||||
|
|
||||||
<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.3.0";</script>
|
<script>LANGUAGE_BASE_URL = "assets/tree-sitter-toml-0.4.0";</script>
|
||||||
<script src="assets/web-tree-sitter-0.16.7/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.16.7/playground.js"></script>
|
<script src="assets/tree-sitter-playground-0.16.7/playground.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(codeExample => {
|
((codeExample, queryExample) => {
|
||||||
const handle = setInterval(() => {
|
const handle = setInterval(() => {
|
||||||
const $codeEditor = document.querySelector('.CodeMirror');
|
const $codeEditor = document.querySelector('.CodeMirror');
|
||||||
if ($codeEditor) {
|
const $queryEditor = document.querySelector('#query-container .CodeMirror');
|
||||||
|
const $queryCheckbox = document.querySelector('#query-checkbox');
|
||||||
|
if ($codeEditor && $queryEditor) {
|
||||||
$codeEditor.CodeMirror.setValue(codeExample);
|
$codeEditor.CodeMirror.setValue(codeExample);
|
||||||
|
if (queryExample) {
|
||||||
|
$queryEditor.CodeMirror.setValue(queryExample);
|
||||||
|
if (!$queryCheckbox.checked) $queryCheckbox.click();
|
||||||
|
}
|
||||||
clearInterval(handle);
|
clearInterval(handle);
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
|
@ -109,6 +115,39 @@ hosts = [
|
||||||
"alpha",
|
"alpha",
|
||||||
"omega"
|
"omega"
|
||||||
]
|
]
|
||||||
|
`, `; Properties
|
||||||
|
;-----------
|
||||||
|
|
||||||
|
(bare_key) @property
|
||||||
|
(quoted_key) @string
|
||||||
|
|
||||||
|
; Literals
|
||||||
|
;---------
|
||||||
|
|
||||||
|
(boolean) @constant.builtin
|
||||||
|
(comment) @comment
|
||||||
|
(string) @string
|
||||||
|
(integer) @number
|
||||||
|
(float) @number
|
||||||
|
(offset_date_time) @string.special
|
||||||
|
(local_date_time) @string.special
|
||||||
|
(local_date) @string.special
|
||||||
|
(local_time) @string.special
|
||||||
|
|
||||||
|
; Punctuation
|
||||||
|
;------------
|
||||||
|
|
||||||
|
"." @punctuation.delimiter
|
||||||
|
"," @punctuation.delimiter
|
||||||
|
|
||||||
|
"=" @operator
|
||||||
|
|
||||||
|
"[" @punctuation.bracket
|
||||||
|
"]" @punctuation.bracket
|
||||||
|
"[[" @punctuation.bracket
|
||||||
|
"]]" @punctuation.bracket
|
||||||
|
"{" @punctuation.bracket
|
||||||
|
"}" @punctuation.bracket
|
||||||
`);
|
`);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tree-sitter-toml",
|
"name": "tree-sitter-toml",
|
||||||
"version": "0.3.0",
|
"version": "0.4.0",
|
||||||
"description": "TOML grammar for tree-sitter",
|
"description": "TOML grammar for tree-sitter",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"parser",
|
"parser",
|
||||||
|
|
Loading…
Reference in a new issue