diff options
| author | Tej Chajed | 2020-03-30 09:00:26 -0500 |
|---|---|---|
| committer | Tej Chajed | 2020-04-02 08:28:04 -0500 |
| commit | e4e34b98fde31d813ac583f806fc3b95e3cf6059 (patch) | |
| tree | 2256dccb2a42527f41877a29df29e75e620fff47 /coq | |
| parent | 9196749d55413224355409d55003f7f8c8ba0f79 (diff) | |
Add support for core Ltac2 syntax
- Ltac2 definitions, types, and notation
- Ltac2 queries
- ltac1:(...) and ltac2:(...) antiquotations
Closes #473.
Diffstat (limited to 'coq')
| -rw-r--r-- | coq/coq-syntax.el | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/coq/coq-syntax.el b/coq/coq-syntax.el index 93db1a77..3f52a998 100644 --- a/coq/coq-syntax.el +++ b/coq/coq-syntax.el @@ -488,8 +488,12 @@ so for the following reasons: ("Instance" nil "Instance #:#.\nProof.\n#Defined." t "Instance") ("Program Instance" "pinstance" "Program Instance [ # ] => # where \n# := #;\n# := #." t "Program\\s-+Instance") ("Let" "Let" "Let # : # := #." t "Let") - ("Local Ltac" nil "Local Ltac # := #" t "Local\\s-+Ltac") - ("Ltac" "ltac" "Ltac # := #" t "Ltac") + ("Local Ltac2" nil "Local Ltac2 # := #." t "Local\\s-+Ltac2") + ("Ltac2 Type" "lt2ty" "Ltac2 Type # := #." t "Ltac2 Type") + ("Ltac2 Type" "lt2oty" "Ltac2 Type # ::= #." t "Ltac2 Type") + ("Ltac2" "lt2" "Ltac2 # := #." t "Ltac2") + ("Local Ltac" nil "Local Ltac # := #." t "Local\\s-+Ltac") + ("Ltac" "ltac" "Ltac # := #." t "Ltac") ("Module :=" "mo" "Module # : # := #." t ) ; careful ("Module <: :=" "mo2" "Module # <: # := #." t ) ; careful ("Module Import :=" "moi" "Module Import # : # := #." t ) ; careful @@ -560,6 +564,7 @@ so for the following reasons: ("Locate" nil "Locate" nil "Locate") ("Print Coercions" nil "Print Coercions." nil "Print\\s-+Coercions") ("Print Hint" nil "Print Hint." nil "Print\\s-+Hint" coq-PrintHint) + ("Print Ltac2" "lt2p" "Print Ltac2 #." nil "Print Ltac2") ("Print" "p" "Print #." nil "Print") ("Pwd" nil "Pwd." nil "Pwd") ("Search" nil "Search #" nil "Search") @@ -626,6 +631,8 @@ so for the following reasons: ("Import" nil "Import #." t "Import") ("Include" nil "Include #." t "Include") ("Infix" "inf" "Infix \"#\" := # (at level #) : @{scope}." t "Infix") + ("Ltac2 Notation" "lt2n" "Ltac2 Notation # := #." t "Ltac2 Notation") + ("Ltac2 Eval" "lt2e" "Ltac2 Eval #." nil "Ltac2 Eval") ("Notation (assoc)" "notas" "Notation \"#\" := # (at level #, # associativity)." t) ("Notation (at assoc)" "notassc" "Notation \"#\" := # (at level #, # associativity) : @{scope}." t) ("Notation (at at scope)" "notasc" "Notation \"#\" := # (at level #, # at level #) : @{scope}." t) @@ -1335,7 +1342,7 @@ It is used: (defconst coq-context-marker-regexp - (concat (regexp-opt '("ltac" "constr" "uconstr") 'symbols) ":")) + (concat (regexp-opt '("ltac" "constr" "uconstr" "ltac1" "ltac2") 'symbols) ":")) ;; ;; font-lock |
