change DSL: assume nkInfix nodes imply a void context
This commit is contained in:
parent
775a4a1289
commit
db0bba2c3f
2 changed files with 3 additions and 3 deletions
|
|
@ -108,10 +108,10 @@ template observe(s: cstring): RString =
|
|||
proc renderUser(u: User): VNode {.track.} =
|
||||
result = buildHtml(tdiv):
|
||||
if u.selected:
|
||||
!(firstname <- u.firstname)
|
||||
firstname <- u.firstname
|
||||
tdiv:
|
||||
textInput firstname, focusA
|
||||
!(lastname <- u.lastname)
|
||||
lastname <- u.lastname
|
||||
tdiv:
|
||||
textInput lastname, focusB
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ proc tcall2(n, tmpContext: NimNode): NimNode =
|
|||
result = n
|
||||
of nnkVarSection, nnkLetSection, nnkConstSection:
|
||||
result = n
|
||||
of nnkCallKinds:
|
||||
of nnkCallKinds - {nnkInfix}:
|
||||
let op = getName(n[0])
|
||||
let ck = isComponent(op)
|
||||
if ck != ComponentKind.None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue