-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-CompilersFeature - Run File#: and #! directives and file-based C# programs#: and #! directives and file-based C# programs
Milestone
Description
Right now, if the #! is not at the very first character of a file, it will not be parsed as a shebang directive:
roslyn/src/Compilers/CSharp/Portable/Parser/DirectiveParser.cs
Lines 111 to 114 in 256273c
| if (contextualKind == SyntaxKind.ExclamationToken && hashPosition == 0 && !hash.HasTrailingTrivia) | |
| { | |
| result = this.ParseShebangDirective(hash, this.EatToken(SyntaxKind.ExclamationToken), isActive); | |
| } |
Metadata
Metadata
Assignees
Labels
Area-CompilersFeature - Run File#: and #! directives and file-based C# programs#: and #! directives and file-based C# programs