Skip to content

Reindentation messes up case statements #120

@HeroCC

Description

@HeroCC

OS: Ubuntu 14.04
Version: Sublime Text Build 3083

When using case statements and syntax is set to bash, reindenting the file results in case statements looking like this: (indentation is small because I set tab to 2 spaces, but it reacts the same on a fresh install)

case "${flag}" in
  n) noInstall='true' ;;
u) autoUpdate='true' ;;
f) forseLN='true' ;;
*) error "Unexpected option ${flag}" ;;
esac

While they should look like this:

case "${flag}" in
  n) noInstall='true' ;;
  u) autoUpdate='true' ;;
  f) forseLN='true' ;;
  *) error "Unexpected option ${flag}" ;;
esac

There are many other examples of this (I can provide more) in my code, and a fresh install has the same problem. Is there any way to fix this?

My configuration: here

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions