Quellcode durchsuchen

fix single underscore

Innocenty Enikeev vor 8 Jahren
Ursprung
Commit
6c5017f1aa
1 geänderte Dateien mit 9 neuen und 6 gelöschten Zeilen
  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> ()