Hirse / brackets-outline-list

Extension for Brackets and Phoenix to display a list of the functions or definitions in the currently opened document.
MIT License
79 stars 30 forks source link

PHP: Multi-line strings can break function list #91

Closed Hirse closed 7 years ago

Hirse commented 7 years ago

Details about your environment

What did you do? Please include the actual source code causing the issue.

<?php

# de wijzigingen opslaan
function ajaxEditAccount() {
    # als er een wachtwoord is ingvuld, kun je dit ook wijzigen
    if (!empty($context['account']['password'])) {
        $html .=
            '<li>
            <h4>Wachtwoord wijzigen</h4>
            </li>

            <li>
            <label>Nieuw wachtwoord</label>
            <input type="password" name="new_password1" value="" class="text-input" />
            </li>

            <li>
            <label>Bevestig nieuw wachtwoord</label>
            <input type="password" name="new_password2" value="" class="text-input" />
            </li>

            <li>
            <h4>Huidig wachtwoord</h4>
            </li>

            <li>
            <label>Wachtwoord</label>
            <input type="password" name="password" value="" class="text-input" />
            </li>';
    }
}

What did you expect to happen? How did you expect the Outline to look?

What actually happened? How did the Outline actually look?

@sQuarecoW Please see this issue for your reported problem.

sQuarecoW commented 7 years ago

Nice find!

sQuarecoW commented 7 years ago

Yes, I can confirm it is fixed.