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

Wrong syntax highlight of until loop structure #155

Open
1 task done
leagris opened this issue Jan 22, 2020 · 0 comments
Open
1 task done

Wrong syntax highlight of until loop structure #155

leagris opened this issue Jan 22, 2020 · 0 comments

Comments

@leagris
Copy link

leagris commented Jan 22, 2020

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

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