tree-sitter-javascript
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -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))))) |
@@ -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 |
{ | ||
"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
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
4655597
13059