Skip to content

Cairo grammar breaks when upgrading to 1.24 #924

@julio4

Description

@julio4

Validations

Describe the bug

Without any changes in the grammar, it seems upgrading from 1.23 to ^1.24 cause unexpected breaking changes.
In my case it breaks the cairo highlighting.

It can be easily reproduced with tm-grammars previews: https://deploy-preview-100--textmate-grammars-themes.netlify.app/?theme=github-dark&grammar=cairo (from shikijs/textmate-grammars-themes#100) (shiki 1.20.0, but it works in 1.23.1 as well)

Compared to the current version:

Image

Reproduction

textmate grammars preview

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions