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

Passing compound literals as function parameter breaks highlighting #312

Closed
1 task done
nigolaj opened this issue Dec 4, 2018 · 2 comments
Closed
1 task done

Comments

@nigolaj
Copy link

nigolaj commented Dec 4, 2018

Prerequisites

Description

Passing compound literals as function parameter breaks highlighting
out

Reduced example:

int main(int argc, char const *argv[]) {
  char const *p = "variable just for example";
  printf((char const[]){'a', 'b', 'c', '\n'});
  int another_variable = 3;
  return 0;
}

Tested with default Atom themes.

Edit by @rsese to add additional screenshot, syntax--c missing in the first screenshot

no-syntax-c

With that line commented out:

syntax-c

Versions

Atom : 1.33.0
Electron: 2.0.11
Chrome : 61.0.3163.100
Node : 8.9.3

apm 2.1.2
npm 6.2.0
node 8.9.3 x64
atom 1.33.0
python 2.7.15
git 2.19.2

Latest Solus

@rsese
Copy link

rsese commented Dec 5, 2018

Thanks for the report! Reproduced on macOS 10.12.6 with 1.33.0.

no-syntax-c

With that line commented out:

syntax-c

@maxbrunsfeld
Copy link
Contributor

Thanks for the report! This will ship in Atom 1.38.

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

No branches or pull requests

3 participants