[prev in list] [next in list] [prev in thread] [next in thread]
List: jedit-users
Subject: Re: [ jEdit-users ] Mode Definitions: Escaping literal delimiters without using "\"
From: Dale Anson <dale () daleanson ! com>
Date: 2023-02-24 20:28:39
Message-ID: CAHrA0wCD1Seq=xbGfR6dTQUVD2O2Hqr34f4Y3U97A6B52hp3pw () mail ! gmail ! com
[Download RAW message or body]
The fortran mode file defines literals like this:
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
<BEGIN>"</BEGIN>
<END>"</END>
</SPAN>
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
<BEGIN>'</BEGIN>
<END>'</END>
</SPAN>
Is that what you're looking for?
Dale
On Thu, Feb 23, 2023 at 5:24 PM J Leslie Turriff <jlturriff@mail.com> wrote:
>
> Hello,
> How would I code the rule for a literal that uses, instead of a backslash, a doubled
> string delimiter to escape it when embedded in a string? E.g.
> | 'This string doesn''t end before this last quote.'
>
> This notation is used by several languages, e.g. FORTRAN, COBOL, PL/I, Rexx.
>
> Leslie
> --
> Platform: Linux
> Distribution: openSUSE Leap 15.4 (x86_64)
>
>
> --
> -----------------------------------------------
> jEdit Users' List
> jEdit-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jedit-users
--
-----------------------------------------------
jEdit Users' List
jEdit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic