Skip to content

Commit

Permalink
Committing from the right repository this time...
Browse files Browse the repository at this point in the history
  • Loading branch information
atg committed Dec 30, 2008
0 parents commit 189ae5c
Show file tree
Hide file tree
Showing 15 changed files with 696 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
74 changes: 74 additions & 0 deletions CodeSenseLibraries/C.xml
@@ -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>
27 changes: 27 additions & 0 deletions CodeSenseProviders/C.xml
@@ -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 added Contents/.DS_Store
Binary file not shown.
22 changes: 22 additions & 0 deletions Contents/Info.plist
@@ -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 added Contents/Resources/.DS_Store
Binary file not shown.
Binary file added Contents/Resources/English.lproj/InfoPlist.strings
Binary file not shown.
16 changes: 16 additions & 0 deletions Contents/Resources/Languages.xml
@@ -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 added Icon
Empty file.
55 changes: 55 additions & 0 deletions Itemizers/C.xml
@@ -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>
15 changes: 15 additions & 0 deletions Languages.xml
@@ -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 added Syntaxes/.DS_Store
Binary file not shown.

0 comments on commit 189ae5c

Please sign in to comment.