Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions languages/ruby/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
] @keyword

((identifier) @keyword
(#match? @keyword "^(private|protected|public)$"))
(#any-of? @keyword "private" "protected" "public"))

; Function calls
(call
Expand Down Expand Up @@ -129,7 +129,7 @@

; Identifiers
((identifier) @constant.builtin
(#match? @constant.builtin "^__(FILE|LINE|ENCODING)__$"))
(#any-of? @constant.builtin "__FILE__" "__LINE__" "__ENCODING__"))

(file) @constant.builtin

Expand Down
4 changes: 2 additions & 2 deletions languages/ruby/textobjects.scm
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
(call
receiver: (constant) @_class_const
method: (identifier) @_class_method
(#match? @_class_const "Class")
(#match? @_class_method "new")
(#eq? @_class_const "Class")
(#eq? @_class_method "new")
(do_block
(_)+ @class.inside)) @class.around

Expand Down
Loading