1 # API Notation Syntax for Sublime Text
3 This is a syntax for api notation, a simple notation I've been using for
4 annotating module APIs in specs and other documents.
6 It could work for TextMate since it's a tmLanguage file. But you need to
7 create a tmBundle and god knows what else. So for now, just Sublime.
14 ## API Notation Reference
16 The most recent reference as of now is in this [gist][api-reference], so
17 check that to be sure. But here's a reproduction of the notation.
20 NameOfClass.WithPossibleNamespace
23 ~> listened events (socket)
24 +> listened events (class/module)
25 -> listened events (instance)
26 <~ dispatched events (socket)
27 <+ dispatched events(class/module)
28 <- dispatched events (instance)
38 Recommended order: class first, then sockets, then instance. Internally:
39 Properties, events, methods.
41 // Anything after two forward slashes is a comment
44 ## How does it look like?
48 ![Like this.][api-example]
50 [api-reference]: https://gist.github.com/benbeltran/4694c46fcec131468e34
51 [api-example]: https://i.imgur.com/ogBqI7O.png