Skip to content

Commit 80f7a6b

Browse files
committed
#189 - shebang comment
1 parent 9a39eb9 commit 80f7a6b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Domain/HydraScript.Domain.Constants/TokenTypes.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ public static IEnumerable<Dto> Stream
1313
get
1414
{
1515
yield return new(
16-
Tag: "Comment",
16+
Tag: "DoubleSlashComment",
1717
Pattern: "[/]{2}.*",
1818
Priority: 0,
1919
CanIgnore: true);
2020

21+
yield return new(
22+
Tag: "ShebangComment",
23+
Pattern: "[#].*",
24+
Priority: 1,
25+
CanIgnore: true);
26+
2127
yield return new(
2228
Tag: "Ident",
2329
Pattern: "[a-zA-Z][a-zA-Z0-9]*",

0 commit comments

Comments
 (0)