Wednesday, January 6, 2021

syn region start="first line" end="first line"

Hi!

I'm doing a syntax file for my own silly made up filetype. The first
line of a file is always tag-section and I want to highlight it. There
is no special pattern for searching by regexp --- the aim is to
highlight the first line ALWAYS.

For example, in this context:

Blah-blah

foo, bar,
one, two, three.

only "Blah-blah" must be captured for highlighting with `hi def` later.

Could I use `syn region` for that purpose and how? If not what're other
ways to do that?

--
Oskar Sharipov
site (might be unpaid and cancelled): oskarsh.ru
e-mail (replace asterisk with dot): oskarsh at riseup * net
secondary e-mail (same): oskar * sharipov at tutanota * org
gpg fingerprint: BAC3 F049 748A D098 A144 BA89 0DC4 EA75 714C 75B5

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/X/XCDTNOERBlaN4x%40piggy.

No comments: