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
6 changes: 3 additions & 3 deletions languages/ruby/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@

; Function definitions
(alias
(identifier) @function.method)
(identifier) @function.method.definition)

(setter
(identifier) @function.method)
(identifier) @function.method.definition)

(method
name: [
Expand Down Expand Up @@ -153,7 +153,7 @@

(super) @variable.special

(class_variable) @variable.special
(class_variable) @variable.special.class

(instance_variable) @variable.special.instance

Expand Down
6 changes: 3 additions & 3 deletions tests/languages/ruby/snapshots/highlights.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ expression: captures
line: 6
column: 1
text: "@instance_variable"
- name: variable.special
- name: variable.special.class
line: 7
column: 1
text: "@@class_variable"
Expand Down Expand Up @@ -1826,7 +1826,7 @@ expression: captures
line: 147
column: 1
text: alias
- name: function.method
- name: function.method.definition
line: 147
column: 7
text: foo
Expand Down Expand Up @@ -1918,7 +1918,7 @@ expression: captures
line: 154
column: 1
text: def
- name: function.method
- name: function.method.definition
line: 154
column: 5
text: setter
Expand Down
Loading