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

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

bug#25529: diagnosis and one approach to a fix


From: Stefan Monnier
Subject: bug#25529: diagnosis and one approach to a fix
Date: Sat, 11 Feb 2017 10:41:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> I'm making the change, but I think the fix has to look like this:

>       (when (and (looking-at js--syntax-propertize-regexp-regexp)
>                  ;; Don't touch text after END.
>                  (<= (match-end 1) end))
>         (put-text-property (match-beginning 1) (match-end 1)
>                            'syntax-table (string-to-syntax "\"/"))
>         (goto-char (match-end 0))))))

> ... the reason being, in the new regexp match #1 is just the terminating
> "/", which is the only character whose syntax we want to modify here.

Ah, I had misunderstood the code.  Then yes.


        Stefan





reply via email to

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