This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Description
Prerequisites
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