- Subject: Re: [jed-users] Re: find outer brace
- From: jed@xxxxxxxxxxx (John E. Davis)
- Date: Thu, 1 Oct 2015 12:16:33 -0400
Ulli Horlacher <framstag@xxxxxxxxxxxxxxxxxxxx> wrote:
> Ok, it was easy:
>
> define goto_brace_next() {
Even easier: use find_matching_delimiter
find_matching_delimiter
SYNOPSIS
Look for the delimiter that matches "ch"
USAGE
Integer find_matching_delimiter (Integer ch)
DESCRIPTION
This function scans either forward or backward looking for the
delimiter that matches the character specified by `ch'. The actual
direction depends upon the syntax of the character `ch'. The
matching delimiter pair must be declared as such by a prior call to
`define_syntax'. This function returns one of the following values:
1 Match found
0 Match not found
-1 A match was attempted from within a string.
-2 A match was attempted from within a comment
2 No information
In addition, the current point is left either at the match or is left
at the place where the routine either detected a mismatch or gave up.
In the case of a comment or a string (return values of -2 or -1), the
current point is left at the beginning of a comment.
Note: If the of `ch' is zero, the character at the current point will be
used.
SEE ALSO
blink_match, create_syntax_table, define_syntax, parse_to_point
[Obtained from file /usr/local/jed/doc/hlp/jedfuns.hlp]
--John
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2015 date index]
[2015 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]