Skip to content

Commit 036375e

Browse files
committed
fix: incorrect delimiter capture in shell mode
1 parent fd0a6e7 commit 036375e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/shell/shell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ CodeMirror.defineMode('shell', function() {
7272
}
7373
if (ch == "<") {
7474
if (stream.match("<<")) return "operator"
75-
var heredoc = stream.match(/^<-?\s*['"]?([^'"]*)['"]?/)
75+
var heredoc = stream.match(/^<-?\s*['"]?([^\s'"]*)['"]?/)
7676
if (heredoc) {
7777
state.tokens.unshift(tokenHeredoc(heredoc[1]))
7878
return 'string-2'

0 commit comments

Comments
 (0)