]> Cypherpunks.ru repositories - gostls13.git/commit
unicode: improve generated comments for categories
authorWil Selwood <wselwood@gmail.com>
Mon, 26 Nov 2018 15:11:45 +0000 (15:11 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 28 Nov 2018 03:12:48 +0000 (03:12 +0000)
commitd704b5c956f431e618904d15643e9fee97840253
tree4f5e8e8d4e5c2db4f762c34b91af734e0e08566b
parent6bf531384dd233d7620181d5086a52571d64c5c0
unicode: improve generated comments for categories

The comments on the category range tables in the unicode package are fairly
redundent and require an external source to translate into human readable
category names.

This adds a look up table with the category descriptions and uses it if
available when generating the comments for the range tables.

Fixes #28954

Change-Id: I853e2d270def6492c2c1dd2ad0ec761a74c04e5d
Reviewed-on: https://go-review.googlesource.com/c/151297
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
src/unicode/maketables.go
src/unicode/tables.go