deblondon / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Erlang support: possible problem related to CRLF line endings in comment lines #279

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There seems to be a problem related to the Erlang comments detection, as this 
one does not honor CRLF. Current code is:

 // Comments in erlang are started with % and go till a newline
 [PR['PR_COMMENT'], /^%[^\n]*/],

While I think it should be:

 [PR['PR_COMMENT'], /^%[^\n\r]*/],

At least this fix was necessary when porting the Erlang support to 
java-prettify.

Original issue reported on code.google.com by marc.str...@gmail.com on 15 Apr 2013 at 9:47