russ-p / veloeclipse

Automatically exported from code.google.com/p/veloeclipse
Other
0 stars 0 forks source link

Empty comment #**# is treated as start of multiline comment #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Enter something like

#**##if (${name} == "ABC")
    //some code
#**##end

in your VSL file.

Although the velocity code between #**# and #**# is no comment, it is
rendered as a multiline comment.

Veloeclipse Version 2.0.8
OS: Windows XP
Eclipse: 3.3.2

Maybe it is sufficient to remove the line 

    rules.add(new WordPatternRule(new EmptyCommentDetector(), "#**#", null,
cp.getToken(MULTI_LINE_COMMENT, true)));

from the file VelocityPartitionScanner.java (and the corresponding line for
the empty comment #***#)?

Original issue reported on code.google.com by juergen....@gmail.com on 29 Apr 2009 at 8:00

GoogleCodeExporter commented 9 years ago

Original comment by byron.foster@gmail.com on 2 May 2009 at 9:10