Skip to content

Commit

Permalink
fix: Grammar for VS Code 1.93.0 YAML bug [release] (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning authored Sep 9, 2024
1 parent f03aa10 commit 6ea616a
Show file tree
Hide file tree
Showing 6 changed files with 154 additions and 147 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

## [1.0.5] - 2024-09-09

### Fixed

- Grammar temporarily for VS Code 1.93.0 YAML [bug](https://github.com/microsoft/vscode/issues/224978)

## [1.0.4] - 2024-09-08

## Changed
Expand Down Expand Up @@ -128,7 +134,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- Highlighting support for 40 languages in YAML block-scalars

[unreleased]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.0.4...HEAD
[unreleased]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.0.5...HEAD
[1.0.5]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.0.4...v1.0.5
[1.0.4]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.0.3...v1.0.4
[1.0.3]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.0.2...v1.0.3
[1.0.2]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.0.1...v1.0.2
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yaml-embedded-languages",
"version": "1.0.4",
"version": "1.0.5",
"displayName": "YAML Embedded Languages",
"description": "Support for syntax highlighting within YAML block-scalars.",
"icon": "images/icon.png",
Expand Down
2 changes: 1 addition & 1 deletion src/injection-grammar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class InjectionGrammar extends Writable {
#getPatterns() {
const entries = Object.entries(this.languages);
return entries.map(([id, { scopeName, stripIndent }]) => ({
begin: `(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:${id})\\s*\\n)`,
begin: `(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:${id})\\s*\\n)`,
beginCaptures: {
1: {
name: "keyword.control.flow.block-scalar.literal.yaml",
Expand Down
Loading

0 comments on commit 6ea616a

Please sign in to comment.