authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-10-04 13:55:26 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-10-04 13:55:26 -07:00
logb7caf202d5215d02db1e161894ad02a95cbd309a
treef615b62cd488d514535b155863c0d5c675436ba8
parent8206949a1005042dac53c5a4f37d09f736c4d60c

PropertyValueAliases: remove garbage from after comment


2 files changed, 2 insertions(+), 69 deletions(-)

scripts/PropertyValueAliases.zig+2-1
......@@ -20,7 +20,8 @@ pub usingnamespace common.Main(struct {
2020
2121 pub fn exec(alloc: std.mem.Allocator, line: []const u8, writer: anytype) !void {
2222 _ = alloc;
23 var it = std.mem.tokenize(u8, line, "; ");
23 const end = std.mem.indexOfScalar(u8, line, '#') orelse line.len;
24 var it = std.mem.tokenize(u8, line[0..end], "; ");
2425
2526 var vals = [_][]const u8{
2627 it.next().?,
src/property_value_aliases.zig-68
......@@ -440,8 +440,6 @@ pub const data = [_][3][]const u8{
440440 .{ "ccc", "CCC130", "CCC130" },
441441 .{ "ccc", "CCC132", "CCC132" },
442442 .{ "ccc", "CCC133", "CCC133" },
443 .{ "ccc", "#", "CCC133" },
444 .{ "ccc", "RESERVED", "CCC133" },
445443 .{ "ccc", "ATBL", "Attached_Below_Left" },
446444 .{ "ccc", "ATB", "Attached_Below" },
447445 .{ "ccc", "ATA", "Attached_Above" },
......@@ -650,16 +648,6 @@ pub const data = [_][3][]const u8{
650648 .{ "Comp_Ex", "T", "Yes" },
651649 .{ "Comp_Ex", "True", "Yes" },
652650 .{ "gc", "C", "Other" },
653 .{ "gc", "#", "Other" },
654 .{ "gc", "Cc", "Other" },
655 .{ "gc", "|", "Other" },
656 .{ "gc", "Cf", "Other" },
657 .{ "gc", "|", "Other" },
658 .{ "gc", "Cn", "Other" },
659 .{ "gc", "|", "Other" },
660 .{ "gc", "Co", "Other" },
661 .{ "gc", "|", "Other" },
662 .{ "gc", "Cs", "Other" },
663651 .{ "gc", "Cc", "Control" },
664652 .{ "gc", "cntrl", "Control" },
665653 .{ "gc", "Cf", "Format" },
......@@ -667,23 +655,7 @@ pub const data = [_][3][]const u8{
667655 .{ "gc", "Co", "Private_Use" },
668656 .{ "gc", "Cs", "Surrogate" },
669657 .{ "gc", "L", "Letter" },
670 .{ "gc", "#", "Letter" },
671 .{ "gc", "Ll", "Letter" },
672 .{ "gc", "|", "Letter" },
673 .{ "gc", "Lm", "Letter" },
674 .{ "gc", "|", "Letter" },
675 .{ "gc", "Lo", "Letter" },
676 .{ "gc", "|", "Letter" },
677 .{ "gc", "Lt", "Letter" },
678 .{ "gc", "|", "Letter" },
679 .{ "gc", "Lu", "Letter" },
680658 .{ "gc", "LC", "Cased_Letter" },
681 .{ "gc", "#", "Cased_Letter" },
682 .{ "gc", "Ll", "Cased_Letter" },
683 .{ "gc", "|", "Cased_Letter" },
684 .{ "gc", "Lt", "Cased_Letter" },
685 .{ "gc", "|", "Cased_Letter" },
686 .{ "gc", "Lu", "Cased_Letter" },
687659 .{ "gc", "Ll", "Lowercase_Letter" },
688660 .{ "gc", "Lm", "Modifier_Letter" },
689661 .{ "gc", "Lo", "Other_Letter" },
......@@ -691,42 +663,16 @@ pub const data = [_][3][]const u8{
691663 .{ "gc", "Lu", "Uppercase_Letter" },
692664 .{ "gc", "M", "Mark" },
693665 .{ "gc", "Combining_Mark", "Mark" },
694 .{ "gc", "#", "Mark" },
695 .{ "gc", "Mc", "Mark" },
696 .{ "gc", "|", "Mark" },
697 .{ "gc", "Me", "Mark" },
698 .{ "gc", "|", "Mark" },
699 .{ "gc", "Mn", "Mark" },
700666 .{ "gc", "Mc", "Spacing_Mark" },
701667 .{ "gc", "Me", "Enclosing_Mark" },
702668 .{ "gc", "Mn", "Nonspacing_Mark" },
703669 .{ "gc", "N", "Number" },
704 .{ "gc", "#", "Number" },
705 .{ "gc", "Nd", "Number" },
706 .{ "gc", "|", "Number" },
707 .{ "gc", "Nl", "Number" },
708 .{ "gc", "|", "Number" },
709 .{ "gc", "No", "Number" },
710670 .{ "gc", "Nd", "Decimal_Number" },
711671 .{ "gc", "digit", "Decimal_Number" },
712672 .{ "gc", "Nl", "Letter_Number" },
713673 .{ "gc", "No", "Other_Number" },
714674 .{ "gc", "P", "Punctuation" },
715675 .{ "gc", "punct", "Punctuation" },
716 .{ "gc", "#", "Punctuation" },
717 .{ "gc", "Pc", "Punctuation" },
718 .{ "gc", "|", "Punctuation" },
719 .{ "gc", "Pd", "Punctuation" },
720 .{ "gc", "|", "Punctuation" },
721 .{ "gc", "Pe", "Punctuation" },
722 .{ "gc", "|", "Punctuation" },
723 .{ "gc", "Pf", "Punctuation" },
724 .{ "gc", "|", "Punctuation" },
725 .{ "gc", "Pi", "Punctuation" },
726 .{ "gc", "|", "Punctuation" },
727 .{ "gc", "Po", "Punctuation" },
728 .{ "gc", "|", "Punctuation" },
729 .{ "gc", "Ps", "Punctuation" },
730676 .{ "gc", "Pc", "Connector_Punctuation" },
731677 .{ "gc", "Pd", "Dash_Punctuation" },
732678 .{ "gc", "Pe", "Close_Punctuation" },
......@@ -735,25 +681,11 @@ pub const data = [_][3][]const u8{
735681 .{ "gc", "Po", "Other_Punctuation" },
736682 .{ "gc", "Ps", "Open_Punctuation" },
737683 .{ "gc", "S", "Symbol" },
738 .{ "gc", "#", "Symbol" },
739 .{ "gc", "Sc", "Symbol" },
740 .{ "gc", "|", "Symbol" },
741 .{ "gc", "Sk", "Symbol" },
742 .{ "gc", "|", "Symbol" },
743 .{ "gc", "Sm", "Symbol" },
744 .{ "gc", "|", "Symbol" },
745 .{ "gc", "So", "Symbol" },
746684 .{ "gc", "Sc", "Currency_Symbol" },
747685 .{ "gc", "Sk", "Modifier_Symbol" },
748686 .{ "gc", "Sm", "Math_Symbol" },
749687 .{ "gc", "So", "Other_Symbol" },
750688 .{ "gc", "Z", "Separator" },
751 .{ "gc", "#", "Separator" },
752 .{ "gc", "Zl", "Separator" },
753 .{ "gc", "|", "Separator" },
754 .{ "gc", "Zp", "Separator" },
755 .{ "gc", "|", "Separator" },
756 .{ "gc", "Zs", "Separator" },
757689 .{ "gc", "Zl", "Line_Separator" },
758690 .{ "gc", "Zp", "Paragraph_Separator" },
759691 .{ "gc", "Zs", "Space_Separator" },