forked from ocaml/merlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[B] Improve longident parsing (ocaml#1612)
from voodoos/better-lid-parsing
- Loading branch information
Showing
8 changed files
with
121 additions
and
83 deletions.
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
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,21 @@ | ||
This test is for testing the behavior of identifiers with a . in them: | ||
|
||
$ cat >main.ml <<EOF | ||
> module A = struct let (+.) a b = a +. b end | ||
> let f x = A.(x +. 1.) | ||
> let g x = A.(+.) x 1. | ||
> EOF | ||
|
||
$ $MERLIN single locate -look-for ml -position 2:16 \ | ||
> -filename ./main.ml < ./main.ml | jq '.value.pos' | ||
{ | ||
"line": 1, | ||
"col": 22 | ||
} | ||
|
||
$ $MERLIN single locate -look-for ml -position 3:14 \ | ||
> -filename ./main.ml < ./main.ml | jq '.value.pos' | ||
{ | ||
"line": 1, | ||
"col": 22 | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.