Skip to content

Commit 55f2f04

Browse files
committed
Shared: Ensure that YAML comment extraction is properly reflected in the dbscheme template.
1 parent 004a5b4 commit 55f2f04

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,17 @@ yaml_scalars (unique int scalar: @yaml_scalar_node ref,
9797
int style: int ref,
9898
string value: string ref);
9999

100+
yaml_comments (unique int id: @yaml_comment,
101+
string text: string ref,
102+
string tostring: string ref);
103+
100104
yaml_errors (unique int id: @yaml_error,
101105
string message: string ref);
102106

103107
yaml_locations(unique int locatable: @yaml_locatable ref,
104108
int location: @location_default ref);
105109

106-
@yaml_locatable = @yaml_node | @yaml_error;
110+
@yaml_locatable = @yaml_node | @yaml_error | @yaml_comment;
107111

108112
/*- Database metadata -*/
109113

0 commit comments

Comments
 (0)