Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bash language support #3348

Merged
merged 1 commit into from

3 participants

@iwehrman
Collaborator

This adds an entry to the languages.json file for Bash language support, by way of the CodeMirror "shell" mode. (That mode seems mainly for Bash, even though it's called "shell".) It looks great!

Bash

@peterflynn
Owner

It looks great other than the syntax highlighting bug that appears twice in your screenshot, you mean :-D

(I still agree it's worth merging though)

@iwehrman iwehrman referenced this pull request in codemirror/CodeMirror
Closed

Fix shell hyphenation #1423

@iwehrman
Collaborator

OK, you got me! See codemirror/CodeMirror#1423.

@jasonsanjose
Owner

Looks good. Merging. Looks like your change to CodeMirror will be in our next merge (probably at the start of Sprint 24).

@jasonsanjose jasonsanjose merged commit 81d316a into master

1 check passed

Details default The Travis build passed
@jasonsanjose jasonsanjose deleted the iwehrman/bash-language-support branch
@jasonsanjose jasonsanjose referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/language/languages.json
View
9 src/language/languages.json
@@ -155,5 +155,12 @@
"name": "Haxe",
"mode": "haxe",
"fileExtensions": ["hx"]
+ },
+
+ "bash": {
+ "name": "Bash",
+ "mode": ["shell", "text/x-sh"],
+ "fileExtensions": ["sh"],
+ "lineComment": ["#"]
}
-}
+}
Something went wrong with that request. Please try again.