Adds syntax highlighting and snippets to kaoscript files in Atom.
Search and install the package language-kaoscript
in Atom (Preferences->Install)
With apm previously installed:
apm install language-kaoscript
Trigger | Name | Body |
---|---|---|
class | class | class $name {...} |
do | do while | do {...} while $condition |
dou | do until | do {...} until $condition |
enum | enum | enum $name {...} |
if | if | if $condition {...} |
ife | if … else | if $condition {...} else {...} |
else | else | else {...} |
elseif | else if | else if $condition {...} |
fortil | for from/til | for $variable from $ til $ {...} |
forto | from from/to | for $variable from $ to $ {...} |
forin | for in | for $variable in $ {...} |
forof | for of | for $variable of $ {...} |
fun | function | func |
f | anonymous function | func($) {...} |
log | log | console.log($) |
warn | warn | console.warn($) |
error | error | console.error($) |
try | try | try {...} |
tryc | try catch | try {...} catch $error {...} |
tryf | try finally | try {...} finally {...} |
until | until | until $condition {...} |
while | while | while $condition {...} |
MIT © Baptiste Augrain