mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-24 14:12:02 +00:00
Run gofmt on grapheme-segmentation-data
This commit is contained in:
parent
824acf2282
commit
9cb56c2775
2 changed files with 41 additions and 41 deletions
|
|
@ -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:
|
||||
|
|
|
|||
81
tools/wcswidth/grapheme-segmentation-data.go
generated
81
tools/wcswidth/grapheme-segmentation-data.go
generated
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue