Skip to content

Instantly share code, notes, and snippets.

@atg
Created November 6, 2008 19:19
Show Gist options
  • Save atg/22678 to your computer and use it in GitHub Desktop.
Save atg/22678 to your computer and use it in GitHub Desktop.
undefined
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>
Syntax:
<zone name="function.c">
<expression>\b([a-zA-Z0-9_]*)\s*(\()([a-zA-Z0-9_*\[\],\s]+)(\))\s*(?=\{)</expression>
<capture number="1" name="name"/>
<capture number="2" name="punctuation.definition.parameters.begin"/>
<capture number="3" name="variable.parameter.function.js"/>
<capture number="4" name="punctuation.definition.parameters.end"/>
</zone>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment