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

Heredoc syntax highlighting doesn't recognize numbers #165

@softwarecreations

Description

@softwarecreations

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions