Closed chbk closed 3 years ago
Please review and approve this!
@50Wliu I have a commit pending for punctuation.separator.delimiter
, is my suggestion okay to you?
Yes, I think what you're saying is fine.
@50Wliu Do you have any other comments on this pull request? It looks ready to merge for me.
Sorry for the delay @chbk, someone from the team will take a look as soon as they can.
Thanks for the contribution 🙇🏾 @chbk
Description of the Change
Added a
separators
entry to the repositoryRewrote the grammar for class and module declarations with begin/end patterns:
punctuation.separator.inheritance.ruby
topunctuation.separator.namespace.ruby
for consistencyentity.name.type.class.ruby
,entity.name.type.module.ruby
andentity.other.inherited-class.module.ruby
to start with an uppercase letter and to exclude separatorsThis is now scoped properly:
Scoped commas in function declarations:
Scoped
self
and separators in function declarations:Unfortunately, I wasn't able to rewrite the grammar for function declarations with begin/end patterns. I used existing regular expressions to capture separators. Since the captures are placed inside repetition patterns
()*
, only the last separator will be scoped. Not perfect, but still an improvement.Changed scopes for
->
:support.function.kernel.arrow.ruby
Added specs
Applicable Issues
221 Missing scope on commas
222 Differentiate
->
from other keywords223 Namespace separator
::
not scoped in class definition