From 42905ebfcfbfeaaeaf90ba65f84fa792ec8dad5b Mon Sep 17 00:00:00 2001 From: Daniel Jeong Date: Mon, 7 Aug 2023 09:54:24 +0000 Subject: [PATCH] End incomplete statements in block --- grammars/csharp.tmLanguage | 10 +++++----- grammars/csharp.tmLanguage.cson | 10 +++++----- src/csharp.tmLanguage.yml | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/grammars/csharp.tmLanguage b/grammars/csharp.tmLanguage index 882c9e1..c29aa56 100644 --- a/grammars/csharp.tmLanguage +++ b/grammars/csharp.tmLanguage @@ -2759,7 +2759,7 @@ end - (?=;) + (?=[;}]) patterns @@ -2816,7 +2816,7 @@ end - (?=;) + (?=[;}]) patterns @@ -2860,7 +2860,7 @@ end - (?=;) + (?=[;}]) patterns @@ -2901,7 +2901,7 @@ end - (?=;) + (?=[;}]) patterns @@ -2941,7 +2941,7 @@ end - (?=;) + (?=[;}]) patterns diff --git a/grammars/csharp.tmLanguage.cson b/grammars/csharp.tmLanguage.cson index 052f585..23fe755 100644 --- a/grammars/csharp.tmLanguage.cson +++ b/grammars/csharp.tmLanguage.cson @@ -1750,7 +1750,7 @@ repository: beginCaptures: "1": name: "keyword.control.goto.cs" - end: "(?=;)" + end: "(?=[;}])" patterns: [ { begin: "\\b(case)\\b" @@ -1780,7 +1780,7 @@ repository: beginCaptures: "1": name: "keyword.control.flow.return.cs" - end: "(?=;)" + end: "(?=[;}])" patterns: [ { include: "#ref-modifier" @@ -1801,7 +1801,7 @@ repository: beginCaptures: "1": name: "keyword.control.flow.throw.cs" - end: "(?=;)" + end: "(?=[;}])" patterns: [ { include: "#expression" @@ -1823,7 +1823,7 @@ repository: name: "keyword.control.flow.yield.cs" "2": name: "keyword.control.flow.return.cs" - end: "(?=;)" + end: "(?=[;}])" patterns: [ { include: "#expression" @@ -1841,7 +1841,7 @@ repository: beginCaptures: "1": name: "keyword.other.await.cs" - end: "(?=;)" + end: "(?=[;}])" patterns: [ { include: "#statement" diff --git a/src/csharp.tmLanguage.yml b/src/csharp.tmLanguage.yml index baf8faa..f08eb11 100644 --- a/src/csharp.tmLanguage.yml +++ b/src/csharp.tmLanguage.yml @@ -1032,7 +1032,7 @@ repository: begin: (?