From ccb7f561cf38b903f55598ea6e4ea6ca806f1b42 Mon Sep 17 00:00:00 2001 From: Alvin Joy <89687635+alvinsjoy@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:32:51 +0530 Subject: [PATCH 1/5] Add new contextual keywords --- src/languages/csharp.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/languages/csharp.js b/src/languages/csharp.js index 2bc2e26c2f..024d5ca681 100644 --- a/src/languages/csharp.js +++ b/src/languages/csharp.js @@ -117,11 +117,14 @@ export default function(hljs) { 'alias', 'and', 'ascending', + 'args', 'async', 'await', 'by', 'descending', + 'dynamic', 'equals', + 'file', 'from', 'get', 'global', @@ -131,13 +134,17 @@ export default function(hljs) { 'join', 'let', 'nameof', + 'nint', 'not', 'notnull', 'on', 'or', 'orderby', 'partial', + 'record', 'remove', + 'required', + 'scoped', 'select', 'set', 'unmanaged', From c6327b830ecb25d4126493c91bee01da51bf65c9 Mon Sep 17 00:00:00 2001 From: Alvin Joy <89687635+alvinsjoy@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:36:59 +0530 Subject: [PATCH 2/5] Update CHANGES --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 8b1b9d3dc4..e020fddd1f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -85,6 +85,7 @@ Core Grammars: - enh(css) add `inset`, `inset-*`, `border-start-*-radius` and `border-end-*-radius` attributes [Vasily Polovnyov][] - enh(css) add `text-decoration-skip-ink`, `text-decoration-thickness` and `text-underline-offset` attributes [Vasily Polovnyov][] - enh(java) add `when` to be recognized as a keyword in Java [Chiel van de Steeg][] +- enh(csharp) add Contextual keywords `file`, `args`, `dynamic`, `nint`, `record`, `required` and `scoped` [Alvin Joy][] New Grammars: From 9dbcd0c91447d12cd1ef58579cc9d6b34734f1df Mon Sep 17 00:00:00 2001 From: Alvin Joy <89687635+alvinsjoy@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:48:22 +0530 Subject: [PATCH 3/5] Accidently put changes in the previous version --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e020fddd1f..f7562d46d8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,6 +14,7 @@ Core Grammars: - enh(erlang) OTP 27 Sigil type [nixxquality][] - enh(erlang) OTP25/27 maybe statement [nixxquality][] - enh(dart) Support digit-separators in number literals [Sam Rawlins][] +- enh(csharp) add Contextual keywords `file`, `args`, `dynamic`, `nint`, `record`, `required` and `scoped` [Alvin Joy][] New Grammars: @@ -85,7 +86,6 @@ Core Grammars: - enh(css) add `inset`, `inset-*`, `border-start-*-radius` and `border-end-*-radius` attributes [Vasily Polovnyov][] - enh(css) add `text-decoration-skip-ink`, `text-decoration-thickness` and `text-underline-offset` attributes [Vasily Polovnyov][] - enh(java) add `when` to be recognized as a keyword in Java [Chiel van de Steeg][] -- enh(csharp) add Contextual keywords `file`, `args`, `dynamic`, `nint`, `record`, `required` and `scoped` [Alvin Joy][] New Grammars: From 62bd67c0c284aa04377530440246d80ea61d2fea Mon Sep 17 00:00:00 2001 From: Alvin Joy <89687635+alvinsjoy@users.noreply.github.com> Date: Fri, 2 Aug 2024 19:17:44 +0530 Subject: [PATCH 4/5] remove nint from contextual keywords --- src/languages/csharp.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/languages/csharp.js b/src/languages/csharp.js index 024d5ca681..f3690e0480 100644 --- a/src/languages/csharp.js +++ b/src/languages/csharp.js @@ -134,7 +134,6 @@ export default function(hljs) { 'join', 'let', 'nameof', - 'nint', 'not', 'notnull', 'on', From f75dc14306b3d2a819928691d2ba891945977062 Mon Sep 17 00:00:00 2001 From: Alvin Joy <89687635+alvinsjoy@users.noreply.github.com> Date: Sat, 10 Aug 2024 20:56:29 +0530 Subject: [PATCH 5/5] add links and remove nint from changes --- CHANGES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index f7562d46d8..d8ef2f8890 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,7 +14,7 @@ Core Grammars: - enh(erlang) OTP 27 Sigil type [nixxquality][] - enh(erlang) OTP25/27 maybe statement [nixxquality][] - enh(dart) Support digit-separators in number literals [Sam Rawlins][] -- enh(csharp) add Contextual keywords `file`, `args`, `dynamic`, `nint`, `record`, `required` and `scoped` [Alvin Joy][] +- enh(csharp) add Contextual keywords `file`, `args`, `dynamic`, `record`, `required` and `scoped` [Alvin Joy][] New Grammars: @@ -36,6 +36,7 @@ CONTRIBUTORS [William Wilkinson]: https://github.com/wilkinson4 [nixxquality]: https://github.com/nixxquality [srawlins]: https://github.com/srawlins +[Alvin Joy]: https://github.com/alvinsjoy ## Version 11.10.0