From 2eaeb36cb31876de6a6a52e0cd4f16798713f345 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 22 Feb 2021 16:31:36 -0800 Subject: 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. --- pos_scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pos_scanner.go') 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 -- cgit v1.2.3