@konomanoasa/tree-sitter-gitattributes 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "konomanoasa-tree-sitter-gitattributes"
3
- version = "0.4.0"
3
+ version = "0.4.1"
4
4
  edition = "2024"
5
5
  description = "Tree-sitter grammar for gitattributes."
6
6
  readme = "README.md"
@@ -30,7 +30,7 @@ path = "test/bindings.test.rs"
30
30
  tree-sitter-language = "0.1.8"
31
31
 
32
32
  [dev-dependencies]
33
- tree-sitter = "0.27.0"
33
+ tree-sitter = "0.27.1"
34
34
 
35
35
  [build-dependencies]
36
36
  cc = "1.4"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konomanoasa/tree-sitter-gitattributes",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "Tree-sitter grammar for gitattributes.",
6
6
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "tree-sitter": "node scripts/tree-sitter.js"
36
36
  },
37
37
  "devDependencies": {
38
- "@biomejs/biome": "2.5.14",
39
- "@types/node": "26.5.1",
40
- "tree-sitter-cli": "0.27.0",
38
+ "@biomejs/biome": "2.5.15",
39
+ "@types/node": "26.6.5",
40
+ "tree-sitter-cli": "0.27.1",
41
41
  "typescript": "7.0.2"
42
42
  },
43
43
  "allowScripts": {
package/src/parser.c CHANGED
@@ -5601,7 +5601,7 @@ TS_PUBLIC const TSLanguage *tree_sitter_gitattributes(void) {
5601
5601
  .metadata = {
5602
5602
  .major_version = 0,
5603
5603
  .minor_version = 4,
5604
- .patch_version = 0,
5604
+ .patch_version = 1,
5605
5605
  },
5606
5606
  };
5607
5607
  return &language;
package/src/scanner.c CHANGED
@@ -199,7 +199,7 @@ static int32_t simple_escape(int32_t c) {
199
199
  }
200
200
  }
201
201
 
202
- // The cursor has passed the backslash.
202
+ // Backslash already consumed.
203
203
  static void quoted_escape(Cursor *r) {
204
204
  const int32_t c = r->lexer->lookahead;
205
205
  r->kind = QUOTED_ESCAPE;
@@ -301,7 +301,7 @@ static bool start_content(Scanner *s, TSLexer *lexer, const bool *valid) {
301
301
  while (s->position < s->leading) advance(s, lexer);
302
302
  lexer->mark_end(lexer);
303
303
  if (s->kind == RULE_START) {
304
- // The opening quote is lookahead; QUOTE_OPEN consumes it later.
304
+ // QUOTE_OPEN consumes this lookahead quote later.
305
305
  if (s->quoted) lexer->advance(lexer, false);
306
306
  Cursor r = {
307
307
  .s = s,
package/tree-sitter.json CHANGED
@@ -12,7 +12,7 @@
12
12
  }
13
13
  ],
14
14
  "metadata": {
15
- "version": "0.4.0",
15
+ "version": "0.4.1",
16
16
  "license": "MIT",
17
17
  "description": "Tree-sitter grammar for gitattributes.",
18
18
  "links": {