src/Doc/antiquote_setup.ML
changeset 61621 70b8085f51b4
parent 61620 01db1bed4487
child 61877 276ad4354069
equal deleted inserted replaced
61620:01db1bed4487 61621:70b8085f51b4
   163   in
   163   in
   164     (case get_first tool (Path.split (getenv "ISABELLE_TOOLS")) of
   164     (case get_first tool (Path.split (getenv "ISABELLE_TOOLS")) of
   165       NONE => false
   165       NONE => false
   166     | SOME path => (Context_Position.report ctxt pos (Markup.path (Path.implode path)); true))
   166     | SOME path => (Context_Position.report ctxt pos (Markup.path (Path.implode path)); true))
   167   end;
   167   end;
   168 
       
   169 fun check_action _ = can JEdit.check_action;
       
   170 
   168 
   171 val arg = enclose "{" "}" o clean_string;
   169 val arg = enclose "{" "}" o clean_string;
   172 
   170 
   173 fun entity check markup binding index =
   171 fun entity check markup binding index =
   174   Thy_Output.antiquotation
   172   Thy_Output.antiquotation
   220     entity_antiqs check_system_option "isasystem" @{binding system_option} #>
   218     entity_antiqs check_system_option "isasystem" @{binding system_option} #>
   221     entity_antiqs no_check "" @{binding inference} #>
   219     entity_antiqs no_check "" @{binding inference} #>
   222     entity_antiqs no_check "isasystem" @{binding executable} #>
   220     entity_antiqs no_check "isasystem" @{binding executable} #>
   223     entity_antiqs check_tool "isatool" @{binding tool} #>
   221     entity_antiqs check_tool "isatool" @{binding tool} #>
   224     entity_antiqs ML_Context.check_antiquotation "" @{binding ML_antiquotation} #>
   222     entity_antiqs ML_Context.check_antiquotation "" @{binding ML_antiquotation} #>
   225     entity_antiqs check_action "isasystem" @{binding action});
   223     entity_antiqs (K JEdit.check_action) "isasystem" @{binding action});
   226 
   224 
   227 end;
   225 end;
   228 
   226 
   229 end;
   227 end;