Skip to content

Commit 69fb2bb

Browse files
authored
Merge pull request #16597 from hvitved/tree-sitter/empty-location
Tree-sitter: Emit `empty_location` relation to avoid scan
2 parents d88c498 + 686879a commit 69fb2bb

File tree

13 files changed

+6106
-3
lines changed

13 files changed

+6106
-3
lines changed

config/dbscheme-fragments.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"/*- Yaml dbscheme -*/",
2929
"/*- Blame dbscheme -*/",
3030
"/*- JSON dbscheme -*/",
31-
"/*- Python dbscheme -*/"
31+
"/*- Python dbscheme -*/",
32+
"/*- Empty location -*/"
3233
]
3334
}

ql/ql/src/ql.dbscheme

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ containerparent(
3636
unique int child: @container ref
3737
);
3838

39+
/*- Empty location -*/
40+
41+
empty_location(
42+
int location: @location_default ref
43+
);
44+
3945
/*- Source location prefix -*/
4046

4147
/**

0 commit comments

Comments
 (0)