nph icon indicating copy to clipboard operation
nph copied to clipboard

format error

Open Graveflo opened this issue 8 months ago • 0 comments

x.add (func1 do: x)[0]
--- Input ---

x.add (func1 do: x)[0]

--- Formatted ---
x.add func1 do:
  x[0]

--- PRE ---
kind: "nkBracketExpr"
sons:
  - kind: "nkCall"
    sons:
      - kind: "nkIdent"
        ident: "func1"
      - kind: "nkStmtList"
        sons:
          - kind: "nkIdent"
            ident: "x"
  - kind: "nkIntLit"
    intVal: 0
--- POST ---
kind: "nkCall"
sons:
  - kind: "nkIdent"
    ident: "func1"
  - kind: "nkStmtList"
    sons:
      - kind: "nkBracketExpr"
        sons:
          - kind: "nkIdent"
            ident: "x"
          - kind: "nkIntLit"
            intVal: 0

Graveflo avatar Apr 30 '25 12:04 Graveflo