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

tree-sitter-javascript

Package Overview
Dependencies
Maintainers
5
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-javascript - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

20

corpus/statements.txt

@@ -589,1 +589,21 @@ ============================================

(program (with_statement (parenthesized_expression (identifier)) (statement_block (expression_statement (identifier)))))
==========================================
Hash bang lines
==========================================
#!/usr/bin/env node
console.log("HI")
---
(program
(hash_bang_line)
(expression_statement
(call_expression
(member_expression
(identifier)
(property_identifier))
(arguments
(string)))))

7

grammar.js

@@ -55,4 +55,9 @@ const PREC = {

rules: {
program: $ => repeat($._statement),
program: $ => seq(
optional($.hash_bang_line),
repeat($._statement)
),
hash_bang_line: $ => /#!.*/,
//

@@ -59,0 +64,0 @@ // Export declarations

2

package.json
{
"name": "tree-sitter-javascript",
"version": "0.5.0",
"version": "0.5.1",
"description": "Javascript grammar for node-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