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: Tue, 30 Mar 2021 03:50:09 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 30.03.2021 00:28, Reuben Thomas via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
Is this just because the code was originally based on cc-mode or something, and the references to hash were never removed? Or was cpp used with early JavaScript?? I see references such as js--opt-cpp-start which says "Regexp matching the prefix of a cpp directive", and a match for "#define" in js--update-quick-match-re.

IIRC this was related to the use of the C preprocessor in some JS codebases (Mozilla?). Not sure if that practice stopped.





reply via email to

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