-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search results incorrectly highlighted as errors #288
Comments
Also, lemmas and variables, whose names start with From Coq Require Import Lists.List.
Search existsb. existsb_app:
forall [A : Type] (f : A -> bool) (l1 l2 : list A),
existsb f (l1 ++ l2) = (existsb f l1 || existsb f l2)%bool
existsb_exists:
forall [A : Type] (f : A -> bool) (l : list A),
existsb f l = true <-> (exists x : A, In x l /\ f x = true)
existsb_nth:
forall [A : Type] (f : A -> bool) (l : list A) [n : nat] (d : A),
n < length l -> existsb f l = false -> f (nth n l d) = false |
Word boundaries are not enough to tame the standard library, Search option. error: forall {A : Type}, option A
None: forall {A : Type}, option A
value: forall [A : Type], A -> option A
Some: forall {A : Type}, A -> option A |
Good point. In that case I think a simple regex isn't going to be able to distinguish an actual error message and an identifier/notation that resembles an error message. Coqtail knows the difference when it gets a response from Coq, but then forgets when everything gets mixed together in the Info panel. A few relatively simple options I can think of are:
|
* Add word boundary to exists keyword. Fix whonore#288 * Add word boundary to Info buffer warning/error messages. Fix whonore#288 * Highlight more query commands
Versions
Coq 8.15.0
Coqtail 1.6.2
Vim 8.2
Equations 1.3
Python 3.7.4
Description
Search results for lemmas, whose names end in
error
,are highlighted as if they were errors themselves.
Check the following script and observe the result.
The text was updated successfully, but these errors were encountered: