From 57713d079c3c2afcc31f3e0650bf8594a2a296ba Mon Sep 17 00:00:00 2001 From: joker1007 Date: Sat, 4 Jan 2025 22:28:44 +0900 Subject: [PATCH] fix(rbs): fix highlight queries of rbs that is missing some definitions --- queries/rbs/highlights.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/queries/rbs/highlights.scm b/queries/rbs/highlights.scm index 1000e3bed..9de9c427d 100644 --- a/queries/rbs/highlights.scm +++ b/queries/rbs/highlights.scm @@ -54,9 +54,24 @@ (method_name [ (identifier) + (identifier_suffix) (constant) + (constant_suffix) (operator) (setter) + (constant_setter) + ] @function.method)) + +(attribute_member + (method_name + [ + (identifier) + (identifier_suffix) + (constant) + (constant_suffix) + (operator) + (setter) + (constant_setter) ] @function.method)) [ @@ -115,6 +130,10 @@ (type (integer_literal) @number) +(type + (record_type + key: (record_key) @string.special.symbol)) + ; Operators [ "="