mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-04 15:10:27 +00:00
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:
parent
bd8c0d25c8
commit
ffd7b5c770
1 changed files with 8 additions and 0 deletions
8
runtime/syntax/csx.yaml
Normal file
8
runtime/syntax/csx.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
filetype: csharp-script
|
||||
detect:
|
||||
filename: "\\.csx$"
|
||||
header: "^#!.*/(env +)?dotnet-script( |$)"
|
||||
|
||||
rules:
|
||||
- include: "csharp"
|
||||
- preproc: "\\B(\\#!|\\#[r|load|]+\\b)"
|
||||
Loading…
Reference in a new issue