Strip block comments: Difference between revisions

Content added Content deleted
m (Fix spelling in the sample…)
Line 13: Line 13:
a = /* inline comment */ b + c ;
a = /* inline comment */ b + c ;
}
}
/*/ <-- triky comments */
/*/ <-- tricky comments */


/**
/**
Line 70: Line 70:
a = /* inline comment */ b + c ;
a = /* inline comment */ b + c ;
}
}
/*/ <-- triky comments */
/*/ <-- tricky comments */


/**
/**
Line 106: Line 106:
*
*
* Rahoo
* Rahoo
*//* inline comment *//*/ <-- triky comments *//**
*//* inline comment *//*/ <-- tricky comments *//**
* Another comment.
* Another comment.
*/</pre>
*/</pre>
Line 131: Line 131:
a = /* inline comment */ b + c ;
a = /* inline comment */ b + c ;
}
}
/*/ <-- triky comments */
/*/ <-- tricky comments */


/**
/**
Line 166: Line 166:
a = /* inline comment */ b + c ;
a = /* inline comment */ b + c ;
}
}
/*/ <-- triky comments */
/*/ <-- tricky comments */


/**
/**
Line 235: Line 235:
source.s + " a = /* inline comment */ b + c ;" + #CRLF$
source.s + " a = /* inline comment */ b + c ;" + #CRLF$
source.s + " }" + #CRLF$
source.s + " }" + #CRLF$
source.s + " /*/ <-- triky comments */" + #CRLF$
source.s + " /*/ <-- tricky comments */" + #CRLF$
source.s + "" + #CRLF$
source.s + "" + #CRLF$
source.s + " /**" + #CRLF$
source.s + " /**" + #CRLF$
Line 265: Line 265:
a = /* inline comment */ b + c ;
a = /* inline comment */ b + c ;
}
}
/*/ <-- triky comments */
/*/ <-- tricky comments */


/**
/**
Line 288: Line 288:
longer comments here that we can parse.
longer comments here that we can parse.
Rahoo
Rahoo
inline comment / <-- triky comments Another comment.
inline comment / <-- tricky comments Another comment.
*/
*/
function something() {
function something() {
Line 314: Line 314:
a = /* inline comment */ b + c ;
a = /* inline comment */ b + c ;
}
}
/*/ <-- triky comments */
/*/ <-- tricky comments */


/**
/**