Skip to content

Commit

Permalink
Merge pull request #16597 from hvitved/tree-sitter/empty-location
Browse files Browse the repository at this point in the history
Tree-sitter: Emit `empty_location` relation to avoid scan
  • Loading branch information
hvitved committed May 27, 2024
2 parents d88c498 + 686879a commit 69fb2bb
Show file tree
Hide file tree
Showing 13 changed files with 6,106 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/dbscheme-fragments.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"/*- Yaml dbscheme -*/",
"/*- Blame dbscheme -*/",
"/*- JSON dbscheme -*/",
"/*- Python dbscheme -*/"
"/*- Python dbscheme -*/",
"/*- Empty location -*/"
]
}
6 changes: 6 additions & 0 deletions ql/ql/src/ql.dbscheme
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ containerparent(
unique int child: @container ref
);

/*- Empty location -*/

empty_location(
int location: @location_default ref
);

/*- Source location prefix -*/

/**
Expand Down
Loading

0 comments on commit 69fb2bb

Please sign in to comment.