From 303cb116091572cd8b06caf481f2293f59b83bd3 Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Thu, 4 Jun 2026 11:38:17 +0100 Subject: [PATCH] Ruby: Add support for YAML comments. --- ruby/ql/lib/ruby.dbscheme | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ruby/ql/lib/ruby.dbscheme b/ruby/ql/lib/ruby.dbscheme index 29b7b6fc198..d6f4c73dc33 100644 --- a/ruby/ql/lib/ruby.dbscheme +++ b/ruby/ql/lib/ruby.dbscheme @@ -101,13 +101,17 @@ yaml_scalars (unique int scalar: @yaml_scalar_node ref, int style: int ref, string value: string ref); +yaml_comments (unique int id: @yaml_comment, + string text: string ref, + string tostring: string ref); + yaml_errors (unique int id: @yaml_error, string message: string ref); yaml_locations(unique int locatable: @yaml_locatable ref, int location: @location_default ref); -@yaml_locatable = @yaml_node | @yaml_error; +@yaml_locatable = @yaml_node | @yaml_error | @yaml_comment; /*- Database metadata -*/