tree-sitter-go
Advanced tools
Comparing version 0.21.0 to 0.21.2
@@ -189,7 +189,3 @@ /** | ||
$.var_spec, | ||
seq( | ||
'(', | ||
repeat(seq($.var_spec, terminator)), | ||
')', | ||
), | ||
$.var_spec_list, | ||
), | ||
@@ -199,3 +195,3 @@ ), | ||
var_spec: $ => seq( | ||
field('name', commaSep1($.identifier)), | ||
commaSep1(field('name', $.identifier)), | ||
choice( | ||
@@ -210,2 +206,8 @@ seq( | ||
var_spec_list: $ => seq( | ||
'(', | ||
repeat(seq($.var_spec, terminator)), | ||
')', | ||
), | ||
function_declaration: $ => prec.right(1, seq( | ||
@@ -700,5 +702,7 @@ 'func', | ||
'(', | ||
$._type, | ||
repeat(seq(',', $._expression)), | ||
optional(','), | ||
optional(seq( | ||
$._type, | ||
repeat(seq(',', $._expression)), | ||
optional(','), | ||
)), | ||
')', | ||
@@ -705,0 +709,0 @@ ), |
{ | ||
"name": "tree-sitter-go", | ||
"version": "0.21.0", | ||
"version": "0.21.2", | ||
"description": "Go grammar for tree-sitter", | ||
@@ -28,4 +28,4 @@ "repository": "github:tree-sitter/tree-sitter-go", | ||
"dependencies": { | ||
"node-addon-api": "^8.0.0", | ||
"node-gyp-build": "^4.8.0" | ||
"node-addon-api": "^8.1.0", | ||
"node-gyp-build": "^4.8.1" | ||
}, | ||
@@ -43,4 +43,4 @@ "peerDependencies": { | ||
"eslint-config-google": "^0.14.0", | ||
"tree-sitter-cli": "^0.22.2", | ||
"prebuildify": "^6.0.0" | ||
"tree-sitter-cli": "^0.22.6", | ||
"prebuildify": "^6.0.1" | ||
}, | ||
@@ -47,0 +47,0 @@ "scripts": { |
@@ -2456,4 +2456,4 @@ [ | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"multiple": false, | ||
"required": true, | ||
"types": [ | ||
@@ -2463,2 +2463,6 @@ { | ||
"named": true | ||
}, | ||
{ | ||
"type": "var_spec_list", | ||
"named": true | ||
} | ||
@@ -2477,6 +2481,2 @@ ] | ||
{ | ||
"type": ",", | ||
"named": false | ||
}, | ||
{ | ||
"type": "identifier", | ||
@@ -2510,2 +2510,17 @@ "named": true | ||
{ | ||
"type": "var_spec_list", | ||
"named": true, | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "var_spec", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "variadic_argument", | ||
@@ -2512,0 +2527,0 @@ "named": true, |
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 not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6840
10771
2875546
Updatednode-addon-api@^8.1.0
Updatednode-gyp-build@^4.8.1