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.

ksh interpreters not recognized as bash-like syntax #136

Open

Description

@mcandre

Prerequisites

Description

language-shellscript fails to highlight a script correctly as bash-like syntax, when the shebang line uses a ksh interpreter such as ksh, mksh, ksh88, pdksh, ksh93, oksh.

Steps to Reproduce

  1. Write a script using a #!/bin/ksh shebang.
  2. Save the script.
  3. Close and reopen the script in Atom.

Expected behavior:

The script highlights just like basic (ba)sh code.

Actual behavior:

Only the shebang and a set command are syntax highlighted.

Reproduces how often: 100%

Versions

$ atom --version
Atom    : 1.34.0
Electron: 2.0.16
Chrome  : 61.0.3163.100
Node    : 8.9.3

Additional Information

macOS Mojave, in case that matters.

Activity

  1. lee-dohm commented on Jan 29, 2019

    @lee-dohm
    Contributor

    The first-mate grammar supports ksh but the tree-sitter grammar does not. A workaround for now is to turn off "Use Tree Sitter Parsers" in the Core Settings in Settings View.

  2. mcandre commented on Feb 18, 2020

    @mcandre
    Author

    Same for some other obscure shell interpreters, including posh. Gah, there are too many to handle!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions