diff --git a/src/components/codemirrors/GrewCodeMirror.vue b/src/components/codemirrors/GrewCodeMirror.vue index 0d5241dc..aaf6266c 100644 --- a/src/components/codemirrors/GrewCodeMirror.vue +++ b/src/components/codemirrors/GrewCodeMirror.vue @@ -34,8 +34,12 @@ CodeMirror.defineMode('grew', () => { } } if (ch === '-') { - const nextCh = stream.next(); - if (nextCh === '[' || nextCh === '>') { + const next_ch = stream.next(); + if (next_ch === '[') { + return 'quote'; + } + if (next_ch === ">") { + stream.eat(">"); return 'quote'; } }