Skip to content

Commit

Permalink
Fix prev
Browse files Browse the repository at this point in the history
  • Loading branch information
bguil committed Jul 26, 2024
1 parent 51faed5 commit 7a77d83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/codemirrors/GrewCodeMirror.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ CodeMirror.defineMode('grew', () => {
pattern: 'builtin',
commands: 'builtin',
without: 'builtin',
with: 'builtin',
rule: 'builtin',
};
function tokenBase(stream: any, state: any) {
Expand Down Expand Up @@ -54,7 +55,7 @@ CodeMirror.defineMode('grew', () => {
return 'operator';
}
stream.eatWhile(/\w/);
const cur = stream.current() as 'global' | 'pattern' | 'commands' | 'without' | 'with';
const cur = stream.current() as 'global' | 'pattern' | 'commands' | 'without' | 'with' ;
return words[cur] || 'variable';
}
Expand Down

0 comments on commit 7a77d83

Please sign in to comment.