Archive: Fix for comment \ combo


Fix for comment \ combo
Here's a fix for the following problem:
; Comment \
Name "Something"

Where the \ caused the second line not to process.

Change script.cpp line 59 from:
if (str[0] && CharPrev(str,str+strlen(str))[0] == '\\') return PS_OK;

To:
if (str[0] && *str!='#' && *str!=';' && CharPrev(str,str+strlen(str))[0] == '\\') return PS_OK;

This will allow you to add \ to the end of comment lines (Of course, I don't know why you'd want to :)).

Robert


Actually having a \ at the end of a comment line continue the comment to the next line is a desired behavior. :)


; Comment line 1\
Comment line 2\
Etc

-Justin


I guess one person's bug is another person's feature :)

Robert