From 1711895d7b8824ac96a66bb7bf6d3af17fc52f19 Mon Sep 17 00:00:00 2001 From: Alvin Joy <89687635+alvinsjoy@users.noreply.github.com> Date: Sat, 10 Aug 2024 23:06:05 +0530 Subject: [PATCH] enh(csharp) add contextual keywords `file`, `args`, `dynamic`, `record`, `required` and `scoped` (#4087) --- CHANGES.md | 2 ++ src/languages/csharp.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 8b1b9d3dc4..d8ef2f8890 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`, `record`, `required` and `scoped` [Alvin Joy][] New Grammars: @@ -35,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 diff --git a/src/languages/csharp.js b/src/languages/csharp.js index 2bc2e26c2f..f3690e0480 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', @@ -137,7 +140,10 @@ export default function(hljs) { 'or', 'orderby', 'partial', + 'record', 'remove', + 'required', + 'scoped', 'select', 'set', 'unmanaged',