8000 Fix namespaces support on keywords. · repos-javascript-compilers/wisp@0941a6b · GitHub
[go: up one dir, main page]

Skip to content

Commit 0941a6b

Browse files
committed
Fix namespaces support on keywords.
1 parent 14a6ef6 commit 0941a6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/escodegen/writer.wisp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@
184184
(defn write-constant
185185
[form]
186186
(cond (nil? form) (write-nil form)
187-
(keyword? form) (write-literal (name form))
187+
(keyword? form) (write-literal (if (namespace form)
188+
(str (namespace form) "/" (name form))
189+
(name form)))
188190
(number? form) (write-number (.valueOf form))
189191
(string? form) (write-string form)
190192
:else (write-literal form)))

0 commit comments

Comments
 (0)
0