File tree Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Expand file tree Collapse file tree 4 files changed +33
-5
lines changed Original file line number Diff line number Diff line change 8181 "escape-string-regexp" : " ^4.0.0" ,
8282 "prettier" : " ^2.2.1" ,
8383 "semver" : " ^7.3.5" ,
84- "solidity-comments-extractor" : " ^0.0.6 " ,
84+ "solidity-comments-extractor" : " ^0.0.7 " ,
8585 "string-width" : " ^4.2.2"
8686 }
8787}
Original file line number Diff line number Diff line change @@ -92,4 +92,13 @@ interface Comments10 {
9292 ) /* comment outside the parameters */ external ;
9393
9494 function someOtherFunction (/* checking for Block comment */ ) external ;
95- }
95+ }
96+
97+ contract Comments11 {
98+ string a = "\ \" ;
99+ string b = '\ \' ;
100+
101+ function f() public {
102+ // this should not be removed
103+ }
104+ }
Original file line number Diff line number Diff line change @@ -101,6 +101,16 @@ interface Comments10 {
101101
102102 function someOtherFunction(/* checking for Block comment */ ) external;
103103}
104+
105+ contract Comments11 {
106+ string a = " \\\\ " ;
107+ string b = ' \\\\ ' ;
108+
109+ function f() public {
110+ // this should not be removed
111+ }
112+ }
113+
104114=====================================output=====================================
105115pragma solidity ^0.4.24;
106116
@@ -221,5 +231,14 @@ interface Comments10 {
221231 ) external;
222232}
223233
234+ contract Comments11 {
235+ string a = " \\\\ " ;
236+ string b = " \\\\ " ;
237+
238+ function f() public {
239+ // this should not be removed
240+ }
241+ }
242+
224243================================================================================
225244` ;
You can’t perform that action at this time.
0 commit comments