镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

PHP syntax not recognized inside HTML quotes #409

Description

@wasinwill

If an HTML code similar to style="background-image:url(<?= $image_url ?>)" is added to a .php file, Atom fails to recognize PHP tags if any character is entered after url(. See picture below:

Screenshot 2021-01-03 213839

After inspecting the elements with Developer Tools, it looks like it isn't theme-related. The example below shows when it works, with a code like url(<?= $image_url ?>). The tag is recognized and encapsulted inside a syntax--php element.

Screenshot 2021-01-03 214257

However, when a character is added after the bracket, such as url(/img/<?= $image_url ?>.jpg), the tag is no longer recognized and sits inside a syntax-css element.

Screenshot 2021-01-03 214359


Version 1.53.0 x64
Electron 6.1.12
Chrome 76.0.3809.146
Node v12.4.0
Theme One Dark

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions