Browse Source

fix single underscore

Innocenty Enikeev 8 years ago
parent
commit
6c5017f1aa
1 changed files with 9 additions and 6 deletions
  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> ()