Skip to content

Commit 0c00cfa

Browse files
authored
feat(tolk): support assembly get methods (#147)
Fixes #146
1 parent 5b1ff79 commit 0c00cfa

File tree

8 files changed

+4258
-3950
lines changed

8 files changed

+4258
-3950
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@
558558
"@ton/core": "0.60.1",
559559
"@ton/crypto": "^3.3.0",
560560
"glob": "^11.0.1",
561-
"tolkfmt-test-dev": "0.0.18",
561+
"tolkfmt-test-dev": "0.0.20",
562562
"ton-assembly": "0.2.0",
563563
"vscode-languageclient": "^8.0.2",
564564
"vscode-languageserver": "^8.0.2",

server/src/languages/tolk/tree-sitter-tolk/grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const TOLK_GRAMMAR = {
175175
field("name", $.identifier),
176176
optional(field("parameters", $.parameter_list)),
177177
optional(seq(":", field("return_type", optional($._type_hint)))),
178-
optional(field("body", $.block_statement)),
178+
optional(field("body", $._function_body)),
179179
),
180180

181181
annotation_list: $ => repeat1($.annotation),

server/src/languages/tolk/tree-sitter-tolk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
],
1717
"scripts": {
1818
"test": "tree-sitter test",
19+
"test:update": "tree-sitter test -u",
1920
"play": "yarn run grammar:wasm && tree-sitter playground",
2021
"grammar:wasm": "tree-sitter generate && tree-sitter build --wasm"
2122
},

server/src/languages/tolk/tree-sitter-tolk/src/grammar.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/src/languages/tolk/tree-sitter-tolk/src/node-types.json

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)