define-lex-block-analyzer

define-lex-block-analyzer is a Lisp macro in `lex.el'.

(define-lex-block-analyzer NAME DOC SPEC1 &rest SPECS)

Create a lexical analyzer NAME for paired delimiters blocks.
It detects a paired delimiters block or the corresponding open or
close delimiter depending on the value of the variable
`semantic-lex-current-depth'. DOC is the documentation string of the lexical
analyzer. SPEC1 and SPECS specify the token symbols and open, close
delimiters used. Each SPEC has the form:

(BLOCK-SYM (OPEN-DELIM OPEN-SYM) (CLOSE-DELIM CLOSE-SYM))

where BLOCK-SYM is the symbol returned in a block token. OPEN-DELIM
and CLOSE-DELIM are respectively the open and close delimiters
identifying a block. OPEN-SYM and CLOSE-SYM are respectively the
symbols returned in open and close tokens.