Skip to content

bug: {:else if ...} is not highlighted correctly #14

Open
@charbelnicolas

Description

@charbelnicolas

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

tree-sitter 0.24.3 (bdfe32402e85673bbc693216f0a6ef72c98bb665)

Describe the bug

When using {:else if} it won't highlight it in the proper color
Image

Steps To Reproduce/Bad Parse Tree

Use an {#if ...} statement with an {:else if ...} inside as shown in the above screenschot...

Expected Behavior/Parse Tree

{:else if ...} should be highlighted in the same color as the {#if ...} statement

Repro

{#if true}
  hello
{:else if true}
  hello again
{/if}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions