Alex
Alex

Reputation: 1631

multi-character parentheses in syntax table

I know that I can have multi-character comment delimiters, but how about multi-character parentheses, e.g. if I wanted to treat the character sequence "%{" as an opening parenthesis and "}%" as a closing one like this

%{

}%

Upvotes: 2

Views: 177

Answers (1)

Trey Jackson
Trey Jackson

Reputation: 74470

Emacs does not support this, see the info entry for syntax tables. Comments (and strings) have matching delimiters - but they also have corresponding "generic" syntax classes. The parenthesis class doesn't have similar support.

So, you're stuck with only single character parentheses.

Upvotes: 2

Related Questions