Skip to content

Commit

Permalink
fix while pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning committed Aug 26, 2024
1 parent 3702f1d commit 7fbdca1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const getRepository = (languages) => {
{
begin: "(?>^|\\G)([ ]+)(?! )",
end: "^(?!\\1|\\s*$)",
while: stripIndent ? "\\1" : undefined,
while: stripIndent ? "^$|\\1" : undefined,
name: `${LANGUAGE_SCOPE_PREFIX}.${id}`,
patterns: [{ include: scopeName }],
},
Expand Down
6 changes: 3 additions & 3 deletions syntaxes/injection.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@
{
"begin": "(?>^|\\G)([ ]+)(?! )",
"end": "^(?!\\1|\\s*$)",
"while": "\\1",
"while": "^$|\\1",
"name": "meta.embedded.inline.diff",
"patterns": [
{
Expand Down Expand Up @@ -1298,7 +1298,7 @@
{
"begin": "(?>^|\\G)([ ]+)(?! )",
"end": "^(?!\\1|\\s*$)",
"while": "\\1",
"while": "^$|\\1",
"name": "meta.embedded.inline.latex",
"patterns": [
{
Expand Down Expand Up @@ -1497,7 +1497,7 @@
{
"begin": "(?>^|\\G)([ ]+)(?! )",
"end": "^(?!\\1|\\s*$)",
"while": "\\1",
"while": "^$|\\1",
"name": "meta.embedded.inline.markdown",
"patterns": [
{
Expand Down

0 comments on commit 7fbdca1

Please sign in to comment.