Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix shell hyphenation #1423

Closed
wants to merge 1 commit into from

2 participants

@iwehrman

Prevent the latter part of hyphenated shell terms from being identified as attributes. See, e.g., adobe/brackets#3348. (Notice "cef-clean" and "brackets-shell".) With the fix it looks like this:

Brackets

@iwehrman iwehrman referenced this pull request in adobe/brackets
Merged

Bash language support #3348

@marijnh
Owner

Thanks. Merged.

@marijnh marijnh closed this
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 1 addition and 1 deletion.
  1. +1 −1  mode/shell/shell.js
View
2  mode/shell/shell.js
@@ -57,7 +57,7 @@ CodeMirror.defineMode('shell', function() {
return 'number';
}
}
- stream.eatWhile(/\w/);
+ stream.eatWhile(/[\w-]/);
var cur = stream.current();
if (stream.peek() === '=' && /\w+/.test(cur)) return 'def';
return words.hasOwnProperty(cur) ? words[cur] : null;
Something went wrong with that request. Please try again.