You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Ruby files with the latest updates to the recommended Ruby extensions, the theme's coloring becomes unclear. Here's an example snippet, and screenshots running the theme with the Ruby extension enabled and without. I'm posting this here because it seems like this is an issue with the theme not recognizing a new classification of the code, rather than the the Ruby extension misclassifying code.
Without Ruby extension
With Ruby extension
Here are the differences that make the code less clear:
class names, specifically on lines 1 and 20, have the same color as method names now
the module name on line 2 has the same issue
Keyword arguments (foo: "bar" on line 4) lose their unique color and use the same color as variables.
Within the initialize method, references to the arguments (arg1, arg2, foo, and options) use the same color as variables, not white.
Snippet of code
classFoo < InheritingClassincludeModuleNamedefinitialize(arg1,arg2,foo: "bar", **options)@arg1=arg1@arg2=arg2@foo=foo@options=optionsenddefself.example_class_methodputs"This is a class method"enddefexample_instance_methodputs"This is an instance method"enddefreference_to_another_classAnotherClass::SubClass::CONSTANTenddefmethod_with_conditional_logic(fizz,buzz)iffizz == "fizz"putstrueelseputsfalseendcasebuzzwhen"buzz"putstrueelseputsfalseendfizz.mapdo |f|
"#{f} !"endendend
The text was updated successfully, but these errors were encountered:
On Ruby files with the latest updates to the recommended Ruby extensions, the theme's coloring becomes unclear. Here's an example snippet, and screenshots running the theme with the Ruby extension enabled and without. I'm posting this here because it seems like this is an issue with the theme not recognizing a new classification of the code, rather than the the Ruby extension misclassifying code.
Without Ruby extension
With Ruby extension
Here are the differences that make the code less clear:
foo: "bar"
on line 4) lose their unique color and use the same color as variables.arg1
,arg2
,foo
, andoptions
) use the same color as variables, not white.Snippet of code
The text was updated successfully, but these errors were encountered: