Skip to content

Commit 3dd3e2c

Browse files
authored
Merge pull request #21998 from MathiasVP/fix-autogenerated-dbschemes
Shared/Python: #21935 follow up
2 parents 7960c5c + 55f2f04 commit 3dd3e2c

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

python/extractor/semmle/dbscheme.template

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,17 @@ yaml_scalars (unique int scalar: @yaml_scalar_node ref,
272272
int style: int ref,
273273
string value: string ref);
274274

275+
yaml_comments (unique int id: @yaml_comment,
276+
string text: string ref,
277+
string tostring: string ref);
278+
275279
yaml_errors (unique int id: @yaml_error,
276280
string message: string ref);
277281

278282
yaml_locations(unique int locatable: @yaml_locatable ref,
279283
int location: @location_default ref);
280284

281-
@yaml_locatable = @yaml_node | @yaml_error;
285+
@yaml_locatable = @yaml_node | @yaml_error | @yaml_comment;
282286

283287
/*- Python dbscheme -*/
284288

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)