Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Heredoc syntax highlighting doesn't recognize numbers #165

Open
1 task done
softwarecreations opened this issue Feb 4, 2021 · 0 comments
Open
1 task done

Heredoc syntax highlighting doesn't recognize numbers #165

softwarecreations opened this issue Feb 4, 2021 · 0 comments

Comments

@softwarecreations
Copy link

softwarecreations commented Feb 4, 2021

Prerequisites

Description

Heredoc syntax highlighting doesn't recognize numbers

Steps to Reproduce

Simply paste the code and see.

  1. 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"
  1. You can run it if you want, to confirm that it works: bash script1.bash

Expected behavior:

  1. SCRIPT2 should be treated as a valid heredoc identifier

Actual behavior:

  1. 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

@softwarecreations softwarecreations changed the title Nested heredoc syntax highlighting is broken Heredoc syntax highlighting doesn't recognize numbers Feb 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant