mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 04:31:18 +03:00
ffd7b5c770
``` #!/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.
9 lines
183 B
YAML
9 lines
183 B
YAML
filetype: csharp-script
|
|
detect:
|
|
filename: "\\.csx$"
|
|
header: "^#!.*/(env +)?dotnet-script( |$)"
|
|
|
|
rules:
|
|
- include: "csharp"
|
|
- preproc: "\\B(\\#!|\\#[r|load|]+\\b)"
|