ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Spider​Script

by Namek ALL

Spider syntax highlighting and code snippets for Sublime Text 3. www.spiderlang.org

Details

  • 0.1.6
  • github.​com
  • github.​com
  • 10 years ago
  • 27 minutes ago
  • 10 years ago

Installs

  • Total 432
  • Win 261
  • Mac 120
  • Linux 51
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Syntax highlighting and code snippets for Spider language.

Installation

via Package Control

If you have Package Control installed then you can install the plugin by looking for SpiderScript.

code from repository

Download/clone whole repository into the appropriate folder for your OS:

  • Windows: %APPDATA%/Roaming/Sublime Text 3/Packages/SpiderScript.
  • OS X: ~/Library/Application Support/Sublime Text 3/Packages/SpiderScript

Snippets

Snippets in Sublime Text 3 are triggered by TAB key when cursor is blinking after snippet shortcut.

Functions

f => (args) -> { SELECTED_TEXT }

fun =>

func function_name(argument) {
    // body...
}

funext => func Function1(args) extends Function2(args) { ... }

Loops

for =>

for var i = 0; i < Things.length; i++ {
    Things[i]
};

or Improved Native For-Loop:

for var i = Things.length - 1; i >= 0; i-- {
    Things[i]
};

forin => “ for item in items { item }

`forinkv` =>

for key, value in items { value }

`forof` =>

for key of object { key }

`forofkv` =>

for key, value of object { value }

`forlist` => `[expr for value in list]`

`forlistif` => `[expr for value in list if if-expr]`


Conditions
----------

`if` => `if true {}`

`ife` =>

if true { SELECTED_TEXT } else {

}

`ifin` =>

if key in object {

}

Objects
-------
`:` => `key: "value"`

`in` => `key in object`

`:f` =>

method_name: (attribute) -> {

},

`:,` => `value_name:value,`


Others
------
`timeout` => `setTimeout(() -> {}, 10);`