Skip to content

Commit a80cbaa

Browse files
Merge pull request #185 from lost22git/add-crystal
2 parents a0f2371 + 843925a commit a80cbaa

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lua/debugprint/filetypes.lua

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ local lua = {
8787
end,
8888
}
8989

90+
---@type debugprint.FileTypeConfig
91+
local ruby = {
92+
left = 'STDERR.puts "',
93+
right = '"',
94+
mid_var = "#{",
95+
right_var = '}"',
96+
}
97+
9098
---@type debugprint.FileTypeConfig[]
9199
return {
92100
["apex"] = {
@@ -144,6 +152,7 @@ return {
144152
right_var = " << std::endl;",
145153
location = '" << __FILE__ << ":" << __LINE__ << "',
146154
},
155+
["crystal"] = ruby,
147156
["cs"] = cs,
148157
["c_sharp"] = cs,
149158
["dart"] = {
@@ -261,12 +270,7 @@ return {
261270
mid_var = '", ',
262271
right_var = "), file=stderr())",
263272
},
264-
["ruby"] = {
265-
left = 'STDERR.puts "',
266-
right = '"',
267-
mid_var = "#{",
268-
right_var = '}"',
269-
},
273+
["ruby"] = ruby,
270274
["rust"] = {
271275
left = 'eprintln!("',
272276
right = '");',

0 commit comments

Comments
 (0)