From ab29b6094f8b7fb94456ca0587d90289d4df0fb6 Mon Sep 17 00:00:00 2001 From: Edgar Hernandez Date: Mon, 2 Oct 2017 22:30:35 +0200 Subject: [PATCH] Add new keyword "storage" to the "paket" code highlighter --- src/CSharpFormat/PaketFormat.cs | 4 ++-- tests/FSharp.Literate.Tests/Tests.fs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CSharpFormat/PaketFormat.cs b/src/CSharpFormat/PaketFormat.cs index 9d401912a..bd9271e61 100644 --- a/src/CSharpFormat/PaketFormat.cs +++ b/src/CSharpFormat/PaketFormat.cs @@ -41,10 +41,10 @@ protected override string Keywords return "source nuget github gist git http group framework version_in_path content" + " copy_local redirects import_targets references cache strategy lowest_matching NUGET" + " specs remote File username password copy_content_to_output_dir GITHUB GROUP GIT HTTP" - + " CopyToOutputDirectory"; + + " CopyToOutputDirectory storage"; } } - + /// /// Matches version numbers /// diff --git a/tests/FSharp.Literate.Tests/Tests.fs b/tests/FSharp.Literate.Tests/Tests.fs index 09f050a56..ba4a25939 100644 --- a/tests/FSharp.Literate.Tests/Tests.fs +++ b/tests/FSharp.Literate.Tests/Tests.fs @@ -289,6 +289,7 @@ let ``Correctly handles Paket coloring`` () = lowest_matching: true source https://nuget.org/api/v2 // nuget.org cache //hive/dependencies + storage: none // NuGet packages nuget NUnit ~> 2.6.3 @@ -331,6 +332,7 @@ let ``Correctly handles Paket coloring`` () = html |> shouldContainText "redirects" html |> shouldContainText "strategy" html |> shouldContainText "version_in_path" + html |> shouldContainText "storage" html |> shouldNotContainText "https" html |> shouldNotContainText ".git"