aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/rbs/highlights.scm19
1 files changed, 19 insertions, 0 deletions
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
[
"="