Skip to content

Commit

Permalink
Merge pull request #451 from edhzsz/add_storage_to_packet_colorizer_k…
Browse files Browse the repository at this point in the history
…ewywords

Add new keyword "storage" to the "paket" code highlighter
  • Loading branch information
matthid authored Feb 4, 2018
2 parents b91a51b + ab29b60 commit 63db1ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CSharpFormat/PaketFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

/// <summary>
/// Matches version numbers
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions tests/FSharp.Literate.Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -331,6 +332,7 @@ let ``Correctly handles Paket coloring`` () =
html |> shouldContainText "<span class=\"k\">redirects</span>"
html |> shouldContainText "<span class=\"k\">strategy</span>"
html |> shouldContainText "<span class=\"k\">version_in_path</span>"
html |> shouldContainText "<span class=\"k\">storage</span>"

html |> shouldNotContainText "<span class=\"k\">http</span>s"
html |> shouldNotContainText ".<span class=\"k\">git</span>"
Expand Down

0 comments on commit 63db1ba

Please sign in to comment.