New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tree-sitter-gitattributes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-gitattributes - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

17

grammar.js

@@ -64,7 +64,10 @@ /**

_line: $ => choice(
seq(optional($._space), $.comment, $._eol),
seq(optional($._space), $._attr_list, $._eol),
seq(optional($._space), $.macro_def, $._eol),
seq(optional($._space), $._eol)
_line: $ => seq(
optional($._space),
optional(choice(
$.comment,
$._attr_list,
$.macro_def
)),
choice($._eol, $._eof)
),

@@ -209,6 +212,8 @@

_space: _ => prec(-1, /[ \t]+/),
_eol: _ => /\r?\n/,
_space: _ => prec(-1, /[ \t]+/)
_eof: _ => '\0'
}
});
{
"name": "tree-sitter-gitattributes",
"version": "0.1.5",
"version": "0.1.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "gitattributes grammar for tree-sitter",

@@ -13,26 +13,13 @@ {

"_line": {
"type": "CHOICE",
"type": "SEQ",
"members": [
{
"type": "SEQ",
"type": "CHOICE",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_space"
},
{
"type": "BLANK"
}
]
},
{
"type": "SYMBOL",
"name": "comment"
"name": "_space"
},
{
"type": "SYMBOL",
"name": "_eol"
"type": "BLANK"
}

@@ -42,3 +29,3 @@ ]

{
"type": "SEQ",
"type": "CHOICE",
"members": [

@@ -50,31 +37,11 @@ {

"type": "SYMBOL",
"name": "_space"
"name": "comment"
},
{
"type": "BLANK"
}
]
},
{
"type": "SYMBOL",
"name": "_attr_list"
},
{
"type": "SYMBOL",
"name": "_eol"
}
]
},
{
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_space"
"name": "_attr_list"
},
{
"type": "BLANK"
"type": "SYMBOL",
"name": "macro_def"
}

@@ -84,8 +51,3 @@ ]

{
"type": "SYMBOL",
"name": "macro_def"
},
{
"type": "SYMBOL",
"name": "_eol"
"type": "BLANK"
}

@@ -95,19 +57,11 @@ ]

{
"type": "SEQ",
"type": "CHOICE",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "SYMBOL",
"name": "_space"
},
{
"type": "BLANK"
}
]
"type": "SYMBOL",
"name": "_eol"
},
{
"type": "SYMBOL",
"name": "_eol"
"name": "_eof"
}

@@ -1014,2 +968,6 @@ ]

}
},
"_eof": {
"type": "STRING",
"value": "\u0000"
}

@@ -1016,0 +974,0 @@ },

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