mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Tweak wuffsfmt's struct field type indentation
This commit is contained in:
1 parent
33eae7ae40
commit
72f99800ca
2 files changed
+8
-3
No files matched your search
@@ -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)))
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
|
||||
Reference in new issue
Block a user