diff options
author | sumneko <sumneko@hotmail.com> | 2019-05-06 14:48:44 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-05-06 14:48:44 +0800 |
commit | df62d7a467cc2ffa1d4945c4912a4568baf75847 (patch) | |
tree | bc9329d5eb349cea72ab1f660d9ed7c7d2af620a /server/src/parser | |
parent | cbd5169adaed554fe5ae3b2c9f4141039c2082cd (diff) | |
download | lua-language-server-df62d7a467cc2ffa1d4945c4912a4568baf75847.zip |
emmySee
Diffstat (limited to 'server/src/parser')
-rw-r--r-- | server/src/parser/ast.lua | 4 | ||||
-rw-r--r-- | server/src/parser/grammar.lua | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index 5a3630cd..12077f8e 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -1242,9 +1242,11 @@ local Defs = { language, } end, - EmmySee = function (className, methodName) + EmmySee = function (start, className, methodName, finish) return { type = 'emmySee', + start = start, + finish = finish - 1, className, methodName } end, diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua index 25ac30f2..90e12e39 100644 --- a/server/src/parser/grammar.lua +++ b/server/src/parser/grammar.lua @@ -586,7 +586,7 @@ EmmyFunctionArgs<- '(' %s* EmmyFunctionArg %s* (',' %s* EmmyFunctionArg %s*)* ' EmmyFunctionRtn <- ':' %s* EmmyType EmmyFunctionArg <- MustEmmyName %s* ':' %s* EmmyType -EmmySee <- MustEmmyName '#' MustEmmyName +EmmySee <- {} MustEmmyName %s* '#' %s* MustEmmyName {} ]] grammar 'Lua' [[ |