atom / language-c

C support in Atom
Other
118 stars 152 forks source link

Syntax Highlighting Breaks When Assigning Lambdas That Don't Take Params #355

Open mason1920 opened 3 years ago

mason1920 commented 3 years ago

Prerequisites

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