diff options
| author | Pierre Courtieu | 2006-08-25 13:21:20 +0000 |
|---|---|---|
| committer | Pierre Courtieu | 2006-08-25 13:21:20 +0000 |
| commit | ac2ed5ec6a3fee36abd1ca0aca2f049c1ce0fb01 (patch) | |
| tree | 651d75bca39cbd618bde10ed23483508a522d301 /coq | |
| parent | 079bf430d977dfe5d451ffd1aebff5554801c388 (diff) | |
Adding comments
Diffstat (limited to 'coq')
| -rw-r--r-- | coq/coq-syntax.el | 17 | ||||
| -rw-r--r-- | coq/coq.el | 2 |
2 files changed, 16 insertions, 3 deletions
diff --git a/coq/coq-syntax.el b/coq/coq-syntax.el index 2775ac2d..0c96a79b 100644 --- a/coq/coq-syntax.el +++ b/coq/coq-syntax.el @@ -823,10 +823,21 @@ Used by `coq-goal-command-p'" ;(defconst coq-with-with-hole-regexp ; (concat "\\(" "with" "\\)\\s-+\\(" coq-ids "\\)" "\\(?:[^:]+\\|:[^=]\\)*:=")) +; must match: +; with f := +; with f : foo := +; with f x y := +; with f x y : t := +; with f (x:tx) y := +; with f (x:tx) (y:ty) := +; BUT NOT: +; with f ...(x:=t)... +; the simplest is : +; either no '(' before the first ':' +; OR the first := found follows a ')[^(.]*' +; actually this wont colorize f in 'with f (x:t) : foo.bar :="' but that is acceptable (defconst coq-with-with-hole-regexp - (concat "\\(with\\)\\s-+\\(" coq-id "\\)\\s-*\\([^(]*:\\|.*)[^(.]*:=\\)") - ;(concat "\\(" "with" "\\)\\s-+\\(" coq-id "\\)" ".*?)[^(.]*:=") - ) + (concat "\\(with\\)\\s-+\\(" coq-id "\\)\\s-*\\([^(]*:\\|.*)[^(.]*:=\\)")) (defvar coq-font-lock-keywords-1 (append @@ -164,6 +164,7 @@ To disable coqc being called (and use only make), set this to nil." (defvar coq-non-retractable-instruct-regexp (proof-ids-to-regexp coq-non-retractable-instruct)) +; delete when no more support for 8.0 ? (defvar coq-keywords-section '("Section" "Module\\s-+Type" "Declare\\s-+Module" "Module")) @@ -264,6 +265,7 @@ toplevel \"Coq <\". Returns nil if yes. This assumes that no ; if no second id --> name of the module/section is (match-string 2 str) ; otherwise it is (match-string 5 str) ; to know if there is a second id: (match-string 2 str)="Type" ? +; delete when no more support for 8.0 (defun coq-section-or-module-start-p (str) (proof-string-match (concat "\\`" coq-section-regexp |
