tree-sitter-solidity
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -308,3 +308,3 @@ // Precedence is used by the parser to determine which rule to apply when there are two rules that can be applied. | ||
// -- [ Statements ] -- | ||
_statement: $ => choice( | ||
statement: $ => choice( | ||
$.block_statement, | ||
@@ -501,3 +501,3 @@ $.expression_statement, | ||
'{', | ||
repeat($._statement), | ||
repeat($.statement), | ||
"}" | ||
@@ -538,3 +538,3 @@ ), | ||
')', | ||
field("body", $._statement), | ||
field("body", $.statement), | ||
field("else", | ||
@@ -544,3 +544,3 @@ optional( | ||
'else', | ||
field("body", $._statement) | ||
field("body", $.statement) | ||
)) | ||
@@ -555,10 +555,10 @@ ), | ||
field("update", optional($.expression)), | ||
')', field("body", $._statement), | ||
')', field("body", $.statement), | ||
), | ||
while_statement: $ => seq( | ||
'while', '(',field("condition", $.expression), ')', field("body", $._statement), | ||
'while', '(',field("condition", $.expression), ')', field("body", $.statement), | ||
), | ||
do_while_statement: $ => seq( | ||
'do', field("body", $._statement), 'while', '(', field("condition", $.expression), ')', $._semicolon, | ||
'do', field("body", $.statement), 'while', '(', field("condition", $.expression), ')', $._semicolon, | ||
), | ||
@@ -730,3 +730,3 @@ continue_statement: $ => seq('continue', $._semicolon), | ||
"{", | ||
repeat($._statement), | ||
repeat($.statement), | ||
"}", | ||
@@ -733,0 +733,0 @@ ), |
{ | ||
"name": "tree-sitter-solidity", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "A tree sitter parser for Solidity", | ||
@@ -5,0 +5,0 @@ "main": "bindings/node", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
4548048
12461