dart-lang / dart-lang/dart-vim-plugin

Syntax is not highlighted properly on range pattern matching

Open
#145 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
653
Forks
51
PR merge metrics
No merged PRs in 30d

Description

On a range pattern, only the last variable is highlighted.

Test file: https://github.com/dart-lang/dart-syntax-highlight/blob/master/test/test_files/patterns.dart#L44-L51

Expected result (Visual Studio Code):
![image](https://github.com/dart-lang/dart-vim-plugin/assets/45139213/b5f76608-7f61-48b6-91fe-217ece4a1b54)

Actual result (Vim):
![image](https://github.com/dart-lang/dart-vim-plugin/assets/45139213/939cafaf-21e7-40f8-8dd5-975752e25fc6)

Contributor guide

Open the contributing guide

Research direction

Start with test/test_files/patterns.dart lines 44-51 and compare how the range pattern is highlighted in Vim with the provided Visual Studio Code result. Trace the Vim syntax rules applied to that fixture and verify that all variables in the range pattern receive the expected highlighting.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.