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

Incorrect highlighting with C/C++ when macro call does not end in semicolon #4582

Closed
4 tasks done
tristan957 opened this issue Jul 15, 2019 · 4 comments
Closed
4 tasks done

Comments

@tristan957
Copy link

Not much else to say. Any extra information can be found at jeff-hykin/better-cpp-syntax#311 because this is basically a duplicate. Please take a look at the line I specifically called out with an all-caps comment.

Preliminary Steps

Please confirm you have...

Problem Description

When a macro invocation does not end in a semicolon, the following syntax is incorrectly colored.

URL of the affected repository:

jeff-hykin/better-cpp-syntax#311

Last modified on:

2019-07-15

Expected language:

C/C++

Detected language:

C/C++

@lildude
Copy link
Member

lildude commented Jul 16, 2019

As you've already identified, this is a problem with the grammar and not Linguist. As per the README at https://github.com/github/linguist#theres-a-problem-with-the-syntax-highlighting-of-a-file

If you experience an issue with the syntax-highlighting on GitHub, please report the issue to the upstream grammar repository, not here. Grammars are updated every time we build the Linguist gem so upstream bug fixes are automatically incorporated as they are fixed.

As you have already done this, I'm closing this issue. Any grammar updates will automatically be pulled in as and when releases are made.

@lildude lildude closed this as completed Jul 16, 2019
@tristan957
Copy link
Author

Well the upstream I reported the issue to isn't even the upstream you guys use for your grammar.

@tristan957
Copy link
Author

Has been rectified textmate/c.tmbundle#67

@lildude
Copy link
Member

lildude commented Jul 16, 2019

Well the upstream I reported the issue to isn't even the upstream you guys use for your grammar.

Whoops missed that as I wasn't expecting you to reference a completely different grammar 😊.

Has been rectified textmate/c.tmbundle#67

🙇

@github-linguist github-linguist locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants