You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When editing CUDA or C++ code the syntax highlighting will 'mess up'. This meaning it will color everything below a certain point in the same color. For example it will ignore correctly escaped multiline comments (/* ... */) and color everything in the comment color. Or, as highlighted below, it will color everything after a . in the color for an object property. When mistyping a comma after an object the whole source code turns white. Usually that bug stops at the point where the code starts to go out of the view, so when you scroll, you will have correct syntax highlighting in the code that wasn't visible when typing the characters that caused the problem. Restarting atom fixes the issue, until typing one or more of the characters again. Single lines can be correctly highlighted by adding a space or newline.
Before pic:
After pic:
Steps to Reproduce
Have a cuda (.cu) file open showing a class method.
To any variable, add a dot as if to reference a property and then add some letters, as if to access a property of said variable.
Expected behavior:
The syntax highlighting will highlight the property after the dot in red (or whatever color you have chosen to give to properties).
Actual behavior:
The syntax highlighting will highlight everything after the dot in red (or whatever color you have chosen to give to properties).
Reproduces how often:
It seems like this always happens when using the dot, so in this case 100% of the time. On other occasions it is fine for a couple of times and then occurs.
First of all, thanks for taking the time to file a detailed report, and I apologize for shipping with this really bad bug.
I believe this is fixed already in 1.32.2 (and 1.33.0-beta2), which I just published. Please give one of those releases a try. Let me know if you are still experiencing this type of problem.
Prerequisites
Description
When editing CUDA or C++ code the syntax highlighting will 'mess up'. This meaning it will color everything below a certain point in the same color. For example it will ignore correctly escaped multiline comments (
/* ... */
) and color everything in the comment color. Or, as highlighted below, it will color everything after a.
in the color for an object property. When mistyping a comma after an object the whole source code turns white. Usually that bug stops at the point where the code starts to go out of the view, so when you scroll, you will have correct syntax highlighting in the code that wasn't visible when typing the characters that caused the problem. Restarting atom fixes the issue, until typing one or more of the characters again. Single lines can be correctly highlighted by adding a space or newline.Before pic:

After pic:

Steps to Reproduce
Expected behavior:
The syntax highlighting will highlight the property after the dot in red (or whatever color you have chosen to give to properties).
Actual behavior:
The syntax highlighting will highlight everything after the dot in red (or whatever color you have chosen to give to properties).
Reproduces how often:
It seems like this always happens when using the dot, so in this case 100% of the time. On other occasions it is fine for a couple of times and then occurs.
Versions
Atom : 1.32.1
Electron: 2.0.9
Chrome : 61.0.3163.100
Node : 8.9.3
apm 2.1.2
npm 6.2.0
node 8.9.3 x64
atom 1.32.1
python 3.7.0
git 2.7.4
running on Linux Mint 18.1 Serena
Additional Information
It seems to be related to a class of bugs with the tree sitter as for example in atom/language-python#285 and atom/language-python#281
The text was updated successfully, but these errors were encountered: