Skip to content

Commit a2fe16c

Browse files
committed
Rust: Add support for YAML comments.
1 parent 204b373 commit a2fe16c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rust/ql/lib/rust.dbscheme

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,17 @@ yaml_scalars (unique int scalar: @yaml_scalar_node ref,
100100
int style: int ref,
101101
string value: string ref);
102102

103+
yaml_comments (unique int id: @yaml_comment,
104+
string text: string ref,
105+
string tostring: string ref);
106+
103107
yaml_errors (unique int id: @yaml_error,
104108
string message: string ref);
105109

106110
yaml_locations(unique int locatable: @yaml_locatable ref,
107111
int location: @location_default ref);
108112

109-
@yaml_locatable = @yaml_node | @yaml_error;
113+
@yaml_locatable = @yaml_node | @yaml_error | @yaml_comment;
110114

111115
/*- Database metadata -*/
112116

0 commit comments

Comments
 (0)