Re: Mode Definitions: Escaping literal delimiters without using "\"

Dale Anson <[email protected]>
Newsgroups gmane.editors.jedit.user
Message-ID <CAHrA0wCD1Seq=xbGfR6dTQUVD2O2Hqr34f4Y3U97A6B52hp3pw@mail.gmail.com>
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 <[email protected]> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jedit-users


-- 
-----------------------------------------------
jEdit Users' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.