mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 04:31:18 +03: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
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 New Issue
Block a user