atom / language-c

C support in Atom
Other
116 stars 154 forks source link

Doubtful syntax highlighting #350

Open simplerick opened 4 years ago

simplerick commented 4 years ago

Description

Variable is highlighted as a type. Screenshot: ![Screenshot from 2020-06-22 16-42-32](https://user-images.githubusercontent.com/32038973/85294540-6ed1c200-b4a7-11ea-96a8-b526a408acbc.png) ### Steps to Reproduce Type code: ``` std::vector a = {7, 5, 16, 8}; for (int i = 0; i != 4; i++) { a[i] = a[i] + 2; } ``` **Expected behavior:**

a in a[i] isn't highlighted.

Versions

apm 2.5.0 npm 6.14.5 node 14.4.0 x64 atom 1.48.0 python 3.8.3 git 2.27.0

OS: Arch Linux Kernel: x86_64 Linux 5.6.12-arch1-1