Skip to content

[BUG] Grammar source contains incompatible syntax #925

Closed
@Nixinova

Description

Describe the Bug

The tmlanguage file for this repository contains syntax that is incompatible with GitHub Linguist. This is blocking Astro from being added to GitHub's list of languages. github-linguist/linguist#5460 (comment)

The issue lies in how some capture groups are formatted. The indices should be integer strings in an object, not an array.

❌ Wrong

"captures": [
  {"name": "..."}
]

✔️ Right

"captures": {
  "0": {"name": "..."}
}

Activity

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

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