support inlay hints inside functions
remake of #759 Co-authored-by: ryuukk <ryuukk.dev@gmail.com>
This commit is contained in:
parent
b79982d509
commit
2bb03265cc
|
@ -115,6 +115,7 @@ class AutocompleteParser : Parser
|
||||||
{
|
{
|
||||||
if (!currentIs(tok!"{"))
|
if (!currentIs(tok!"{"))
|
||||||
return null;
|
return null;
|
||||||
|
if (cursorPosition == -1) return super.parseBlockStatement();
|
||||||
if (current.index > cursorPosition)
|
if (current.index > cursorPosition)
|
||||||
{
|
{
|
||||||
BlockStatement bs = allocator.make!(BlockStatement);
|
BlockStatement bs = allocator.make!(BlockStatement);
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
l ->Point 208
|
l ->Point 208
|
||||||
|
l ->Point 247
|
||||||
|
|
Loading…
Reference in New Issue