From 9d2be18e0c9e1633e1f5e128410d4afd7e2fa81d Mon Sep 17 00:00:00 2001 From: Bahnschrift <31170809+Bahnschrift@users.noreply.github.com> Date: Sun, 19 Sep 2021 16:32:01 +1000 Subject: [PATCH 1/3] Add F# as alias for F# Added F# as alias for F#. More consistent with C#. --- src/languages/fsharp.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/languages/fsharp.js b/src/languages/fsharp.js index 89d3d98652..c435bec409 100644 --- a/src/languages/fsharp.js +++ b/src/languages/fsharp.js @@ -86,7 +86,10 @@ export default function(hljs) { return { name: 'F#', - aliases: ['fs'], + aliases: [ + 'fs', + 'f#' + ], keywords: KEYWORDS, illegal: /\/\*/, contains: [ From 2c9c4f439cfff3fe405c6d1806b0267c6fcad528 Mon Sep 17 00:00:00 2001 From: Bahnschrift <31170809+Bahnschrift@users.noreply.github.com> Date: Sun, 19 Sep 2021 16:36:14 +1000 Subject: [PATCH 2/3] Update CHANGES.md --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index bbe08e3279..b1dc7e6ee8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -22,6 +22,7 @@ Grammars: - enh(scala) add Scala 3 `end` soft keyword (#3327) [Nicolas Stucki][] - enh(scala) add `inline` soft keyword (#3329) [Nicolas Stucki][] - enh(scala) add `using` soft keyword (#3330) [Nicolas Stucki][] +- enh(fsharp) added `f#` alias [Bahnschrift][] [Austin Schick]: https://github.com/austin-schick [Josh Goebel]: https://github.com/joshgoebel From b9633cd6b758f62407cbb5f654ecc1b905497a45 Mon Sep 17 00:00:00 2001 From: Bahnschrift <31170809+Bahnschrift@users.noreply.github.com> Date: Sun, 19 Sep 2021 18:06:38 +1000 Subject: [PATCH 3/3] Update CHANGES.md --- CHANGES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index b1dc7e6ee8..bd283e0458 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -22,7 +22,7 @@ Grammars: - enh(scala) add Scala 3 `end` soft keyword (#3327) [Nicolas Stucki][] - enh(scala) add `inline` soft keyword (#3329) [Nicolas Stucki][] - enh(scala) add `using` soft keyword (#3330) [Nicolas Stucki][] -- enh(fsharp) added `f#` alias [Bahnschrift][] +- enh(fsharp) added `f#` alias (#3337) [Bahnschrift][] [Austin Schick]: https://github.com/austin-schick [Josh Goebel]: https://github.com/joshgoebel @@ -30,6 +30,7 @@ Grammars: [monochromer]: https://github.com/monochromer [Teletha]: https://github.com/teletha [Nicolas Stucki]: https://github.com/nicolasstucki +[Bahnschrift]: https://github.com/Bahnschrift ## Version 11.2.0