<!-- Have you read Atom's Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect: https://github.com/atom/.github/blob/master/CODE_OF_CONDUCT.md Do you want to ask a question? Are you looking for support? The Atom message board is the best place for getting support: https://discuss.atom.io --> ### Prerequisites * [x] Put an X between the brackets on this line if you have done all of the following: * Reproduced the problem in Safe Mode: <https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode> * Followed all applicable steps in the debugging guide: <https://flight-manual.atom.io/hacking-atom/sections/debugging/> * Checked the FAQs on the message board for common solutions: <https://discuss.atom.io/c/faq> * Checked that your issue isn't already filed: <https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom> * Checked that there is not already an Atom package that provides the described functionality: <https://atom.io/packages> ### Description Syntax highlighting gets confused when lambdas are made without a parameter list and assigned to a variable. ### Steps to Reproduce 1. Create a new C++ file 2. Key a lambda without a parameter list and assign it to something (e.g. `auto x = [] { return 0; };`) **Expected behavior:** Correct coloring. Such as in the above example, return should be pink, not grey. **Actual behavior:** Incorrect coloring. Mostly grey language keywords. **Reproduces how often:** Always. ### Versions Atom : 1.43.0 Electron: 4.2.7 Chrome : 69.0.3497.128 Node : 10.11.0 Debian 10
Prerequisites
Description
Syntax highlighting gets confused when lambdas are made without a parameter list and assigned to a variable.
Steps to Reproduce
auto x = [] { return 0; };)Expected behavior:
Correct coloring. Such as in the above example, return should be pink, not grey.
Actual behavior:
Incorrect coloring. Mostly grey language keywords.
Reproduces how often:
Always.
Versions
Atom : 1.43.0
Electron: 4.2.7
Chrome : 69.0.3497.128
Node : 10.11.0
Debian 10