HP 3000 Manuals

Find Matching Delimiter [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Find Matching Delimiter 

Purpose 

Searches for the matching delimiter of a delimiter pair.

Default Syntax 

,

Description 

This command searches for the delimiter matching the delimiter where the
cursor is currently positioned.  Recognized delimiters are:

     { }
     [ ]
     ( )

When HP EDIT finds the matching delimiter, it moves the cursor to that
location.  HP EDIT may search forward or backward, depending on whether
the cursor is positioned on the first or second delimiter of the pair.

Procedure 

To find a matching delimiter: 

   1.  Ensure that the cursor is positioned on a valid delimiter.

   2.  Press the , key.  HP EDIT moves the cursor to the matching
       delimiter of the pair.

       If HP EDIT does not find a matching delimiter, it displays A 
       matching delimiter was not found on the message line.  If the
       cursor is positioned on a character other than a valid delimiter
       when you execute the command, HP EDIT displays The character is 
       not a valid delimiter on the message line.

Example 

To find the matching right parenthesis in the following example: 

           This command (Find Matching Delimiter) moves
           the cursor to the matching delimiter of the pair.

   1.  Move the cursor to the left parenthesis as shown.

   2.  Press the , key.  HP EDIT moves the cursor to the right
       parenthesis as shown:

            This command (Find Matching Delimiter) moves
            the cursor to the matching delimiter of the pair.

Related Commands 

       [REV BEG]
       Find All Occurrences[REV END]
       Find Blank Space
       Find Character
       Find .
       Find Previous Blank Space
       Find Previous Character
       Find Previous .



MPE/iX 5.0 Documentation