update plugin files
This commit is contained in:
3
plugins/codemirror/mode/shell/shell.js
vendored
3
plugins/codemirror/mode/shell/shell.js
vendored
@@ -71,7 +71,8 @@ CodeMirror.defineMode('shell', function() {
|
||||
return 'attribute';
|
||||
}
|
||||
if (ch == "<") {
|
||||
var heredoc = stream.match(/^<-?\s+(.*)/)
|
||||
if (stream.match("<<")) return "operator"
|
||||
var heredoc = stream.match(/^<-?\s*['"]?([^'"]*)['"]?/)
|
||||
if (heredoc) {
|
||||
state.tokens.unshift(tokenHeredoc(heredoc[1]))
|
||||
return 'string-2'
|
||||
|
||||
Reference in New Issue
Block a user