Skip to content

Commit

Permalink
feat: Allow nested embedding [release] (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning authored Oct 15, 2024
1 parent 1533a16 commit 63b8ad0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 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.3.0] - 2024-10-15

### Changed

- `injectionSelector` to allow nested embedded languages

## [1.2.0] - 2024-09-15

### Added
Expand Down Expand Up @@ -163,7 +169,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.2.0...HEAD
[unreleased]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.3.0...HEAD
[1.3.0]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.0.6...v1.1.0
[1.0.6]: https://github.com/harrydowning/vscode-yaml-embedded-languages/compare/v1.0.5...v1.0.6
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.2.0",
"version": "1.3.0",
"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 @@ -89,7 +89,7 @@ export class InjectionGrammar extends Writable {
valueOf() {
return {
scopeName: this.scopeName,
injectionSelector: `L:${this.injectionScopeName} -comment -string -meta.embedded`,
injectionSelector: `L:${this.injectionScopeName} -comment -string`,
patterns: this.#getPatterns(),
};
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scopeName": "source.github-actions-workflow.injection",
"injectionSelector": "L:source.github-actions-workflow -comment -string -meta.embedded",
"injectionSelector": "L:source.github-actions-workflow -comment -string",
"patterns": [
{
"begin": "#\\s*yaml-embedded-languages\\s*$",
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/source.yaml.injection.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scopeName": "source.yaml.injection",
"injectionSelector": "L:source.yaml -comment -string -meta.embedded",
"injectionSelector": "L:source.yaml -comment -string",
"patterns": [
{
"begin": "#\\s*yaml-embedded-languages\\s*$",
Expand Down

0 comments on commit 63b8ad0

Please sign in to comment.