fix highlighting of indented bash heredocs
This commit is contained in:
parent
3e32d5bf7e
commit
42b43b1fbe
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ var ShHighlightRules = function() {
|
||||||
token : "keyword.operator"
|
token : "keyword.operator"
|
||||||
}, {
|
}, {
|
||||||
stateName: "heredoc",
|
stateName: "heredoc",
|
||||||
regex : "(<<)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",
|
regex : "(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",
|
||||||
onMatch : function(value, currentState, stack) {
|
onMatch : function(value, currentState, stack) {
|
||||||
var next = value[2] == '-' ? "indentedHeredoc" : "heredoc";
|
var next = value[2] == '-' ? "indentedHeredoc" : "heredoc";
|
||||||
var tokens = value.split(this.splitRegex);
|
var tokens = value.split(this.splitRegex);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue