Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Highlight breaks with #error or #warning directive in C using apostrophe #270

Open
aeschli opened this issue Apr 11, 2018 · 2 comments
Open
Labels

Comments

@aeschli
Copy link
Contributor

aeschli commented Apr 11, 2018

  1. Write a code in C using the directive #error or #warning
  2. Use an apostrophe with these directives
  3. See highlight

How it looks like:
image

How it should look like:
image

Copied from original issue: microsoft/vscode#47582

@Arcanemagus
Copy link

Using this text:

#if CONDITION == RESULT_CONDITION
  #error It can't compile
  // this apostrophe broke the highlight

  if(anothercondition == TRUE)
  {
    cantSeeHighlithAnymore();
  }
#endif

I can reproduce this on Atom v1.26.0-beta1 using the TextMate grammar:
image

@beckerzito
Copy link

Hi,

Any update on this?!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants