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

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

bug#47488: Treatment of # in js.el


From: Dmitry Gutov
Subject: bug#47488: Treatment of # in js.el
Date: Mon, 10 May 2021 15:14:11 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 10.05.2021 11:34, Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
Sorry not to be more useful here, but one suggestion: I doubt there
are many code bases that use the hash character in both senses, so if
there were a solution that allowed both to be supported but not at the
same time, that would already be a big improvement on the current
situation. (My impression is that using cpp with JavaScript is very
much a legacy technique.)

Well, Mozilla codebase is the one that does both (and I doubt there are many other examples of using C preprocessor in JS).

We could add a custom var that disables this behavior, of course. js2-mode has one, but it only affects the parser, not the indentation behavior.





reply via email to

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