Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tree-sitter-go

Package Overview
Dependencies
Maintainers
0
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-go - npm Package Compare versions

Comparing version 0.21.0 to 0.21.2

22

grammar.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc