equal
deleted
inserted
replaced
163 (case Properties.get props "NAME" of |
163 (case Properties.get props "NAME" of |
164 SOME name => if a = b then [name] else [] |
164 SOME name => if a = b then [name] else [] |
165 | NONE => []) |
165 | NONE => []) |
166 | parse_named _ _ = []; |
166 | parse_named _ _ = []; |
167 |
167 |
168 fun parse_dockables [XML.Elem (("DOCKABLES", _), body)] = maps (parse_named "DOCKABLE") body |
|
169 | parse_dockables _ = []; |
|
170 |
|
171 val jedit_actions = |
168 val jedit_actions = |
172 (case XML.parse (File.read (Path.explode "~~/src/Tools/jEdit/src/actions.xml")) of |
169 (case XML.parse (File.read (Path.explode "~~/src/Tools/jEdit/src/actions.xml")) of |
173 XML.Elem (("ACTIONS", _), body) => maps (parse_named "ACTION") body |
170 XML.Elem (("ACTIONS", _), body) => maps (parse_named "ACTION") body |
174 | _ => []); |
171 | _ => []); |
175 |
172 |
180 |
177 |
181 val all_actions = jedit_actions @ jedit_dockables; |
178 val all_actions = jedit_actions @ jedit_dockables; |
182 |
179 |
183 in |
180 in |
184 |
181 |
185 fun is_action (name, pos) = member (op =) all_actions name; |
182 val is_action = member (op =) all_actions; |
186 |
183 |
187 end; |
184 end; |
188 |
185 |
189 |
186 |
190 (* Isabelle/Isar entities (with index) *) |
187 (* Isabelle/Isar entities (with index) *) |
269 entity_antiqs no_check "isatt" "system option" #> |
266 entity_antiqs no_check "isatt" "system option" #> |
270 entity_antiqs no_check "" "inference" #> |
267 entity_antiqs no_check "" "inference" #> |
271 entity_antiqs no_check "isatt" "executable" #> |
268 entity_antiqs no_check "isatt" "executable" #> |
272 entity_antiqs (K check_tool) "isatool" "tool" #> |
269 entity_antiqs (K check_tool) "isatool" "tool" #> |
273 entity_antiqs (can o ML_Context.check_antiq) "" Markup.ML_antiquotationN #> |
270 entity_antiqs (can o ML_Context.check_antiq) "" Markup.ML_antiquotationN #> |
274 entity_antiqs (K is_action) "isatt" "action"); |
271 entity_antiqs (K (is_action o #1)) "isatt" "action"); |
275 |
272 |
276 end; |
273 end; |
277 |
274 |
278 end; |
275 end; |