Eta-expanded function scan_comment to make SmlNJ happy.
authorberghofe
Tue, 11 May 2004 14:00:02 +0200
changeset 14737 77ea79aed99d
parent 14736 7104394df99a
child 14738 83f1a514dcb4
Eta-expanded function scan_comment to make SmlNJ happy.
src/Pure/Syntax/lexicon.ML
--- a/src/Pure/Syntax/lexicon.ML	Tue May 11 10:49:58 2004 +0200
+++ b/src/Pure/Syntax/lexicon.ML	Tue May 11 14:00:02 2004 +0200
@@ -270,10 +270,10 @@
   Scan.lift ($$ "*" --| Scan.ahead (Scan.one (not_equal ")"))) ||
   Scan.lift (Scan.one (not_equal "*" andf Symbol.not_eof));
 
-val scan_comment =
-  $$ "(" -- $$ "*" -- !! (lex_err "missing end of comment" "(*")
+fun scan_comment xs =
+  ($$ "(" -- $$ "*" -- !! (lex_err "missing end of comment" "(*")
     (Scan.pass 0 (Scan.repeat scan_cmt) -- $$ "*" -- $$ ")")
-  >> K None;
+   >> K None) xs;