Heredoc syntax highlighting doesn't recognize numbers
Opened this issue · 0 comments
softwarecreations commented
Prerequisites
- 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
Heredoc syntax highlighting doesn't recognize numbers
Steps to Reproduce
Simply paste the code and see.
- Create
script1.bash
as follows
#!/bin/bash
echo "Script 1 starting"
echo These files exist: script*.bash
cat >script2.bash << 'SCRIPT2'
#!/bin/bash
echo "Script 2 starting"
cat >script3.bash << SCRIPT3
echo "Script 3 starting"
name="Bob"
echo "Hello $name"
sayBye() {
echo "Bye $name"
}
byeMsg="$(sayBye)"
echo "Script 3 ending"
SCRIPT3
echo These files exist: script*.bash
bash script3.bash
echo "Script 2 ending"
SCRIPT2
echo These files exist: script*.bash
bash script2.bash
echo "Script 1 ending"
- You can run it if you want, to confirm that it works:
bash script1.bash
Expected behavior:
- SCRIPT2 should be treated as a valid heredoc identifier
Actual behavior:
- Numbers aren't recognized in heredoc identifiers; if you replace SCRIPT2 with SCRIPTTWO then it works.
Reproduces how often:
Every time
Versions
Atom : 1.54.0
Electron: 6.1.12
Chrome : 76.0.3809.146
Node : 12.4.0
apm 2.5.2
npm 6.14.8
node 12.4.0 x64
atom 1.54.0
python 2.7.16
git 2.29.2
Linux Debian Bullseye
Additional Information
N/A