From 99523f654ffc5d183de05c56965cef5ed0c1cb4e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 5 Jun 2021 10:02:44 -0700 Subject: [PATCH] . --- shell/gap-buffer.mu | 14 ++++++++++++-- 1 file 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