refactor(*): add uniform names for "meta-objects"
This commit is contained in:
parent
9d2587c79b
commit
6f78315aa4
5 changed files with 6 additions and 6 deletions
|
@ -117,7 +117,7 @@
|
|||
;; modifiers
|
||||
(,(rx (or "\[persistent\]" "\[notation\]" "\[visible\]" "\[instance\]" "\[class\]" "\[parsing-only\]"
|
||||
"\[coercion\]" "\[reducible\]" "\[off\]" "\[none\]" "\[on\]" "\[wf\]" "\[whnf\]"
|
||||
"\[decls\]" "\[strict\]" "\[local\]"))
|
||||
"\[decls\]" "\[strict\]" "\[local\]" "\[coercions\]" "\[classes\]" "\[notations\]" "\[tactic_hints\]" "\[reduce_hints\]"))
|
||||
. 'font-lock-doc-face)
|
||||
(,(rx "\[priority" (zero-or-more (not (any "\]"))) "\]") . font-lock-doc-face)
|
||||
;; tactics
|
||||
|
|
|
@ -411,10 +411,10 @@ cmd_table const & get_cmd_table(environment const & env) {
|
|||
}
|
||||
|
||||
void initialize_parser_config() {
|
||||
token_config::g_class_name = new name("notation");
|
||||
token_config::g_class_name = new name("notations");
|
||||
token_config::g_key = new std::string("tk");
|
||||
token_ext::initialize();
|
||||
notation_config::g_class_name = new name("notation");
|
||||
notation_config::g_class_name = new name("notations");
|
||||
notation_config::g_key = new std::string("nota");
|
||||
notation_ext::initialize();
|
||||
g_ext = new cmd_ext_reg();
|
||||
|
|
|
@ -57,7 +57,7 @@ template class scoped_ext<tactic_hint_config>;
|
|||
typedef scoped_ext<tactic_hint_config> tactic_hint_ext;
|
||||
|
||||
void initialize_tactic_hint() {
|
||||
g_class_name = new name("tactic_hint");
|
||||
g_class_name = new name("tactic_hints");
|
||||
g_key = new std::string("tachint");
|
||||
tactic_hint_ext::initialize();
|
||||
}
|
||||
|
|
|
@ -275,7 +275,7 @@ list<expr> get_local_instances(type_checker & tc, list<expr> const & ctx, name c
|
|||
|
||||
void initialize_class() {
|
||||
g_tmp_prefix = new name(name::mk_internal_unique_name());
|
||||
g_class_name = new name("class");
|
||||
g_class_name = new name("classes");
|
||||
g_key = new std::string("class");
|
||||
class_ext::initialize();
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ typedef scoped_ext<reducible_config> reducible_ext;
|
|||
static name * g_tmp_prefix = nullptr;
|
||||
|
||||
void initialize_reducible() {
|
||||
g_class_name = new name("reducible");
|
||||
g_class_name = new name("reduce_hints");
|
||||
g_key = new std::string("redu");
|
||||
g_tmp_prefix = new name(name::mk_internal_unique_name());
|
||||
reducible_ext::initialize();
|
||||
|
|
Loading…
Reference in a new issue