-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Keuvain
committed
Aug 7, 2016
1 parent
fcff846
commit 0efc969
Showing
8 changed files
with
94 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,3 +251,4 @@ paket-files/ | |
.idea/ | ||
*.sln.iml | ||
tools/ | ||
_site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// stylecop.header | ||
namespace Strinken.Common | ||
{ | ||
/// <summary> | ||
/// Collection of common extensions methods. | ||
/// </summary> | ||
internal static class Extensions | ||
{ | ||
/// <summary> | ||
/// Tests if a <see cref="char"/> is a valid token name character : a-z, A-Z, 0-9, - and _ | ||
/// </summary> | ||
/// <param name="c">The <see cref="char"/> to test.</param> | ||
/// <returns>A value indicating whether the <see cref="char"/> is a valid token name character</returns> | ||
public static bool IsValidTokenNameCharacter(this char c) => !char.IsLetter(c) && c != '-' && c != '_'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Strinken.Parser; | ||
|
||
namespace Strinken.Tests.TestsClasses | ||
{ | ||
public class InvalidNameFilter : IFilter | ||
{ | ||
public string Description => string.Empty; | ||
public string Name => "name!"; | ||
public string Usage => string.Empty; | ||
|
||
public string Resolve(string value, string[] arguments) => value; | ||
|
||
public bool Validate(string[] arguments) => true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Strinken.Parser; | ||
|
||
namespace Strinken.Tests.TestsClasses | ||
{ | ||
public class InvalidNameTag : ITag<string> | ||
{ | ||
public string Description => string.Empty; | ||
public string Name => "dollar$"; | ||
|
||
public string Resolve(string value) => value; | ||
} | ||
} |