-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from iceflow19/master
Reformatting, Preliminary Code Completion, and Snippets for Preprocessor Directives
- Loading branch information
Showing
13 changed files
with
378 additions
and
83 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,6 @@ | ||
<snippet> | ||
<description>#call</description> | ||
<content><![CDATA[#call [${1:func} ${2:args}]]]></content> | ||
<tabTrigger>pcall</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,6 @@ | ||
<snippet> | ||
<description>#define macro</description> | ||
<content><![CDATA[#define ${1:name}(${2:args}) (${3:})]]></content> | ||
<tabTrigger>pdefm</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,6 @@ | ||
<snippet> | ||
<description>#define</description> | ||
<content><![CDATA[#define ${1:name} ${2:value}]]></content> | ||
<tabTrigger>pdef</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,10 @@ | ||
<snippet> | ||
<description>#either</description> | ||
<content><![CDATA[#either ${1:option} ${2:op} ${3:value} [ | ||
][ | ||
]]]></content> | ||
<tabTrigger>peither</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,6 @@ | ||
<snippet> | ||
<description>#enum</description> | ||
<content><![CDATA[#enum ${1:name}! [${2:}]]]></content> | ||
<tabTrigger>penum</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,6 @@ | ||
<snippet> | ||
<description>#export</description> | ||
<content><![CDATA[#export ${1:cconv} [${2:symbols}]]]></content> | ||
<tabTrigger>pexport</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,8 @@ | ||
<snippet> | ||
<description>#if</description> | ||
<content><![CDATA[#if ${1:option} ${2:op} ${3:value} [ | ||
${4:} | ||
]]]></content> | ||
<tabTrigger>pif</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,6 @@ | ||
<snippet> | ||
<description>#include</description> | ||
<content><![CDATA[#include %${1:file}]]></content> | ||
<tabTrigger>pinclude</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,16 @@ | ||
<snippet> | ||
<description>#switch</description> | ||
<content><![CDATA[#switch ${1:option} [ | ||
${2:value-1} [ | ||
] | ||
${3:value-2} [ | ||
] | ||
#default [ | ||
] | ||
]]]></content> | ||
<tabTrigger>pswitch</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,8 @@ | ||
<snippet> | ||
<description>#system</description> | ||
<content><![CDATA[#system [ | ||
${1:} | ||
]]]></content> | ||
<tabTrigger>psys</tabTrigger> | ||
<scope>source.red</scope> | ||
</snippet> |
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,14 +1,14 @@ | ||
Sublime-Red | ||
=========== | ||
|
||
Sublime Text package for Red language [(www.red-lang.org)](http://www.red-lang.org) | ||
A Sublime Text package for the Red language [(www.red-lang.org)](http://www.red-lang.org) | ||
|
||
![Screenshot](https://raw.githubusercontent.com/Oldes/Sublime-Red/preview/preview/screenshot.png) | ||
|
||
# Installation | ||
|
||
Install using the [SublimeText PackageControl](https://sublime.wbond.net). Otherwise you can also Download/Clone the package and put it in your Packages-directory. | ||
Install using the [SublimeText PackageControl](https://sublime.wbond.net). Otherwise you can also Download/Clone the package and put it in your Packages directory. | ||
|
||
# Credits | ||
|
||
The syntax rule is based on [RG-Chris TextMate Bundle](http://www.ross-gill.com/page/TextMate_and_REBOL) | ||
The syntax rules are based on [RG-Chris's TextMate Bundle](http://www.ross-gill.com/page/TextMate_and_REBOL) |
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
Oops, something went wrong.