File tree Expand file tree Collapse file tree
Open diff view settings
Expand file tree Collapse file tree
Open diff view settings
Original file line number Diff line number Diff line change @@ -12,12 +12,11 @@ fnc=remove_skip_blocks
1212open_tag =/*<SKIP>*/
1313close_tag =/*</SKIP>*/
1414
15- # This will remove all line comments starting with //
15+ # This will remove all line comments starting with // # FIXME Parameters not used
1616[lineComments]
1717enabled =false
1818fnc =remove_line_comments
19- open_tag =//
20- close_tag =$
19+ open_tag =\/\/[^*]
2120start_at_line =22
2221
2322# This will remove all multiline comments starting with /* and ending with */
Original file line number Diff line number Diff line change @@ -152,9 +152,9 @@ remove_skip_blocks() {
152152
153153# # Function to process operation 'lineComments'
154154remove_line_comments () {
155- # FIXME: remove_line_comments does not work yet
156- local result =" $( perl -0777 -pe " s{\R? ${open_tag} .*? ${close_tag} }{}sg " " ${output_file }" ) "
157- echo " ${result} " > " ${output_file} "
155+ # FIXME: insert configured arguments
156+ # open_tag ="$(str_escape " ${open_tag}")"
157+ sed -i ' 22,$s/\/\/[^*].*/ / ' " ${output_file} "
158158 return 0
159159}
160160
You can’t perform that action at this time.
0 commit comments