in principle we'd like to use the existing parser ``` "?" >> (ident <|> hole) ``` but somehow annotate it so that hovering the `hole` will not show the hole's hover. But for now it was easier to just change the parser to ``` "?" >> (ident <|> "_") ``` and be done with it. Fixes #5021
32 lines
1.4 KiB
Text
32 lines
1.4 KiB
Text
{"textDocument": {"uri": "file:///issue5021.lean"},
|
|
"position": {"line": 1, "character": 9}}
|
|
{"range":
|
|
{"start": {"line": 1, "character": 9}, "end": {"line": 1, "character": 11}},
|
|
"contents":
|
|
{"value":
|
|
"```lean\nFalse\n```\n***\nParses a \"synthetic hole\", that is, `?foo` or `?_`.\nThis syntax is used to construct named metavariables. ",
|
|
"kind": "markdown"}}
|
|
{"textDocument": {"uri": "file:///issue5021.lean"},
|
|
"position": {"line": 1, "character": 10}}
|
|
{"range":
|
|
{"start": {"line": 1, "character": 9}, "end": {"line": 1, "character": 11}},
|
|
"contents":
|
|
{"value":
|
|
"```lean\nFalse\n```\n***\nParses a \"synthetic hole\", that is, `?foo` or `?_`.\nThis syntax is used to construct named metavariables. ",
|
|
"kind": "markdown"}}
|
|
{"textDocument": {"uri": "file:///issue5021.lean"},
|
|
"position": {"line": 7, "character": 9}}
|
|
{"range":
|
|
{"start": {"line": 7, "character": 9}, "end": {"line": 7, "character": 12}},
|
|
"contents":
|
|
{"value":
|
|
"```lean\nFalse\n```\n***\nParses a \"synthetic hole\", that is, `?foo` or `?_`.\nThis syntax is used to construct named metavariables. ",
|
|
"kind": "markdown"}}
|
|
{"textDocument": {"uri": "file:///issue5021.lean"},
|
|
"position": {"line": 7, "character": 11}}
|
|
{"range":
|
|
{"start": {"line": 7, "character": 9}, "end": {"line": 7, "character": 12}},
|
|
"contents":
|
|
{"value":
|
|
"```lean\nFalse\n```\n***\nParses a \"synthetic hole\", that is, `?foo` or `?_`.\nThis syntax is used to construct named metavariables. ",
|
|
"kind": "markdown"}}
|