mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Tweak wuffsfmt's struct field type indentation
This commit is contained in:
1 parent
33eae7ae40
commit
72f99800ca
1 file changed
+6
-1
@@ -262,7 +262,12 @@ func measureVarNameLength(tm *t.Map, lineTokens []t.Token, remaining []t.Token)
|
|||||||
|
|
||||||
line := lineTokens[0].Line
|
line := lineTokens[0].Line
|
||||||
length := len(tm.ByID(lineTokens[x].ID))
|
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
|
line = remaining[0].Line
|
||||||
length = max(length, len(tm.ByID(remaining[x].ID)))
|
length = max(length, len(tm.ByID(remaining[x].ID)))
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user