Tweak wuffsfmt's struct field type indentation

This commit is contained in:
Nigel Tao committed 2019-02-16 12:43:04 +11:00
1 parent 33eae7ae40
commit 72f99800ca
2 files changed
+8 -3

No files matched your search

+6 -1
View File
@@ -262,7 +262,12 @@ func measureVarNameLength(tm *t.Map, lineTokens []t.Token, remaining []t.Token)
line := lineTokens[0].Line
length := len(tm.ByID(lineTokens[x].ID))
for (len(remaining) > x) && ((x == 0) || (remaining[0].ID == t.IDVar)) && (remaining[0].Line == line+1) {
for (len(remaining) > x) &&
((x == 0) || (remaining[0].ID == t.IDVar)) &&
(remaining[0].Line == line+1) &&
(remaining[x].Line == line+1) &&
(remaining[x].ID.IsIdent(tm)) {
line = remaining[0].Line
length = max(length, len(tm.ByID(remaining[x].ID)))
+2 -2
View File
@@ -116,8 +116,8 @@ pub struct decoder?(
compressed_ri base.u64,
compressed_wi base.u64,
swizzler base.pixel_swizzler,
util base.utility,
swizzler base.pixel_swizzler,
util base.utility,
)(
compressed array[4096] base.u8,