From: Roman T. <tso...@us...> - 2017-12-04 03:30:46
|
- **status**: closed-wont-fix --> open - **Comment**: I did probably wrong closing the ticket. Now I am trying to implement multiline strings in C mode (https://sourceforge.net/p/jedit/bugs/2935/) I delegated the string SPAN to a separate rule: <RULES SET="STRING_LITERAL" DEFAULT="LITERAL1" ESCAPE="\"> <SEQ_REGEXP DELEGATE="MAIN"><![CDATA[[^\\]$]]></SEQ_REGEXP> </RULES> ... so that EOL without backslash should trigger fallback to MAIN. But when I try to use negative lookbehind assertion (instead of [^\\] which improperly includes the token) nothing works. Seems like EOL does not match by itself but with something else. Thus, [^\\]$ matches but (?<!\\)$ does not. This needs further investigation. --- ** [bugs:#3005] syntax: does not allow matching of newlines** **Status:** open **Group:** normal bug **Labels:** text area and syntax packages **Created:** Fri Jan 04, 2008 01:01 PM UTC by daniel hahler **Last Updated:** Fri Nov 24, 2017 04:37 PM UTC **Owner:** nobody In jEdit mode files, the following does not work: <SEQ\_REGEXP DELEGATE="FOO">\n</SEQ\_REGEXP> Likewise, the following does not include newlines: <SEQ\_REGEXP DELEGATE="FOO">\s</SEQ\_REGEXP> This would allow to fix bug 958013, so that a PHP line comment could either on "\n" or "?>". --- Sent from sourceforge.net because jed...@li... is subscribed to https://sourceforge.net/p/jedit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |