Closed Bug 1416699 Opened 2 years ago Closed 2 years ago

Emacs's syntax highlighter is broken if no space is between #include and comment

Categories

(Core :: General, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(1 file)

The syntax highlighter of my editor (Emacs) is broken if a comment // is follow immediately after #include "SomeHeader.h".

For example: #include "nsISelectionController.h"//for the enums

I'd like to fix this by adding a space between them.

More here:
https://dxr.mozilla.org/mozilla-central/search?q=regexp%3A%22include+%5C%22.*%5C%22%2F%2F%22&redirect=false
Attachment #8927774 - Flags: review?(jeremychen)
Comment on attachment 8927774 [details]
Bug 1416699 - Add a space between #include and comment.

https://reviewboard.mozilla.org/r/199056/#review204076

Looks like a Emacs's bug to me... Since this is just a whitespace-only change, should be fine I guess.
Attachment #8927774 - Flags: review?(jeremychen) → review+
Pushed by tlin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/951e8ff82169
Add a space between #include and comment. r=jeremychen
https://hg.mozilla.org/mozilla-central/rev/951e8ff82169
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.