bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43941: HTML+ mode: dangerous apostrophe after fullwidth parenthesis


From: Eli Zaretskii
Subject: bug#43941: HTML+ mode: dangerous apostrophe after fullwidth parenthesis
Date: Mon, 12 Oct 2020 20:38:15 +0300

> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: Stephen Berman <stephen.berman@gmx.net>,  jidanni@jidanni.org,
>   43941@debbugs.gnu.org
> Date: Mon, 12 Oct 2020 19:21:08 +0200
> 
> diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
> index f3d8695e24..92a2215ed7 100644
> --- a/lisp/textmodes/sgml-mode.el
> +++ b/lisp/textmodes/sgml-mode.el
> @@ -193,7 +193,7 @@ sgml-mode-syntax-table
>  
>  (defconst sgml-tag-syntax-table
>    (let ((table (sgml-make-syntax-table sgml-specials)))
> -    (dolist (char '(?\( ?\) ?\{ ?\} ?\[ ?\] ?$ ?% ?& ?* ?+ ?/))
> +    (dolist (char '(?\( ?\) ?\{ ?\} ?\[ ?\] ?$ ?% ?& ?* ?+ ?/ ?())
>        (modify-syntax-entry char "." table))
>      (unless (memq ?' sgml-specials)
>        ;; Avoid that skipping a tag backwards skips any "'" prefixing it.
> 
> If this is the right approach, then all such characters would have to be
> added, or is there a better alternative?

It shouldn't be hard to add to the list some of the characters that
have the paired bracket semantics, see uni-brackets.el.  But some
SGML/HTML expert should say if that is TRT, indeed.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]