mblode / mblode/vscode-twig-language

Statement Tags do not close

Open Beginner friendly
#34 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
45
Forks
7
PR merge metrics
No merged PRs in 30d

Description

When typing, I expect that {% should automatically create the closing %} tag like {{ creates }}. This is not the case. Instead, I end up with {%} and no closing %.

I see in https://github.com/mblode/vscode-twig-language/blob/master/src/syntaxes/twig.tmLanguage#L757 that it should happen, but it doesn't.

I've tried to check other extensions for similar behavior that may be causing issues, but I can't find anything.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/syntaxes/twig.tmLanguage around line 757 and inspect the statement-tag snippet alongside the working {{ snippet. Reproduce the behavior in VS Code, then verify that typing {% produces the intended closing %} tag without the incorrect {%} result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vscode
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.