Multi-character parentheses in a syntax table

I know I can have multi-character comment delimiters, but what about multi-character parentheses, for example. if I wanted to treat the sequence of characters "% {" as an opening parenthesis and "}%" as a closing one like this

% {

}%

+2


source to share


1 answer


Emacs does not support this, see the info entry for syntax tables . Comments (and lines) have appropriate delimiters, but they also have corresponding "generic" syntax classes . The parenthesis class does not have similar support.



So you are only stuck with single parentheses.

+2


source







All Articles