[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47488: Treatment of # in js.el
From: |
Lars Ingebrigtsen |
Subject: |
bug#47488: Treatment of # in js.el |
Date: |
Tue, 11 May 2021 14:21:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Dmitry Gutov <dgutov@yandex.ru> writes:
> 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.
If we could avoid having a user option, that's be nice...
> Maybe check against a specific list of preprocessor instructions, such
> as #define, #ifdef, etc.
I think that sounds like a good solution. Grepping around a bit,
perhaps `cpp-font-lock-keywords-source-directives' in font-lock.el would
be a good source to use here?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#47488: Treatment of # in js.el, Lars Ingebrigtsen, 2021/05/08
- bug#47488: Treatment of # in js.el, Dmitry Gutov, 2021/05/09
- bug#47488: Treatment of # in js.el, Dmitry Gutov, 2021/05/09
- bug#47488: Treatment of # in js.el, Lars Ingebrigtsen, 2021/05/10
- bug#47488: Treatment of # in js.el, Reuben Thomas, 2021/05/10
- bug#47488: Treatment of # in js.el, Dmitry Gutov, 2021/05/10
- bug#47488: Treatment of # in js.el,
Lars Ingebrigtsen <=
- bug#47488: Treatment of # in js.el, Dmitry Gutov, 2021/05/11
- bug#47488: Treatment of # in js.el, Lars Ingebrigtsen, 2021/05/12
- bug#47488: Treatment of # in js.el, Eli Zaretskii, 2021/05/12
- bug#47488: Treatment of # in js.el, Lars Ingebrigtsen, 2021/05/12
- bug#47488: Treatment of # in js.el, Andreas Schwab, 2021/05/12
- bug#47488: Treatment of # in js.el, Eli Zaretskii, 2021/05/12
- bug#47488: Treatment of # in js.el, Dmitry Gutov, 2021/05/12