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

ksh interpreters not recognized as bash-like syntax #136

Open
1 task done
mcandre opened this issue Jan 18, 2019 · 2 comments
Open
1 task done

ksh interpreters not recognized as bash-like syntax #136

mcandre opened this issue Jan 18, 2019 · 2 comments

Comments

@mcandre
Copy link

mcandre commented Jan 18, 2019

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.

@lee-dohm
Copy link
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.

@mcandre
Copy link
Author

mcandre commented Feb 18, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants