: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
var mode = CodeMirror.getMode({}, "shell");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
"text[def ${a}${b}]text");
"[string 'text $var text']");
MT("singleQuotedVarBraces",
"[string 'text ${var} text']");
'[string "text ][def $var][string text"]');
MT("doubleQuotedVarBraces",
'[string "text][def ${var}][string text"]');
MT("doubleQuotedVarPunct",
'[string "text ][def $@][string text"]');
'[string "][def $a$b][string "]');
MT("doubleQuotedVarBracesVarBraces",
'[string "][def ${a}${b}][string "]');
"outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)");
"[builtin echo] [quote jQuery(whoami)] s log, stardate [quote `date`].");
MT("doubleQuotedSubshell",
"[builtin echo] [string \"][quote jQuery(whoami)][string 's log, stardate `date`.\"]");
"text [comment # Blurb]");
"[number 0] [number 1] [number 2]");
"[keyword while] [atom true]; [keyword do]",
" [builtin sleep] [number 3]",
"[builtin ls] [attribute -l] [attribute --human-readable]");
"[def var][operator =]value");