GNU bug report logs -
#47488
Treatment of # in js.el
Previous Next
Reported by: Reuben Thomas <rrt <at> sc3d.org>
Date: Mon, 29 Mar 2021 21:29:02 UTC
Severity: minor
Tags: fixed
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #53 received at 47488 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Wed, 12 May 2021 15:32:01 +0200
> Cc: 47488 <at> debbugs.gnu.org, Reuben Thomas <rrt <at> sc3d.org>
>
> I've never heard of the #file directive, but:
>
> ;; `cpp-font-lock-keywords-source-directives' is calculated from:
> ;;
> ;; (regexp-opt
> ;; '("define" "elif" "else" "endif" "error" "file" "if" "ifdef"
> ;; "ifndef" "import" "include" "line" "pragma" "undef" "warning"))
>
> I spent 30 seconds googling, and I could find no list of directive that
> includes #file, so... Bug #warning is used, and so is #line, so perhaps
> it's an old thing?
The #file directive is emitted by the preprocessor, so that later
compiling the preprocessed source would yield the correct source line
numbers. Try preprocessing some .c file with "gcc -E" and you will
see these directives in the output.
This bug report was last modified 4 years and 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.