@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 +2 -2
- package/package.json +4 -4
- package/src/parser.c +1 -1
- package/src/scanner.c +2 -2
- package/tree-sitter.json +1 -1
package/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "konomanoasa-tree-sitter-gitattributes"
|
|
3
|
-
version = "0.4.
|
|
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.
|
|
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.
|
|
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.
|
|
39
|
-
"@types/node": "26.5
|
|
40
|
-
"tree-sitter-cli": "0.27.
|
|
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
package/src/scanner.c
CHANGED
|
@@ -199,7 +199,7 @@ static int32_t simple_escape(int32_t c) {
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
//
|
|
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
|
-
//
|
|
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,
|