Syntax highlighting stops after <<base in for-each statement
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
I noticed the syntax highlighting stops/fails when there is a variable immediately following two open angle brackets, e.g. <<base in a for-each statement. Every line following <<base loses its syntax highlighting. I noticed this bug from the code I saw here.
Steps to Reproduce
- Load the file into the editor: https://github.com/SwanstromLab/tools/blob/master/v3_for_g2p.rb
Expected behavior:
Continued syntax highlighting after <<base as Notepad++ is capable of doing.
Actual behavior:
It stops highlighting the code after finding <<base in a for-each loop. It might do this in other types of statements. If I put a space between the angle brackets and variable name the syntax highlighting starts working again.
Reproduces how often:
100%.
Versions
Atom : 1.46.0 Electron: 4.2.7 Chrome : 69.0.3497.128 Node : 10.11.0
Additional Information
I am not affiliated in any way with the repo I link to here.