summaryrefslogtreecommitdiff
path: root/pos_scanner.go
diff options
context:
space:
mode:
authorMartin Atkins <mart@degeneration.co.uk>2023-08-30 09:48:40 -0700
committerMartin Atkins <mart@degeneration.co.uk>2023-08-30 09:48:40 -0700
commitedfd5c9aa70c14afad7416102d6d14a2733ed972 (patch)
tree9a78370c47608919129093476559576ded3dfddf /pos_scanner.go
parentfef040699b5f60c45800f0a019c1d4cbee493c04 (diff)
Use Unicode 15 tables for unicode normalization and segmentation
To match with the Unicode support in Go 1.21, we'll now use the Unicode 15 tables when we're normalizing Unicode strings and when counting user-perceived characters ("grapheme clusters") for source position purposes.
Diffstat (limited to 'pos_scanner.go')
-rw-r--r--pos_scanner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pos_scanner.go b/pos_scanner.go
index cff5539..2232f37 100644
--- a/pos_scanner.go
+++ b/pos_scanner.go
@@ -7,7 +7,7 @@ import (
"bufio"
"bytes"
- "github.com/apparentlymart/go-textseg/v13/textseg"
+ "github.com/apparentlymart/go-textseg/v15/textseg"
)
// RangeScanner is a helper that will scan over a buffer using a bufio.SplitFunc