use Syntax.is_ascii_identifier;
authorwenzelm
Mon, 26 Apr 2004 15:01:05 +0200
changeset 14680 6029e76841fd
parent 14679 6ed90bd68eda
child 14681 16fcef3a3174
use Syntax.is_ascii_identifier;
src/Pure/Thy/latex.ML
src/Pure/Thy/thm_database.ML
--- a/src/Pure/Thy/latex.ML	Mon Apr 26 15:00:20 2004 +0200
+++ b/src/Pure/Thy/latex.ML	Mon Apr 26 15:01:05 2004 +0200
@@ -100,7 +100,7 @@
         if invisible_token tok then ""
         else if T.is_kind T.Command tok then
           "\\isacommand{" ^ output_syms s ^ "}"
-        else if T.is_kind T.Keyword tok andalso Syntax.is_identifier s then
+        else if T.is_kind T.Keyword tok andalso Syntax.is_ascii_identifier s then
           "\\isakeyword{" ^ output_syms s ^ "}"
         else if T.is_kind T.String tok then output_syms (Library.quote s)
         else if T.is_kind T.Verbatim tok then output_syms (enclose "{*" "*}" s)
--- a/src/Pure/Thy/thm_database.ML	Mon Apr 26 15:00:20 2004 +0200
+++ b/src/Pure/Thy/thm_database.ML	Mon Apr 26 15:01:05 2004 +0200
@@ -18,8 +18,8 @@
   val qed_thms: thm list ref
   val ml_store_thm: string * thm -> unit
   val ml_store_thms: string * thm list -> unit
+  val ml_reserved: string list
   val is_ml_identifier: string -> bool
-  val ml_reserved: string list
 end;
 
 structure ThmDatabase: THM_DATABASE =
@@ -51,7 +51,7 @@
   "struct", "structure", "where"];
 
 fun is_ml_identifier name =
-  Syntax.is_identifier name andalso not (name mem ml_reserved);
+  not (name mem_string ml_reserved) andalso Syntax.is_ascii_identifier name;
 
 fun warn_ml name =
   if is_ml_identifier name then false