jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

dfa matching order


Hi,

what happens if a rule match? Are the other rules probed anymore? Are the
test done in the order I declare them?

(1)  dfa_define_highlight_rule ("\\\\\\[.*\\\\\\]", "Qstring", name);
(2)  dfa_define_highlight_rule ("\\\\\\[.*$", "string", name);
(3)  dfa_define_highlight_rule ("^.*\\\\\\]", "string", name);

If (1) doesn't match, I know, there isn't a \] in the line anymore. So if
(2) match, it could match the whole line. \[ and (3) dito.

Is this OK or does it go any other way?

How to match across newline characters? Like " does in C-Mode.

Jörg.

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]