Skip to content

Instantly share code, notes, and snippets.

@Misiur
Last active January 4, 2016 17:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Misiur/8652353 to your computer and use it in GitHub Desktop.
Save Misiur/8652353 to your computer and use it in GitHub Desktop.
Sublime snippet for PAWN ALS functions
<snippet>
<content><![CDATA[
stock ${1:Prefix}_${2:Function}(${3:Tag:}${4:arg_1}${5:[optional]}${6:, }${7:Tag:}${8:arg_2}${9:[optional]}${10:, }${11:Tag:}${12:arg_3}${13:[optional]})
{
${2}(${4}${6}${8}${10}${12});
return 1;
}
#if defined _ALS_${2}
#undef ${2}
#else
#define _ALS_${2}
#endif
#define ${2} ${1}_${2}
]]></content>
<tabTrigger>alsf</tabTrigger>
<scope>source.pawn</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment