Strip block comments: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(Easylang) |
||
Line 851: | Line 851: | ||
function something() { |
function something() { |
||
}</pre> |
}</pre> |
||
=={{header|EasyLang}}== |
|||
<syntaxhighlight lang="easylang"> |
|||
subr process |
|||
i = 1 |
|||
while i <= len s$ |
|||
if inc = 0 and substr s$ i 2 = "/*" |
|||
inc = 1 |
|||
i += 1 |
|||
elif inc = 1 and substr s$ i 2 = "*/" |
|||
inc = 0 |
|||
i += 1 |
|||
elif inc = 0 |
|||
write substr s$ i 1 |
|||
. |
|||
i += 1 |
|||
. |
|||
if inc = 0 |
|||
print "" |
|||
. |
|||
. |
|||
repeat |
|||
s$ = input |
|||
until error = 1 |
|||
process |
|||
. |
|||
input_data |
|||
/** |
|||
* Some comments |
|||
* longer comments here that we can parse. |
|||
* |
|||
* Rahoo |
|||
*/ |
|||
function subroutine() { |
|||
a = /* inline comment */ b + c ; |
|||
} |
|||
/*/ <-- tricky comments */ |
|||
/** |
|||
* Another comment. |
|||
*/ |
|||
function something() { |
|||
} |
|||
</syntaxhighlight> |
|||
=={{header|F_Sharp|F#}}== |
=={{header|F_Sharp|F#}}== |