From: Reza Nikoopour <rnikoopour@gmail.com>
To: emacs-devel@gnu.org
Subject: How to use Generic String Delimiter ("|")
Date: Sun, 7 Nov 2021 11:51:09 -0800 [thread overview]
Message-ID: <CAKesZq05X=uvGdxqs7b_7i1_ym-FdrSsRYkiKkaTxYVmjak5qQ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 629 bytes --]
Hello All,
I'm trying to highlight a multiline construct. It uses the here doc syntax
<<SYMBOL
whatever
text
SYMBOL
Do I need two delimiters as follows:
<<SYMBOL(1)
whatever
text(2)
SYMBOL
Or do I use one delimiter that spans the entire string body?
<<SYMBOL(delimiter start)
whatever
text(delimiter end)
SYMBOL
In my experiments using the single delimiter I've failed at getting the
highlighting to work properly so I think I'm going down the wrong path.
I'm trying to avoid how sh-mode and the current implementation
of terraform-mode highlight the entirety of the closing SYMBOL.
[image: image.png]
Cheers,
Reza
[-- Attachment #1.2: Type: text/html, Size: 1235 bytes --]
[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 26180 bytes --]
next reply other threads:[~2021-11-07 19:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 19:51 Reza Nikoopour [this message]
2021-11-07 20:57 ` How to use Generic String Delimiter ("|") Stefan Monnier
2021-11-08 2:42 ` Reza Nikoopour
2021-11-08 2:54 ` Reza Nikoopour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKesZq05X=uvGdxqs7b_7i1_ym-FdrSsRYkiKkaTxYVmjak5qQ@mail.gmail.com' \
--to=rnikoopour@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.