We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65f7ff commit eb5dbc1Copy full SHA for eb5dbc1
lua/luasnip-snippets/snippets/rust/postfix.lua
@@ -9,6 +9,8 @@ local expr_query = [[
9
(call_expression)
10
(identifier)
11
(field_expression)
12
+ (integer_literal)
13
+ (string_literal)
14
] @prefix
15
]]
16
@@ -18,7 +20,10 @@ local expr_or_type_query = [[
18
20
19
21
22
23
24
25
26
+ (type_identifier)
27
(generic_type)
28
(scoped_type_identifier)
29
(reference_type)
@@ -30,6 +35,8 @@ local expr_node_types = {
30
35
["call_expression"] = true,
31
36
["identifier"] = true,
32
37
["field_expression"] = true,
38
+ ["integer_literal"] = true,
39
+ ["string_literal"] = true,
33
40
}
34
41
42
---@param trig string
0 commit comments