-
Notifications
You must be signed in to change notification settings - Fork 119
Disable PHPDoc Highlighting #371
Comments
Disabling PHPDoc sounds a wrong way of approaching this issue. You'll need to explain a bit about what you are expecting PHP grammar to do compared to for example JavaScript. The equivalent of PHPDoc in JavaScript - JSDoc exists and behaves much in the same way and you seem to have no problem with it. |
In my copy of Atom, at least, |
I wasn't able to find this in default settings of package, but even then you could just set other block start e.g.
JSDoc is also a thing, but it does not color lines not starting with
However, contrary to JSDoc, PHPDoc is integral part of PHP, it is even tokenized by parser (
|
I think the only compromise we can make here is to remove the "invalid line" safety net (if this is what bothers the author) as you are not required to have valid PHPDoc in a comment that begins with |
Sorry if I'm misunderstanding but just to clarify @Ingramz, is your proposal that error highlighting like in line 3 in the example below would no longer be shown as an error? |
@rsese precisely. |
Summary
This package appears to interpret
/**
as a PHPDoc comment, and highlights the rest of the block accordingly. The problem is that/**
may be used for other purposes.Motivation
The package nav-panel-plus, as well as my own packages use this mark to indicate the start of a block, and not a PHPDoc comment.
The JavaScript language does not have any issues with this mark, and I would prefer to us it my own way.
Given that
language-php
doesn’t actually produce the documentation, as far as I know, I don’t see it as a great necessity to highlight it.Describe alternatives you've considered
Seriously, if it’s already customizable, I can’t find it.
Additional context
The text was updated successfully, but these errors were encountered: