Skip to content

Commit 3d00dd0

Browse files
Ananth AnnamalaiAnanth Annamalai
Ananth Annamalai
authored and
Ananth Annamalai
committed
fix: Debug Print Not generating for c_shrarp file type
* Added semicolon at the end of print statement * Added another file type to support c_sharp filetypes
1 parent 409c84c commit 3d00dd0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lua/debugprint/filetypes.lua

+9-6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ local js = {
3030
right_var = ")",
3131
}
3232

33+
local cs = {
34+
left = 'System.Console.Error.WriteLine($"',
35+
right = '");',
36+
mid_var = "{",
37+
right_var = '}");',
38+
}
39+
3340
return {
3441
["bash"] = shell,
3542
["c"] = {
@@ -50,12 +57,8 @@ return {
5057
mid_var = '" << ',
5158
right_var = " << std::endl;",
5259
},
53-
["cs"] = {
54-
left = 'System.Console.Error.WriteLine($"',
55-
right = '")',
56-
mid_var = "{",
57-
right_var = '}");',
58-
},
60+
["cs"] = cs,
61+
["c_sharp"] = cs,
5962
["dart"] = {
6063
left = 'print("',
6164
right = '");',

0 commit comments

Comments
 (0)