atom / language-ruby

Ruby package for Atom
Other
101 stars 145 forks source link

YARD comments no longer syntax highlighted #245

Open ioquatix opened 6 years ago

ioquatix commented 6 years ago

Prerequisites

Description

YARD comments no longer syntax highlighted

Steps to Reproduce

Previously, comments would be highlighted:

# @return [String] The result
def foobar
  return "foobar"
end

Expected behavior:

@return would be highlighted, along with other parts of the structured comment.

Actual behavior:

It's not highlighted

Reproduces how often: 100%

Versions

1.32.0

ioquatix commented 6 years ago

cc @madleech

ioquatix commented 6 years ago

Here is an example of what it used to look like:

https://github.com/atom/language-ruby/issues/228

Arcanemagus commented 6 years ago

Can you please update this issue to follow the template? Thanks!

ioquatix commented 6 years ago

@Arcanemagus Okay, done. What more information do you need?

Arcanemagus commented 6 years ago

It looks like this is a regression from the enabling of Tree-sitter parsers by default in Atom v1.32.0:

Text-mate: image

Tree-sitter: image

You can work around this for now by changing the Settings -> Core -> Use Tree-sitter Parsers option within the Settings app.

ioquatix commented 6 years ago

Ah so maybe a bug with the new parser? or a bug with how the grammar is specified?

Arcanemagus commented 6 years ago

From what I can see that extension simply hasn't been implemented in the Tree-sitter parser.

ioquatix commented 6 years ago

That makes sense. Should we file a bug report on the tree-sitter parser?

Arcanemagus commented 6 years ago

That makes sense. Should we file a bug report on the tree-sitter parser?

Just here is fine 😉.

epaulet commented 6 years ago

It looks like the same issue may have also broken the language-todo package.

Before:

screen shot 2018-10-30 at 10 10 38 pm

After:

screen shot 2018-10-30 at 10 10 50 pm
Arcanemagus commented 6 years ago

@epaulet That is being tracked in https://github.com/atom/language-todo/issues/82 and https://github.com/atom/atom/issues/18196. You may want to subscribe to those issues for updates.