-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Porting Rust Template Transpiler to Language Function (Fixes #623)
- Loading branch information
James Brundage
committed
Nov 11, 2023
1 parent
fa2fefc
commit 7a503ab
Showing
2 changed files
with
21 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Language function Rust { | ||
<# | ||
.SYNOPSIS | ||
Rust Language Definition | ||
.DESCRIPTION | ||
Defines Rust within PipeScript. | ||
This allows Rust to be templated. | ||
#> | ||
[ValidatePattern('\.rs$')] | ||
param() | ||
|
||
# We start off by declaring a number of regular expressions: | ||
$startComment = '/\*' # * Start Comments ```\*``` | ||
$endComment = '\*/' # * End Comments ```/*``` | ||
$Whitespace = '[\s\n\r]{0,}' | ||
# * StartRegex ```$IgnoredContext + $StartComment + '{' + $Whitespace``` | ||
$startRegex = "(?<PSStart>${startComment}\{$Whitespace)" | ||
# * EndRegex ```$whitespace + '}' + $EndComment + $ignoredContext``` | ||
$endRegex = "(?<PSEnd>$Whitespace\}${endComment})" | ||
} |
This file was deleted.
Oops, something went wrong.