Skip to content

New php files being set to Vue Component syntax #39

@rawcreative

Description

@rawcreative

When creating a new php file in Sublime (Build 3103), if php content is pasted into the file before any other content is created, the file automatically gets it's syntax set to Vue Component, which is obviously incorrect since it's not a .vue file.

While I've only played with creating syntax files in sublime, I'm pretty sure this is due to these lines here: https://github.com/vuejs/vue-syntax-highlight/blob/master/vue.tmLanguage#L9-L10 which are looking at the first line to see if it's doctype, html or php tags. I'm unsure why this is included in the syntax file since none of those three are tags that would represent a .vue component file.

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy