]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/coffeescript.yaml
Add converted syntax files
[micro.git] / runtime / syntax / coffeescript.yaml
1 filetype: coffeescript
2
3 detect: 
4     filename: "\\.coffee$"
5     header: "^#!.*/(env +)?coffee"
6
7 rules:
8     - symbol.operator: "[!&|=/*+\\-<>]|\\b(and|or|is|isnt|not)\\b"
9     - identifier.class: "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\\()|->"
10     - symbol.brackets: "[()]"
11     - statement: "\\b(for|of|continue|break|isnt|null|unless|this|else|if|return)\\b"
12     - statement: "\\b(try|catch|finally|throw|new|delete|typeof|in|instanceof)\\b"
13     - statement: "\\b(debugger|switch|while|do|class|extends|super)\\b"
14     - statement: "\\b(undefined|then|unless|until|loop|of|by|when)\\b"
15     - constant.bool: "\\b(true|false|yes|no|on|off)\\b"
16     - identifier: "@[A-Za-z0-9_]*"
17     - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
18     - comment: "(^|[[:space:]])#([^{].*)?$"
19     - indent-char.whitespace: "[[:space:]]+$"
20     - indent-char: "    + +| +  +"
21     - preproc.shebang: "#!.+$"