diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/gap-buffer.mu | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/shell/gap-buffer.mu b/shell/gap-buffer.mu index 045b1c1e..d2b5ffea 100644 --- a/shell/gap-buffer.mu +++ b/shell/gap-buffer.mu @@ -342,6 +342,16 @@ fn is-ascii-word-grapheme? g: grapheme -> _/eax: boolean { break-if-!= return 1/true } + compare g, 0x30/0 + { + break-if->= + return 0/false + } + compare g, 0x39/9 + { + break-if-> + return 1/true + } compare g, 0x3f/? { break-if-!= @@ -354,7 +364,7 @@ fn is-ascii-word-grapheme? g: grapheme -> _/eax: boolean { } compare g, 0x5a/Z { - break-if->= + break-if-> return 1/true } compare g, 0x5f/_ @@ -369,7 +379,7 @@ fn is-ascii-word-grapheme? g: grapheme -> _/eax: boolean { } compare g, 0x7a/z { - break-if->= + break-if-> return 1/true } return 0/false |