Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Committing from the right repository this time...
- Loading branch information
0 parents
commit 189ae5c
Showing
15 changed files
with
696 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- *********************** | ||
C Sugar. Made by Alex Gordon. | ||
alextgordon@gmail.com | ||
www.fileability.net | ||
Public Domain: | ||
I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide. | ||
In case this is not legally possible, | ||
I grant any entity the right to use this work for any purpose, without any conditions, unless such conditions are required by law. | ||
*********************** --> | ||
|
||
<codesense version="1.0"> | ||
<behavior> | ||
<append-dynamic> | ||
|
||
<!-- The matched suffix allows you to capture information about the text | ||
after the completion. Specify a regular expression here. --> | ||
<matched-suffix>.*</matched-suffix> | ||
|
||
<!-- The transform-into element is a regex replacement expression, and can use | ||
the captured strings from matched-suffix to generate a conditional snippet. --> | ||
<transform-into>#0( )</transform-into> | ||
|
||
</append-dynamic> | ||
|
||
</behavior> | ||
|
||
<set name="net.fileability.c.keyword"> | ||
<completion string="auto" /> | ||
<completion string="break" /> | ||
<completion string="case" /> | ||
<completion string="const" /> | ||
<completion string="continue" /> | ||
<completion string="default" /> | ||
<completion string="do" /> | ||
<completion string="else" /> | ||
<completion string="enum" /> | ||
<completion string="extern" /> | ||
<completion string="for" /> | ||
<completion string="goto" /> | ||
<completion string="if" /> | ||
<completion string="inline" /> | ||
<completion string="register" /> | ||
<completion string="restrict" /> | ||
<completion string="return" /> | ||
<completion string="signed" /> | ||
<completion string="sizeof" /> | ||
<completion string="static" /> | ||
<completion string="struct" /> | ||
<completion string="switch" /> | ||
<completion string="typedef" /> | ||
<completion string="union" /> | ||
<completion string="unsigned" /> | ||
<completion string="void" /> | ||
<completion string="volatile" /> | ||
<completion string="while" /> | ||
<completion string="_Bool" /> | ||
<completion string="_Complex" /> | ||
<completion string="_Imaginary" /> | ||
</set> | ||
<set name="net.fileability.c.storage.type"> | ||
<completion string="char" /> | ||
<completion string="double" /> | ||
<completion string="float" /> | ||
<completion string="int" /> | ||
<completion string="long" /> | ||
<completion string="short" /> | ||
</set> | ||
|
||
</codesense> |
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,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
CodeSense Providers map contexts in a document to possible completions. The actual completions are defined in the various CodeSense libraries, categorized using their key. A CodeSense Provider tells Espresso what CodeSense libraries are active in the current context. One of these XML files can contain many <provider> elements. | ||
--> | ||
<codesense> | ||
|
||
<provider> | ||
<selector>c</selector> | ||
<completions>net.fileability.c.preprocessor</completions> | ||
<complete-match capture="2">(\s*)#([a-zA-Z0-9-]+)</complete-match> | ||
</provider> | ||
|
||
<provider> | ||
<selector>c</selector> | ||
<completions>net.fileability.c.keyword</completions> | ||
<complete-match capture="1">\b([a-zA-Z_]+)</complete-match> | ||
</provider> | ||
<provider> | ||
<selector>c</selector> | ||
<completions>net.fileability.c.storage.type</completions> | ||
<complete-match capture="1">\b([a-zA-Z_]+)</complete-match> | ||
</provider> | ||
|
||
|
||
</codesense> |
Binary file not shown.
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,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleExecutable</key> | ||
<string>C</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.macrabbit.Espresso.Sugar.C</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>C</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
Binary file not shown.
Binary file not shown.
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<settings> | ||
|
||
<language id="net.fileability.sugars.C"> | ||
|
||
<root-zone>sourcecode.c</root-zone> | ||
<name>C</name> | ||
<detectors> | ||
<extension>c</extension> | ||
<extension>h</extension> | ||
</detectors> | ||
|
||
</language> | ||
|
||
</settings> |
Empty file.
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,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<itemizer> | ||
<!-- | ||
<recipe name="function.c"> | ||
<class>ESBaseItem</class> | ||
<start-selector>function.c:has-child(name:capture(name)):capture(itemizer-firstused) + curly.brace.open.c</start-selector> | ||
<end-selector>curly.brace.close.c</end-selector> | ||
<subrecipes> | ||
<include-root-recipes/> | ||
</subrecipes> | ||
</recipe> | ||
<recipe name="block.c.hidden"> | ||
<class>ESCodeBlockItem</class> | ||
<start-selector>curly.brace.open.c</start-selector> | ||
<end-selector>curly.brace.close.c</end-selector> | ||
<subrecipes> | ||
<include-root-recipes/> | ||
</subrecipes> | ||
</recipe> | ||
--> | ||
|
||
<!--<recipe name="function.c"> | ||
<class>ESBaseItem</class> | ||
<start-selector>meta.function.c < name:capture(name)</start-selector> | ||
<end-selector>curly.brace.close</end-selector> | ||
</recipe> | ||
--> | ||
|
||
|
||
|
||
<recipe name="include.c"> | ||
<class>ESBaseItem</class> | ||
<selector>preprocessor.c.include > string.quoted > content.include:capture(name)</selector> | ||
</recipe> | ||
|
||
<recipe name="pragma-mark.c"> | ||
<class>ESBaseItem</class> | ||
<selector>meta.section > meta.preprocessor > pragma-mark:capture(name)</selector> | ||
</recipe> | ||
|
||
<!-- Recipes Todo: | ||
struct | ||
typedef | ||
enum | ||
union | ||
done #include & #import | ||
#pragma mark | ||
function def | ||
function prototype | ||
#if | ||
#ifdef | ||
--> | ||
|
||
</itemizer> |
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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<settings> | ||
|
||
<language id="net.fileability.sugars.C"> | ||
|
||
<root-zone>sourcecode.c</root-zone> | ||
<name>C</name> | ||
<detectors> | ||
<extension>c</extension> | ||
</detectors> | ||
|
||
</language> | ||
|
||
</settings> |
Binary file not shown.
Oops, something went wrong.