Skip to content

Commit fae14ba

Browse files
authored
fix dotted defines deleting the dot (#1115)
refs #1105 (comment), apparently `-d:abcdef` makes `defined(abc.def)` true when it should be `-d:abc.def`
1 parent 76505f0 commit fae14ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nimony/sem.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5759,6 +5759,7 @@ proc getDottedIdent(n: var Cursor): string =
57595759
if s == StrId(0) or result == "":
57605760
result = ""
57615761
else:
5762+
result.add(".")
57625763
result.add(pool.strings[s])
57635764
skipParRi n
57645765
else:

0 commit comments

Comments
 (0)