microsoft / microsoft/vscode-textmate
Matching multiline text
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 678
- Forks
- 135
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 2
Description
My language has syntax that is structured as follows:
<Group 1>
<Group 2>
<Group 2>
<Group 1>
<Group 2>
<Group 2>
<Group 2>
...
There are sets of one "Group 1" followed by any number of "Group 2" before a blank line, after which another set starts. I want Group 1 highlighted differently than Group 2. There are no identifying features within the line, just its place within the file. I tried using newlines in a regex to capture these but it didn't work, and it seems that VSCode only goes one line at a time for the regex.
I can't use a language server since this needs to work in VSCode web, how can I achieve this highlighting?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining how TextMate grammars and VSCode regex tokenization handle line boundaries, especially in the VSCode web environment. Determine whether multiline matching can support the described Group 1 and Group 2 structure; done would be a documented or implemented way to highlight the groups without a language server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100