-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #597 from ejgallego/hover_unicode
[hover] Fix `get_id_at_point` in the presence of Unicode chars
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(* Thanks to Pierre Courtieu for the example and report *) | ||
Require Import Utf8. | ||
|
||
(* Check hover works properly for `Nopick` *) | ||
Variant pick_spec (T : Type) (P : T -> Prop) : option T -> Type := | ||
| Pick : forall x : T, P x -> pick_spec T P (Some x) | ||
| Nopick : (∀ x : T, ¬ (P x)) → pick_spec T P None. |