Skip to content

Commit b368c0e

Browse files
committed
tree-sitter: Use more standard shared dbscheme sections
We now use the shared "Overlay support" and "Database metadata".
1 parent f358a9b commit b368c0e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

shared/tree-sitter-extractor/src/generator/prefix.dbscheme

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,23 @@ yaml_locations(unique int locatable: @yaml_locatable ref,
106106
@yaml_locatable = @yaml_node | @yaml_error;
107107

108108
/*- Database metadata -*/
109+
110+
/**
111+
* The CLI will automatically emit applicable tuples for this table,
112+
* such as `databaseMetadata("isOverlay", "true")` when building an
113+
* overlay database.
114+
*/
109115
databaseMetadata(
110116
string metadataKey: string ref,
111117
string value: string ref
112118
);
113119

120+
/*- Overlay support -*/
121+
122+
/**
123+
* The CLI will automatically emit tuples for each new/modified/deleted file
124+
* when building an overlay database.
125+
*/
114126
overlayChangedFiles(
115127
string path: string ref
116128
);

0 commit comments

Comments
 (0)