Skip to content

Commit

Permalink
syntax highlight for ->>
Browse files Browse the repository at this point in the history
  • Loading branch information
bguil committed Aug 1, 2024
1 parent 065d134 commit fb0645a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/codemirrors/GrewCodeMirror.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
Expand Down

0 comments on commit fb0645a

Please sign in to comment.