- Subject: dfa_define_highlight_rule
- From: Morten Bo Johansen <mojo@xxxxxxxx>
- Date: Fri, 1 Nov 2002 18:58:07 +0100
Hi,
I am trying to construct a dfa color scheme for editing gettext
message catalog files (*.po). Among the syntaxes I'd like to
take a note of are blanks at the beginning and end of lines.
For instance in a line looking like
msgid " as audio track, it's a directory "
I'd like to highlight the blanks before and after the '"'.
Likewise I'd like a highlighting when there is only a blank at
either the beginning or at the end of the msgid line.
So I have defined these rules:
dfa_define_highlight_rule("\"[ \t]+", begblank, name);
dfa_define_highlight_rule("[ \t]+\"$", endblank, name);
This works when the msgid lines look like this
msgid " as audio track, it's a directory "
msgid " as audio track, it's a directory" % no blank at end
However in this instance
msgid "as audio track, it's a directory " % no blank at beginning
it doesn't work.
If I start a line with a blank and a '"' like this:
"
it also works.
Could anyone tell me what the regexp should look like in order
to make it work as intended?
Regards,
Morten
--
"I told the doctor I broke my leg in two places. He told me to quit
going to those places." (Henny Youngman)
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]