[climacs-cvs] CVS update: climacs/lisp-syntax.lisp

Dave Murray dmurray at common-lisp.net
Mon Jul 25 11:04:31 UTC 2005


Update of /project/climacs/cvsroot/climacs
In directory common-lisp.net:/tmp/cvs-serv23335

Modified Files:
	lisp-syntax.lisp 
Log Message:
Fixed multiple escape tokenising and interim indent
Date: Mon Jul 25 13:04:30 2005
Author: dmurray

Index: climacs/lisp-syntax.lisp
diff -u climacs/lisp-syntax.lisp:1.15 climacs/lisp-syntax.lisp:1.16
--- climacs/lisp-syntax.lisp:1.15	Sun Jul 24 10:06:50 2005
+++ climacs/lisp-syntax.lisp	Mon Jul 25 13:04:30 2005
@@ -394,7 +394,7 @@
       (tagbody
        start
 	 (when (end-of-buffer-p scan)
-	   (return-from lex (make-instance 'error-lexeme)))
+	   (return-from lex (make-instance 'text-lexeme)))
 	 (when (eql (object-after scan) #\\)
 	   (fo)
 	   (when (end-of-buffer-p scan)
@@ -405,9 +405,13 @@
 	   (incf bars-seen)
 	   (fo)
 	   (go start))
-	 (unless (whitespacep (object-after scan))
-	   (fo)
-	   (go start))	 
+         (if (evenp bars-seen)
+             (unless (whitespacep (object-after scan))
+               (fo)
+               (go start))
+             (when (constituentp (object-after scan))
+               (fo)
+               (go start)))
 	 (return-from lex 
 	   (if (oddp bars-seen)
 	       (make-instance 'multiple-escape-end-lexeme)
@@ -1456,6 +1460,9 @@
 
 (defmethod indent-form ((syntax lisp-syntax) (tree string-form) path)
   (values tree 1))
+
+(defmethod indent-form ((syntax lisp-syntax) (tree token-form) path)
+  (values tree 0))
 
 (defmethod indent-binding ((syntax lisp-syntax) tree path)
   (if (null (cdr path))




More information about the Climacs-cvs mailing list