Skip to content

Commit

Permalink
Minor fix to doc/astspec.txt and cleanup diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Clyybber committed Mar 10, 2024
1 parent 8da2e92 commit ae1035c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/astspec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contains:
NimNode = ref NimNodeObj
NimNodeObj = object
case kind: NimNodeKind ## the node's kind
of nnkEmpty, nnkNilLit:
of nnkError, nnkEmpty, nnkNilLit:
discard ## node contains no additional fields
of nnkCharLit..nnkUInt64Lit:
intVal: BiggestInt ## the int literal
Expand Down
3 changes: 1 addition & 2 deletions lib/core/macros.nim
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ template skipEnumValue(define: untyped, predecessor: untyped; gap = 1): untyped
type
NimNodeKind* = enum
nnkError, ## erroneous AST node
nnkEmpty,
nnkIdent, nnkSym,
nnkEmpty, nnkIdent, nnkSym,
nnkType, nnkCharLit, nnkIntLit, nnkInt8Lit,
nnkInt16Lit, nnkInt32Lit, nnkInt64Lit, nnkUIntLit, nnkUInt8Lit,
nnkUInt16Lit, nnkUInt32Lit, nnkUInt64Lit, nnkFloatLit,
Expand Down
2 changes: 1 addition & 1 deletion tests/lang_stmts/defer/tdefer_malformed_many_children.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ discard """
description: "`defer` must have exactly one child node (macro input)."
errormsg: "illformed AST"
file: "macros.nim"
line: 619
line: 618
"""

import std/macros
Expand Down

0 comments on commit ae1035c

Please sign in to comment.