You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
C++ Syntax Highlighting gets confused by apostrophes #320
The syntax highlighter thinks that a string starts from the apostrophe betwee the "n" and "t" in "don't" and highlights the rest of the file as a string until it reaches the next single quote.
Visual Studio gets this correct, since the entire line for the preprocessor directive is highlighted separately and it doesn't look for strings inside it.
After the single quote in the error directive everything is categorized as string.quoted.single.c
Looks like this behavior isn't an issue with Tree-sitter? E.g.:
So going to go ahead and close as detailed below.
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.
Activity
alexr00 commentedon Jan 31, 2019
From @damyanp on January 30, 2019 18:22
Live screenshot:

alexr00 commentedon Jan 31, 2019
After the single quote in the error directive everything is categorized as
string.quoted.single.crsese commentedon Feb 1, 2019
Thanks for the report!
Looks like this behavior isn't an issue with Tree-sitter? E.g.:
So going to go ahead and close as detailed below.
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.
Aerijo commentedon Feb 1, 2019
@rsese Tree sitter also trips on this, it just recovers before the function.
rsese commentedon Feb 1, 2019
Ahhh thanks @Aerijo, just went straight to the function 😄
maxbrunsfeld commentedon May 8, 2019
This doesn't affect the Tree-sitter parser anymore.