diff options
| author | Martin Atkins <mart@degeneration.co.uk> | 2021-02-22 16:31:36 -0800 |
|---|---|---|
| committer | Martin Atkins <mart@degeneration.co.uk> | 2021-02-23 09:05:19 -0800 |
| commit | 2eaeb36cb31876de6a6a52e0cd4f16798713f345 (patch) | |
| tree | 0cb55365b9f72f8751a5f4103eca6d93e6585727 /pos_scanner.go | |
| parent | 2520246c49a7b0cc55449d9b7621335e87bc3315 (diff) | |
Use Unicode 13 text segmentation rules
HCL uses a number of upstream libraries that implement algorithms defined
in Unicode. This commit is updating those libraries all to versions that
have Unicode 13 support.
The main implication of this for HCL directly is that when it returns
column numbers in source locations it will count characters using the
Unicode 13 definition of "character", which includes various new
multi-codeunit characters added in Unicode 13.
These new version dependencies will also make Unicode 13 support available
for other functionality that HCL callers might use, such as the stdlib
functions in upstream cty, even though HCL itself does not directly use
those.
Diffstat (limited to 'pos_scanner.go')
| -rw-r--r-- | pos_scanner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pos_scanner.go b/pos_scanner.go index ef0aa10..49077fc 100644 --- a/pos_scanner.go +++ b/pos_scanner.go @@ -4,7 +4,7 @@ import ( "bufio" "bytes" - "github.com/apparentlymart/go-textseg/v12/textseg" + "github.com/apparentlymart/go-textseg/v13/textseg" ) // RangeScanner is a helper that will scan over a buffer using a bufio.SplitFunc |
