-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to folder %w notation created Ruby arrays #945
Comments
This should be a quick fix; it'll be ready for 1.115 in mid-March. Thanks for the report! |
The commit above should fix this. It'll land right before 1.115 is released. Thanks again! |
Thank you, I took a look at the commit. just to make sure we get all the cases:
So the way I see it: it's for either:
And for each of them, to open we can use parentheses:
And lastly - '
- "
- ^
- %
- |
- $
- <space> hmm probably only make sense to use in a single line
- #
- @
- *
- Etc................... # some examples using 'w' but they would also work using 'W' 'I' or 'i'
ar = %w[
st1
st2
]
ar = %w{
st1
st2
}
ar = %w'
st1
st2
'
ar = %w"
st1
st2
"
ar = %w%
st1
st2
%
ar = %w@
st1
st2
@
ar = %w!
st1
st2
!
ar = %w!
st1
st2
!
ar = %w*
st1
st2
* Oh and one last thing, not sure it it's a typo or not: |
Yes, these will be covered. Of the special percent notations:
Of the changes to
|
Thanks in advance for your bug report!
What happened?
Pulsar not recognizing
%w
notations arrays as array, therefore not being able to folder them.(%w notation is a different way in ruby to create arrays)
Atom v 1.60
does recognizing %w notations so in Atom I'm able to folder it, this bug only happens in PulsarExpanded:
Foldered:
Pulsar version
1.114.0
Which OS does this happen on?
🐧 Debian based (Linux Mint, Ubuntu, etc.)
OS details
Pop Os 22.04
Which CPU architecture are you running this on?
x86_64/AMD64
What steps are needed to reproduce this?
myfile.rb
Additional Information:
There are other notations besides %w,
Same bug apply for any of them (foldable in Atom, not in Pulsar):
The text was updated successfully, but these errors were encountered: