tree-sitter-beancount 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +2 -2
- package/CHANGELOG.md +17 -1
- package/Cargo.lock +59 -0
- package/Cargo.toml +1 -1
- package/README.md +5 -1
- package/bindings/rust/build.rs +0 -2
- package/grammar.js +130 -150
- package/package.json +1 -1
- package/src/grammar.json +257 -591
- package/src/node-types.json +276 -393
- package/src/parser.c +10783 -9798
- package/test/corpus/arithmetic.txt +21 -44
- package/test/corpus/comment.txt +5 -15
- package/test/corpus/currencies.txt +6 -12
- package/test/corpus/entry_types.txt +7 -20
- package/test/corpus/markdown_orgmode.txt +4 -8
- package/test/corpus/metadata.txt +76 -93
- package/test/corpus/multi_line.txt +2 -4
- package/test/corpus/parse_lots.txt +16 -110
- package/test/corpus/parser_links.txt +2 -4
- package/test/corpus/push_pop_meta.txt +3 -5
- package/test/corpus/transaction.txt +24 -46
- package/test/corpus/ugly_bugs.txt +2 -4
|
@@ -56,14 +56,14 @@ jobs:
|
|
|
56
56
|
needs: [release-please]
|
|
57
57
|
if: needs.release-please.outputs.release_created
|
|
58
58
|
steps:
|
|
59
|
+
- name: Checking out sources
|
|
60
|
+
uses: actions/checkout@v1
|
|
59
61
|
- name: Set up Node
|
|
60
62
|
uses: actions/setup-node@v2
|
|
61
63
|
with:
|
|
62
64
|
node-version: '16'
|
|
63
65
|
registry-url: 'https://registry.npmjs.org'
|
|
64
66
|
cache: 'npm'
|
|
65
|
-
- name: Checking out sources
|
|
66
|
-
uses: actions/checkout@v1
|
|
67
67
|
- name: Install dependencies
|
|
68
68
|
run: npm install
|
|
69
69
|
- name: Publish to npm
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.2](https://github.com/polarmutex/tree-sitter-beancount/compare/v2.1.1...v2.1.2) (2023-01-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* cleanup grammar upon feedback ([015e228](https://github.com/polarmutex/tree-sitter-beancount/commit/015e228ca684bbba5ee3e457020cf9c5d1d20afc))
|
|
9
|
+
* npm publish ([4cbd1f0](https://github.com/polarmutex/tree-sitter-beancount/commit/4cbd1f09cd07c1f1fabf867c2cf354f9da53cc4c))
|
|
10
|
+
|
|
11
|
+
## [2.1.1](https://github.com/polarmutex/tree-sitter-beancount/compare/v2.1.0...v2.1.1) (2022-07-02)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* changelog for prior versions ([8197699](https://github.com/polarmutex/tree-sitter-beancount/commit/8197699421b9787a3940b097ced363b9a4ba2f13))
|
|
17
|
+
* npm publish ([a105058](https://github.com/polarmutex/tree-sitter-beancount/commit/a1050584340a2375b6b480ba9e9691aebb9d33d5))
|
|
18
|
+
* rust binding build error ([bfbfa12](https://github.com/polarmutex/tree-sitter-beancount/commit/bfbfa12da0e1c7e598768c0f46f90bbe179d4be5))
|
|
19
|
+
|
|
3
20
|
## [2.1.0](https://github.com/polarmutex/tree-sitter-beancount/compare/v2.0.0...v2.1.0) (2022-06-28)
|
|
4
21
|
|
|
5
22
|
|
|
@@ -12,4 +29,3 @@
|
|
|
12
29
|
### Features
|
|
13
30
|
|
|
14
31
|
* Initial version of grammar
|
|
15
|
-
|
package/Cargo.lock
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "0.7.20"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "cc"
|
|
16
|
+
version = "1.0.78"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "a20104e2335ce8a659d6dd92a51a767a0c062599c73b343fd152cb401e828c3d"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "memchr"
|
|
22
|
+
version = "2.5.0"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "regex"
|
|
28
|
+
version = "1.7.1"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733"
|
|
31
|
+
dependencies = [
|
|
32
|
+
"aho-corasick",
|
|
33
|
+
"memchr",
|
|
34
|
+
"regex-syntax",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[[package]]
|
|
38
|
+
name = "regex-syntax"
|
|
39
|
+
version = "0.6.28"
|
|
40
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
41
|
+
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
|
|
42
|
+
|
|
43
|
+
[[package]]
|
|
44
|
+
name = "tree-sitter"
|
|
45
|
+
version = "0.20.9"
|
|
46
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
47
|
+
checksum = "d4423c784fe11398ca91e505cdc71356b07b1a924fc8735cfab5333afe3e18bc"
|
|
48
|
+
dependencies = [
|
|
49
|
+
"cc",
|
|
50
|
+
"regex",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[[package]]
|
|
54
|
+
name = "tree-sitter-beancount"
|
|
55
|
+
version = "2.1.1"
|
|
56
|
+
dependencies = [
|
|
57
|
+
"cc",
|
|
58
|
+
"tree-sitter",
|
|
59
|
+
]
|
package/Cargo.toml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "tree-sitter-beancount"
|
|
3
3
|
description = "beancount grammar for the tree-sitter parsing library"
|
|
4
|
-
version = "2.1.
|
|
4
|
+
version = "2.1.2" # {x-release-please-version}
|
|
5
5
|
keywords = ["incremental", "parsing", "beancount", "tree-sitter"]
|
|
6
6
|
categories = ["parsing", "text-editors"]
|
|
7
7
|
repository = "https://github.com/polarmutex/tree-sitter-beancount"
|
package/README.md
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
# tree-sitter-beancount
|
|
2
|
-
a tree-sitter parser for the beancount syntax
|
|
2
|
+
a [tree-sitter](https://github.com/tree-sitter/tree-sitter) parser for the [beancount](https://github.com/beancount/beancount) syntax
|
|
3
|
+
|
|
4
|
+
## Reference
|
|
5
|
+
[Beancount syntax](https://beancount.github.io/docs/beancount_language_syntax.html)
|
|
6
|
+
[tree-sitter](https://tree-sitter.github.io)
|
package/bindings/rust/build.rs
CHANGED
|
@@ -25,7 +25,6 @@ fn main() {
|
|
|
25
25
|
// If your language uses an external scanner written in C++,
|
|
26
26
|
// then include this block of code:
|
|
27
27
|
|
|
28
|
-
/*
|
|
29
28
|
let mut cpp_config = cc::Build::new();
|
|
30
29
|
cpp_config.cpp(true);
|
|
31
30
|
cpp_config.include(&src_dir);
|
|
@@ -36,5 +35,4 @@ fn main() {
|
|
|
36
35
|
cpp_config.file(&scanner_path);
|
|
37
36
|
cpp_config.compile("scanner");
|
|
38
37
|
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
|
|
39
|
-
*/
|
|
40
38
|
}
|