FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Wrong syntax highlight of until loop structure · Issue #155 · atom/language-shellscript · GitHub

This repository was archived by the owner on Dec 15, 2022. It is now read-only.
/ language-shellscript Public archive
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Wrong syntax highlight of until loop structure #155

Description

Prerequisites

Description

The until loop syntax highlight uses the command statement highlight rather than the correct control structure highlight used with if, else, fi, for, while, do, done.

Steps to Reproduce

Use the following demo code:

#!/usr/bin/env sh

# Wrong highlight of the until structure
until [ $i -eq 0 ]; do
 echo "$i"
 i=$((i-1))
done

i=3
# Correct highlihgt of a while structure
while [ $i -ne 0 ]; do
  echo "$i"
  i=$((i-1))
 done

Expected behaviour:

Expecting same highlight as while loop:

Actual behaviour:

Wrong highlight of until loop:

Reproduces how often:

Reproduces always: 100% of the time.

Versions

  • atom --version:
Atom    : 1.43.0
Electron: 4.2.7
Chrome  : 69.0.3497.128
Node    : 10.11.0
  • apm --version:
apm  2.4.3
npm  6.2.0
node 10.2.1 x64
atom 1.43.0
python 2.7.17
git 2.20.1

OS: Ubuntu 19.10 eoan

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL