Support csharp-script syntax. (#1425)

```
#!/usr/bin/env dotnet-script
// Set Runtime
#! "netcoreapp3.0"
// Imports
#load "myAssembly.dll"
#r "nuget:CliWrap,2.5.0"
```
This syntax file basically imports the `csharp` rules and adds it's custom pre-processors.
This commit is contained in:
trrbl 2020-04-10 19:57:36 +02:00 committed by GitHub
parent bd8c0d25c8
commit ffd7b5c770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
runtime/syntax/csx.yaml Normal file
View File

@ -0,0 +1,8 @@
filetype: csharp-script
detect:
filename: "\\.csx$"
header: "^#!.*/(env +)?dotnet-script( |$)"
rules:
- include: "csharp"
- preproc: "\\B(\\#!|\\#[r|load|]+\\b)"