Skip to content

PHP starting tag support #37

@cprn

Description

@cprn

It would be nice for coc-pairs to detect php file type and have a special support for < as the 1st character of the 1st or 2nd line (because 1st line sometimes contains a shebang) that would delete the closing > if the next character is ?.

The issue is whenever I type < at the beginning of a PHP file coc-pairs adds the closing angular bracket > which is not only cumbersome to delete each time the user creates a new class but also prevents some popular (e.g. honza's] PHP snippets from working correctly, e.g. <? expands to the following (notice the closing bracket):

<?php

VISUAL>

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions