]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/coffeescript.yaml
Merge
[micro.git] / runtime / syntax / coffeescript.yaml
1 filetype: coffeescript
2
3 detect:
4     filename: "\\.coffee$"
5
6 rules:
7     - symbol.operator: "[!&|=/*+-<>]|\\b(and|or|is|isnt|not)\\b"
8     - identifier.class: "([A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\\()|->)"
9     - symbol.brackets: "[()]"
10     - statement:  "\\b(for|of|continue|break|isnt|null|unless|this|else|if|return)\\b"
11     - statement:  "\\b(try|catch|finally|throw|new|delete|typeof|in|instanceof)\\b"
12     - statement:  "\\b(debugger|switch|while|do|class|extends|super)\\b"
13     - statement:  "\\b(undefined|then|unless|until|loop|of|by|when)\\b"
14     - constant.bool:  "\\b(true|false|yes|no|on|off)\\b"
15     - constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b"
16     - constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
17     - constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
18     - identifier: "@[A-Za-z0-9_]*"
19
20     - constant.string:
21         start: "\""
22         end: "\""
23         skip: "\\\\."
24         rules:
25             - constant.specialChar: "\\\\."
26      
27     - constant.string:
28         start: "'"
29         end: "'"
30         skip: "\\\\."
31         rules:
32             - constant.specialChar: "\\\\."
33       
34
35     - comment:
36         start: "#"
37         end: "$"
38         rules:
39             - todo: "(TODO|XXX|FIXME):?"
40     - comment:
41         start: "###"
42         end: "###"
43         rules:  
44             - todo: "(TODO|XXX|FIXME)"
45