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.

Wrong syntax highlight of until loop structure #155

@leagris

Description

@leagris

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:

image

Actual behaviour:

Wrong highlight of until loop:

image

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

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