mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
73e321aadc
The current comment processing code strips whitespace from a line, calculates comment offsets based on the unstripped version, and then strips those offsets from the stripped version. That means that, for multi-line directives, which typically have two spaces at the front, the offsets are wrong and lines with comments end up with a trailing "# " that the expression parser doesn't understand. This patch fixes the comment parser to correctly use the stripped line for offset calculations instead. Differential Revision: https://phabricator.services.mozilla.com/D38724 --HG-- extra : rebase_source : 9f19314ccab3fb2fa68642ff0aef978cb5c3e13c |
||
---|---|---|
.. | ||
manifestparser | ||
tests | ||
setup.py |