浏览代码

fix single underscore

Innocenty Enikeev 8 年之前
父节点
当前提交
6c5017f1aa
共有 1 个文件被更改,包括 9 次插入6 次删除
  1. 9 6
      tl-rpc.lisp

+ 9 - 6
tl-rpc.lisp

@@ -39,12 +39,15 @@
 
 (defun tokenize (input)
   (remove :whitespace
-          (parse-string*
-           (many? (choices (<token>)
-                           (<punctuation>)
-                           (chook? :whitespace
-                                   (choices (whitespace?) "---" (<sl-comment>) (<ml-comment>)))))
-           input)))
+          (substitute #\_ "_"
+                      (parse-string*
+                       (many? (choices (<token>)
+                                       (<punctuation>)
+                                       (chook? :whitespace
+                                               (choices (whitespace?) "---"
+                                                        (<sl-comment>) (<ml-comment>)))))
+                       input)
+                      :test #'equal)))
 
 ;; Actual parsers
 (defun <hex-digit> ()