atom/language-c

Colorization is incorrect with "void */*comment*/"

sean-mcmanus opened this issue · 2 comments

Prerequisites

Steps to Reproduce

  1. Use code like int main(void */comment/); in a C++ file.

Expected behavior: Comment is colored correctly.

Actual behavior:

image

Reproduces how often: 100%

Versions

Atom: 1.23.3

Other info

Repros with Atom and VS Code. Original bug report is from microsoft/vscode-cpptools#2988 .

rsese commented

Atom: 1.23.3
...
Repros with Atom

Thanks for the report! The current stable release version of Atom is 1.33.1 and Tree-sitter is now on by default. This particular issue looks like it doesn't reproduce with Tree-sitter:

atom-1-33-1

As you may have heard, we are migrating from our old first-mate grammar engine to the new Tree-sitter engine. This will enable a number of new features, more consistent syntax highlighting, and better performance, among other benefits. In order to free up our limited resources, we have decided to stop maintaining the first-mate grammar when there is a built-in Tree-sitter grammar available. Since this issue applies only to the first-mate grammar, we are going to close it. Please let us know if we have misunderstood the description of the problem.

Okay, sorry about that -- I didn't realize I had an old version of Atom.