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

tree-sitter-go

Package Overview
Dependencies
Maintainers
3
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.7.1 to 0.7.2

19

grammar.js

@@ -75,6 +75,13 @@ const

rules: {
source_file: $ => seq(
source_file: $ => repeat(seq(
$._top_level_declaration,
optional(terminator)
)),
_top_level_declaration: $ => choice(
$.package_clause,
repeat(seq($.import_declaration, optional(terminator))),
repeat(seq($._top_level_declaration, optional(terminator)))
$.function_declaration,
$.method_declaration,
$.import_declaration,
$._declaration
),

@@ -112,8 +119,2 @@

_top_level_declaration: $ => choice(
$._declaration,
$.function_declaration,
$.method_declaration
),
_declaration: $ => choice(

@@ -120,0 +121,0 @@ $.const_declaration,

{
"name": "tree-sitter-go",
"version": "0.7.1",
"version": "0.7.2",
"description": "Go grammar for tree-sitter",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is too big to display

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