Hi,
For a new language file that I am working upon, the comments structure is quite unique. A comment is identified by any line whose first non-space character is an asterisk (*). Just using COMMENT_SINGLE = array( 1 => '*') converts even expressions such as "25 * 4"
I went through the documentation and I think I could use COMMENT_REGEXP. Can someone tell me how to use this? (I guess the check would include * followed by a non numeric character [\D], preceded by spaces[\s]). It may be quite simple to implement, but the PHP manual on REGEXP is quite confusing.
Thanks,
Ramesh
For a new language file that I am working upon, the comments structure is quite unique. A comment is identified by any line whose first non-space character is an asterisk (*). Just using COMMENT_SINGLE = array( 1 => '*') converts even expressions such as "25 * 4"
I went through the documentation and I think I could use COMMENT_REGEXP. Can someone tell me how to use this? (I guess the check would include * followed by a non numeric character [\D], preceded by spaces[\s]). It may be quite simple to implement, but the PHP manual on REGEXP is quite confusing.
Thanks,
Ramesh
No comments:
Post a Comment