vscode-blockman icon indicating copy to clipboard operation
vscode-blockman copied to clipboard

Feature Request: Support Ruby Language

Open KSH-code opened this issue 4 years ago • 11 comments

From Reddit, and Here I am. I'd like to use Blockman with Ruby.

KSH-code avatar Jul 06 '21 05:07 KSH-code

I hope I will try it in the near future. You can help me if you find a good Ruby tokenizer which takes code text as input and has output of an array, where each item is opening/closing position of block. Order does not matter. Position is like {line: 7, column: 15} or global index like: 178.

leodevbro avatar Jul 06 '21 05:07 leodevbro

would one of the following help?

https://github.com/whitequark/parser https://github.com/rubocop/rubocop-ast

robotex82 avatar Jul 18 '21 22:07 robotex82

I closed this PR, because it is not planned.

KSH-code avatar Oct 31 '22 03:10 KSH-code

@KSH-code, @robotex82, Hi again, so, Blockman now supports Ruby, it's experimental for now, so please check it out and if you find any bugs or maybe not highlighting all the blocks you want to be highlighted, please let me know. The latest Blockman version is 1.6.1 (2022-11-02 UTC+4).

I used this package: https://www.npmjs.com/package/ruby_parser

leodevbro avatar Nov 01 '22 18:11 leodevbro

@KSH-code, @robotex82, Hello, anybody here?

leodevbro avatar Nov 04 '22 13:11 leodevbro

Oh I see. great! I'll use it. thanks!

KSH-code avatar Nov 08 '22 10:11 KSH-code

Well, I found some mistakes/bugs caused because of me. Sometimes Blockman highlights wrong areas in Ruby code. I'm trying to fix them.

leodevbro avatar Nov 08 '22 11:11 leodevbro

Thank you! I just installed it and will be testing it!

robotex82 avatar Nov 09 '22 08:11 robotex82

I fixed some issues, the new version is 1.6.4 (2022-11-10). I think Ruby support is stable now.

leodevbro avatar Nov 09 '22 21:11 leodevbro

I can't wait to give it a try! Thanks for supporting Ruby

a-chris avatar Nov 11 '22 23:11 a-chris

Better late than never: I have been using it with ruby since my last post and it work perfectly! Thank you! ❤️

robotex82 avatar Mar 16 '23 10:03 robotex82