From 9cb56c2775737ea894a608d88b98f8c71612dfb9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Mar 2025 07:11:21 +0530 Subject: [PATCH] Run gofmt on grapheme-segmentation-data --- gen/wcwidth.py | 1 + tools/wcswidth/grapheme-segmentation-data.go | 81 ++++++++++---------- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/gen/wcwidth.py b/gen/wcwidth.py index b80b621e2..c97ec6789 100755 --- a/gen/wcwidth.py +++ b/gen/wcwidth.py @@ -482,6 +482,7 @@ def gen_grapheme_segmentation() -> None: gp('\treturn None') # } p('}') gp('}') + subprocess.check_call(['gofmt', '-w', '-s', gof.name]) def gen_wcwidth() -> None: diff --git a/tools/wcswidth/grapheme-segmentation-data.go b/tools/wcswidth/grapheme-segmentation-data.go index 8eb468742..870562b67 100644 --- a/tools/wcswidth/grapheme-segmentation-data.go +++ b/tools/wcswidth/grapheme-segmentation-data.go @@ -1,65 +1,64 @@ package wcswidth - type GraphemeBreakProperty uint8 const ( -None = iota - Prepend - CR - LF - Control - Extend - Regional_Indicator - SpacingMark - L - V - T - LV - LVT - ZWJ + None = iota + Prepend + CR + LF + Control + Extend + Regional_Indicator + SpacingMark + L + V + T + LV + LVT + ZWJ ) func GraphemeBreakPropertyFor(code rune) GraphemeBreakProperty { switch code { - // Prepend (28 codepoints {{{ - // }}} + // Prepend (28 codepoints {{{ + // }}} - // CR (1 codepoints {{{ - // }}} + // CR (1 codepoints {{{ + // }}} - // LF (1 codepoints {{{ - // }}} + // LF (1 codepoints {{{ + // }}} - // Control (3893 codepoints {{{ - // }}} + // Control (3893 codepoints {{{ + // }}} - // Extend (2198 codepoints {{{ - // }}} + // Extend (2198 codepoints {{{ + // }}} - // Regional_Indicator (26 codepoints {{{ - // }}} + // Regional_Indicator (26 codepoints {{{ + // }}} - // SpacingMark (378 codepoints {{{ - // }}} + // SpacingMark (378 codepoints {{{ + // }}} - // L (125 codepoints {{{ - // }}} + // L (125 codepoints {{{ + // }}} - // V (100 codepoints {{{ - // }}} + // V (100 codepoints {{{ + // }}} - // T (137 codepoints {{{ - // }}} + // T (137 codepoints {{{ + // }}} - // LV (399 codepoints {{{ - // }}} + // LV (399 codepoints {{{ + // }}} - // LVT (10773 codepoints {{{ - // }}} + // LVT (10773 codepoints {{{ + // }}} - // ZWJ (1 codepoints {{{ - // }}} + // ZWJ (1 codepoints {{{ + // }}} } return None