From: Benny B. <Ben...@gm...> - 2007-09-16 15:21:11
|
Hi, basically I see only few real problems with highlighting those strings. 1) Tell the string to be " as separators Tell ^ to be an escape character The more complicated part is the {} string type. This will probably involve some regexps AND will remain some problems with escape characters within the string. Please have a short look at the preg_match involving recursive matches. But unhappily rebol string in full extend might not be as simple as one could think. BenBE. P.S.: Sorry for the late reply ... The mail slipped out of my hands after I half-finished the reply ;-) Oldes schrieb: > Hi, > > I wanted to create GeSHi script to colorize Rebol language, > but I have a problem with Rebol strings. > > Is it possible to handle all these Rebol strings?: > > 1) "simple string with no newlines" > 2) {string > on more lines} > 3) {string with {nasted} string} > 4) "string with {nasted} string" > 5) "string with escaped ^" character" > 6) {string with " character} > 7) {string with escaped ^{ character} > > > thanks for any info, > Oldes > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > geshi-devel mailing list > ges...@li... > https://lists.sourceforge.net/lists/listinfo/geshi-devel > > |