Skip to content

Commit 833f18e

Browse files
committed
Fix Ruby lambda operator scope
1 parent f1a4cce commit 833f18e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Ruby/Ruby.sublime-syntax

+2-2
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ contexts:
861861
scope: support.function.builtin.ruby
862862
push: function-call-arguments
863863
# Lambda operator from the Kernel class not handled elsewhere
864-
- match: ->
865-
scope: support.function.builtin.ruby
864+
- match: '->'
865+
scope: meta.function.ruby storage.type.function.ruby keyword.declaration.function.lambda.ruby
866866
push: function-call-arguments
867867
# Methods from the Module class not handled elsewhere
868868
- match: |-

Ruby/syntax_test_ruby.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ class MyClass
11291129
#^^^^ support.function.builtin
11301130

11311131
->
1132-
#^^ support.function.builtin
1132+
#^^ meta.function.ruby storage.type.function.ruby keyword.declaration.function.lambda.ruby
11331133

11341134

11351135
##################

0 commit comments

Comments
 (0)