diff options
author | Ilia Choly <ilia.choly@gmail.com> | 2024-05-31 11:47:32 -0400 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-06-01 12:56:43 +0100 |
commit | 9eb0426002696fba4a7c5b9cadd8799a8ae18e6a (patch) | |
tree | 3d28bf75fdebbc11f39c1b4d1b9006618bd762a1 /scripts/luacats_grammar.lua | |
parent | f2083bd55cafe861e9dffb1c1658e5b0983c5ef6 (diff) | |
download | rneovim-9eb0426002696fba4a7c5b9cadd8799a8ae18e6a.tar.gz rneovim-9eb0426002696fba4a7c5b9cadd8799a8ae18e6a.tar.bz2 rneovim-9eb0426002696fba4a7c5b9cadd8799a8ae18e6a.zip |
fix(luacats): allow all types inside tuples
Diffstat (limited to 'scripts/luacats_grammar.lua')
-rw-r--r-- | scripts/luacats_grammar.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/luacats_grammar.lua b/scripts/luacats_grammar.lua index 6742eab5e9..9360eb9417 100644 --- a/scripts/luacats_grammar.lua +++ b/scripts/luacats_grammar.lua @@ -180,7 +180,7 @@ local grammar = P { fun_param = lname * opt(colon * v.ltype), ty_fun = Pf('fun') * paren(comma(lname * opt(colon * v.ltype))) * opt(colon * comma1(v.ltype)), ty_generic = P('`') * letter * P('`'), - ty_tuple = Pf('[') * comma(v.ty_opt) * fill * P(']'), + ty_tuple = Pf('[') * comma(v.ltype) * fill * P(']'), } return grammar --[[@as nvim.luacats.grammar]] |