From 6ea616a4f7da778b4e87c53357f708b2b0e32162 Mon Sep 17 00:00:00 2001 From: Harry Downing <74541141+harrydowning@users.noreply.github.com> Date: Mon, 9 Sep 2024 22:02:10 +0100 Subject: [PATCH] fix: Grammar for VS Code 1.93.0 YAML bug [release] (#45) --- CHANGELOG.md | 9 +- package-lock.json | 4 +- package.json | 2 +- src/injection-grammar.ts | 2 +- ...actions-workflow.injection.tmLanguage.json | 142 +++++++++--------- .../source.yaml.injection.tmLanguage.json | 142 +++++++++--------- 6 files changed, 154 insertions(+), 147 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 310df0d..2df0889 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/package-lock.json b/package-lock.json index a2f9255..1dcb6a4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "yaml-embedded-languages", - "version": "1.0.4", + "version": "1.0.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "yaml-embedded-languages", - "version": "1.0.4", + "version": "1.0.5", "license": "MIT", "devDependencies": { "@eslint/js": "^9.9.0", diff --git a/package.json b/package.json index e71396a..b40c96d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/injection-grammar.ts b/src/injection-grammar.ts index 279495c..ea5e6df 100644 --- a/src/injection-grammar.ts +++ b/src/injection-grammar.ts @@ -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", diff --git a/syntaxes/source.github-actions-workflow.injection.tmLanguage.json b/syntaxes/source.github-actions-workflow.injection.tmLanguage.json index bb90a62..99f7477 100644 --- a/syntaxes/source.github-actions-workflow.injection.tmLanguage.json +++ b/syntaxes/source.github-actions-workflow.injection.tmLanguage.json @@ -3,7 +3,7 @@ "injectionSelector": "L:source.github-actions-workflow -comment", "patterns": [ { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bat)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bat)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -36,7 +36,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bibtex)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bibtex)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -69,7 +69,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -102,7 +102,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c#)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c#)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -135,7 +135,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c\\+\\+)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c\\+\\+)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -168,7 +168,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:clojure)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:clojure)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -201,7 +201,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:coffee)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:coffee)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -234,7 +234,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:cpp)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:cpp)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -267,7 +267,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:csharp)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:csharp)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -300,7 +300,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:css)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:css)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -333,7 +333,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:cuda)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:cuda)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -366,7 +366,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dart)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dart)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -399,7 +399,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:diff)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:diff)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -433,7 +433,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dockercompose)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dockercompose)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -466,7 +466,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dockerfile)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dockerfile)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -499,7 +499,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:f#)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:f#)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -532,7 +532,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:fsharp)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:fsharp)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -565,7 +565,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:go)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:go)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -598,7 +598,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:groovy)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:groovy)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -631,7 +631,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:handlebars)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:handlebars)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -664,7 +664,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:hlsl)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:hlsl)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -697,7 +697,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:html)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:html)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -730,7 +730,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ini)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ini)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -763,7 +763,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jade)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jade)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -796,7 +796,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:java)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:java)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -829,7 +829,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:javascript)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:javascript)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -862,7 +862,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:js)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:js)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -895,7 +895,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:json)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:json)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -928,7 +928,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsonc)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsonc)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -961,7 +961,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsonl)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsonl)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -994,7 +994,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsx)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsx)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1027,7 +1027,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:julia)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:julia)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1060,7 +1060,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:latex)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:latex)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1094,7 +1094,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:less)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:less)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1127,7 +1127,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:log)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:log)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1160,7 +1160,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:lua)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:lua)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1193,7 +1193,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:make)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:make)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1226,7 +1226,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:makefile)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:makefile)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1259,7 +1259,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:markdown)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:markdown)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1293,7 +1293,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:math)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:math)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1326,7 +1326,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:objc)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:objc)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1359,7 +1359,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:objcpp)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:objcpp)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1392,7 +1392,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:perl)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:perl)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1425,7 +1425,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:php)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:php)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1458,7 +1458,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:pip)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:pip)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1491,7 +1491,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:powerfx)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:powerfx)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1524,7 +1524,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:powershell)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:powershell)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1557,7 +1557,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:properties)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:properties)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1590,7 +1590,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:py)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:py)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1623,7 +1623,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:python)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:python)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1656,7 +1656,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:r)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:r)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1689,7 +1689,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:raku)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:raku)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1722,7 +1722,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:razor)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:razor)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1755,7 +1755,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:regex)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:regex)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1788,7 +1788,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:requirements)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:requirements)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1821,7 +1821,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:rst)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:rst)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1854,7 +1854,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ruby)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ruby)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1887,7 +1887,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:rust)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:rust)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1920,7 +1920,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:scss)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:scss)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1953,7 +1953,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:shaderlab)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:shaderlab)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1986,7 +1986,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:shell)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:shell)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2019,7 +2019,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:sql)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:sql)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2052,7 +2052,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:swift)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:swift)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2085,7 +2085,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:tex)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:tex)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2118,7 +2118,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ts)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ts)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2151,7 +2151,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:tsx)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:tsx)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2184,7 +2184,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:typescript)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:typescript)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2217,7 +2217,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:vb)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:vb)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2250,7 +2250,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:xml)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:xml)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2283,7 +2283,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:xsl)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:xsl)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2316,7 +2316,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:yaml)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:yaml)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" diff --git a/syntaxes/source.yaml.injection.tmLanguage.json b/syntaxes/source.yaml.injection.tmLanguage.json index 0e5ff74..d12fb93 100644 --- a/syntaxes/source.yaml.injection.tmLanguage.json +++ b/syntaxes/source.yaml.injection.tmLanguage.json @@ -3,7 +3,7 @@ "injectionSelector": "L:source.yaml -comment", "patterns": [ { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bat)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bat)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -36,7 +36,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bibtex)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:bibtex)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -69,7 +69,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -102,7 +102,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c#)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c#)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -135,7 +135,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c\\+\\+)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:c\\+\\+)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -168,7 +168,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:clojure)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:clojure)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -201,7 +201,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:coffee)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:coffee)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -234,7 +234,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:cpp)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:cpp)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -267,7 +267,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:csharp)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:csharp)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -300,7 +300,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:css)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:css)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -333,7 +333,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:cuda)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:cuda)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -366,7 +366,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dart)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dart)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -399,7 +399,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:diff)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:diff)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -433,7 +433,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dockercompose)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dockercompose)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -466,7 +466,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dockerfile)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:dockerfile)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -499,7 +499,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:f#)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:f#)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -532,7 +532,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:fsharp)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:fsharp)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -565,7 +565,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:go)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:go)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -598,7 +598,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:groovy)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:groovy)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -631,7 +631,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:handlebars)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:handlebars)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -664,7 +664,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:hlsl)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:hlsl)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -697,7 +697,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:html)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:html)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -730,7 +730,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ini)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ini)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -763,7 +763,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jade)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jade)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -796,7 +796,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:java)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:java)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -829,7 +829,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:javascript)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:javascript)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -862,7 +862,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:js)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:js)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -895,7 +895,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:json)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:json)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -928,7 +928,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsonc)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsonc)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -961,7 +961,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsonl)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsonl)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -994,7 +994,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsx)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:jsx)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1027,7 +1027,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:julia)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:julia)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1060,7 +1060,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:latex)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:latex)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1094,7 +1094,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:less)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:less)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1127,7 +1127,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:log)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:log)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1160,7 +1160,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:lua)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:lua)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1193,7 +1193,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:make)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:make)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1226,7 +1226,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:makefile)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:makefile)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1259,7 +1259,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:markdown)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:markdown)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1293,7 +1293,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:math)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:math)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1326,7 +1326,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:objc)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:objc)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1359,7 +1359,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:objcpp)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:objcpp)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1392,7 +1392,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:perl)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:perl)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1425,7 +1425,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:php)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:php)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1458,7 +1458,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:pip)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:pip)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1491,7 +1491,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:powerfx)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:powerfx)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1524,7 +1524,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:powershell)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:powershell)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1557,7 +1557,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:properties)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:properties)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1590,7 +1590,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:py)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:py)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1623,7 +1623,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:python)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:python)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1656,7 +1656,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:r)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:r)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1689,7 +1689,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:raku)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:raku)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1722,7 +1722,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:razor)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:razor)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1755,7 +1755,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:regex)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:regex)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1788,7 +1788,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:requirements)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:requirements)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1821,7 +1821,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:rst)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:rst)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1854,7 +1854,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ruby)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ruby)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1887,7 +1887,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:rust)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:rust)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1920,7 +1920,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:scss)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:scss)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1953,7 +1953,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:shaderlab)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:shaderlab)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -1986,7 +1986,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:shell)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:shell)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2019,7 +2019,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:sql)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:sql)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2052,7 +2052,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:swift)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:swift)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2085,7 +2085,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:tex)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:tex)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2118,7 +2118,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ts)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:ts)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2151,7 +2151,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:tsx)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:tsx)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2184,7 +2184,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:typescript)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:typescript)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2217,7 +2217,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:vb)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:vb)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2250,7 +2250,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:xml)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:xml)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2283,7 +2283,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:xsl)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:xsl)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" @@ -2316,7 +2316,7 @@ ] }, { - "begin": "(?i)(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:yaml)\\s*\\n)", + "begin": "(?i)[ \t]*(?:(\\|)|(>))([1-9])?([-+])?\\s+(#\\s*(?:yaml)\\s*\\n)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml"