Skip to content
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

Ruby syntax highlighting with tree sitter looks wrong #215

Closed
duduribeiro opened this issue Oct 21, 2022 · 5 comments
Closed

Ruby syntax highlighting with tree sitter looks wrong #215

duduribeiro opened this issue Oct 21, 2022 · 5 comments

Comments

@duduribeiro
Copy link

Hey folks 👋

I'm using the color scheme with a ruby code and looks like some parts of the code are not getting highlighted when using tree sitter

See that :name didn't get highlighted 🤔
image

when not using tree sitter, it get highlighted as well
image

I think it maybe something on the theme because using other colorscheme works

image

any idea why this happen?

Thanks

@duduribeiro
Copy link
Author

also it does not look like the screenshot from the example 😄

image

am I doing something wrong?

@mariesavch
Copy link

problem in #214

@mariesavch
Copy link

mariesavch commented Oct 22, 2022

temporarily downgrade treesitter to nvim-treesitter/nvim-treesitter@4cccb6f

in packer:

    use {
        "nvim-treesitter/nvim-treesitter",
+      commit = "4cccb6f494eb255b32a290d37c35ca12584c74d0",
        run = function()
            require("nvim-treesitter.install").update { with_sync = true }
        end,
    }

@duduribeiro
Copy link
Author

thanks so much for that @idm1try ! it worked perfectly.

The only odd is that the class name is being red instead of purple (like in the print screen from example on readme). See the print screen bellow
image

is this the expected output?

thanks a lot

@ful1e5
Copy link
Member

ful1e5 commented Feb 18, 2023

I have patched the updated tree-sitter highlight group to upstream #222, and I am closing this issue. If the issue persists, please reopen it.

@ful1e5 ful1e5 closed this as completed Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants