-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Asa Rentschler
committed
Sep 19, 2024
1 parent
ec49b0c
commit 7a7e07b
Showing
6 changed files
with
47 additions
and
24 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 @@ | ||
N/A |
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
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,25 @@ | ||
<mxfile host="Electron" modified="2024-09-18T19:38:25.231Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.6.4 Chrome/124.0.6367.207 Electron/30.0.6 Safari/537.36" etag="-fsxtU7bmETGwLqfFe6R" version="24.6.4" type="device"> | ||
<diagram name="Page-1" id="uTn-evIf6Q-hgHV7F_A3"> | ||
<mxGraphModel dx="1444" dy="586" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="0" /> | ||
<mxCell id="1" parent="0" /> | ||
<mxCell id="UyPC5gKtdMc87XSLSW9K-4" value="" style="html=1;shape=mxgraph.basic.isocube;isoAngle=15;fillColor=#6d8764;fontColor=#ffffff;strokeColor=#3A5431;" parent="1" vertex="1"> | ||
<mxGeometry x="40" y="650" width="100" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="UyPC5gKtdMc87XSLSW9K-27" value="" style="html=1;shape=mxgraph.basic.isocube;isoAngle=15;fillColor=#e51400;fontColor=#ffffff;strokeColor=#B20000;" parent="1" vertex="1"> | ||
<mxGeometry x="40" y="630" width="100" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="UyPC5gKtdMc87XSLSW9K-28" value="" style="html=1;shape=mxgraph.basic.isocube;isoAngle=15;fillColor=#f0a30a;fontColor=#000000;strokeColor=#BD7000;" parent="1" vertex="1"> | ||
<mxGeometry x="40" y="610" width="100" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="UyPC5gKtdMc87XSLSW9K-29" value="" style="html=1;shape=mxgraph.basic.isocube;isoAngle=15;fillColor=#76608a;fontColor=#ffffff;strokeColor=#432D57;" parent="1" vertex="1"> | ||
<mxGeometry x="40" y="590" width="100" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="rRtnU6kyMSIYgJpVnsUB-1" value="<font face="Helvetica">VELOCITY</font>" style="text;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;glass=0;shadow=0;textShadow=0;fontSize=136;fontFamily=Courier New;labelBorderColor=none;labelBackgroundColor=none;html=1;horizontal=1;fontStyle=0;fontColor=#666666;" parent="1" vertex="1"> | ||
<mxGeometry x="210" y="600" width="570" height="120" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,51 +1,49 @@ | ||
" Vim syntax file | ||
" Language: Velocity Template | ||
" Maintainer: Asa Rentschler | ||
" Latest Revision: April, 5, 2024 | ||
" Latest Revision: September, 19, 2024 | ||
" Velocity Version: 0.1 | ||
" Place this file in ~/.vim/syntax/ and add `au BufRead,BufNewFile *.vtmp set filetype=vtmp` to ~/.vimrc | ||
|
||
if exists("b:current_syntax") | ||
finish | ||
finish | ||
endif | ||
|
||
" brackets | ||
syn match codeBrackets '(' | ||
syn match codeBrackets ')' | ||
|
||
" variable operator | ||
syn match variableOperator '%' | ||
" comments | ||
syn match codeComment '>>>.*' | ||
|
||
" velocity variables | ||
syn keyword velocityVariable __backend__ __base__ __distro__ __hash__ __name__ __system__ __tag__ __timestamp__ __threads__ | ||
syn keyword velocityVariable __backend__ __base__ __distro__ __name__ __system__ __version__ __timestamp__ | ||
|
||
" velocity operatives | ||
syn match velocityOperative '@' | ||
syn match velocityOperative '|' | ||
|
||
" backend contionals | ||
syn match backendConditional '?\w*' | ||
syn match velocityOperative '!envar' | ||
|
||
" section headers | ||
syn match sectionHeader '@from' | ||
syn match sectionHeader '@pre' | ||
syn match sectionHeader '@arg' | ||
syn match sectionHeader '@copy' | ||
syn match sectionHeader '@run' | ||
syn match sectionHeader '@env' | ||
syn match sectionHeader '@label' | ||
syn match sectionHeader '@entry' | ||
syn match sectionHeader '@post' | ||
|
||
" template variables | ||
" contained sections | ||
syn match templateVariable '[a-zA-Z0-9_]*' contained | ||
syn region templateRegion start='(' end=')' contains=templateVariable | ||
syn match argumentName '[a-zA-Z0-9_]*' contained | ||
syn match conditionalArrow '|>' contained | ||
|
||
syn region variableRegion matchgroup=velocityOperative start="{{" end="}}" contains=templateVariable | ||
syn region argumentRegion matchgroup=velocityOperative start="@@" end="@@" contains=argumentName | ||
syn region conditionalRegion matchgroup=velocityOperative start="??" end="??" contains=conditionalArrow | ||
|
||
let b:current_syntax = "vtmp" | ||
|
||
hi def link codeComment Comment | ||
hi def link sectionHeader Function | ||
hi def link backendConditional Conditional | ||
hi def link velocityOperative Operator | ||
hi def link velocityVariable Identifier | ||
hi def link variableOperator Operator | ||
hi def link codeBrackets Special | ||
hi def link templateVariable Identifier | ||
hi def link argumentName Identifier | ||
hi def link conditionalArrow Operator |
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