Adrian Aichner writes:
Hello All,
I try to define a syntax table for a language which uses " for
string-quotes. Inside of strings " is used to char-quote ".
To get a string of two consecutive double-quotes one would write:
""""""
Yuck! Unless the langauge disallows empty strings, your example
could be parsed four different ways!
""""""
"" """"
"""" ""
"" "" ""
My conclusion is that this cannot be done with elisp syntax tables.
Am I correct?
Yes. The syntax you describe requires the " character
to be in two different syntax classes. Not possible.
Any suggestions?
Hack XEmacs to add an ad hoc syntax class for this language.
It's not without precedent. The syntax class for ' is tailored
for Lisp usage.