From 5a87bc98dabd0d38152a6fa774005f7ecbd40f1b Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Thu, 2 Mar 2023 08:06:35 -0500 Subject: feat: add `@comment.documentation` where applicable --- queries/ruby/highlights.scm | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'queries/ruby') diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm index c350e5ad1..9488297b4 100644 --- a/queries/ruby/highlights.scm +++ b/queries/ruby/highlights.scm @@ -173,13 +173,30 @@ (float) @float [ - (nil) (true) (false) ] @boolean -(comment) @comment -(comment) @spell +(nil) @constant.builtin + +(comment) @comment @spell + +(program + (comment)+ @comment.documentation + (class)) + +(module + (comment)+ @comment.documentation + (body_statement (class))) + +(class + (comment)+ @comment.documentation + (body_statement (method))) + +(body_statement + (comment)+ @comment.documentation + (method)) + (string_content) @spell ; Operators -- cgit v1.2.3-70-g09d2