2017-02-25 22:02:39 +00:00
|
|
|
filetype: coffeescript
|
|
|
|
|
|
2017-03-21 19:07:39 +00:00
|
|
|
detect:
|
2017-02-25 22:02:39 +00:00
|
|
|
filename: "\\.coffee$"
|
|
|
|
|
|
|
|
|
|
rules:
|
2017-03-21 19:07:39 +00:00
|
|
|
- symbol.operator: "[!&|=/*+-<>]|\\b(and|or|is|isnt|not)\\b"
|
|
|
|
|
- identifier.class: "([A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\\()|->)"
|
2017-03-21 18:55:22 +00:00
|
|
|
- symbol.brackets: "[()]"
|
2017-03-21 19:07:39 +00:00
|
|
|
- statement: "\\b(for|of|continue|break|isnt|null|unless|this|else|if|return)\\b"
|
|
|
|
|
- statement: "\\b(try|catch|finally|throw|new|delete|typeof|in|instanceof)\\b"
|
|
|
|
|
- statement: "\\b(debugger|switch|while|do|class|extends|super)\\b"
|
|
|
|
|
- statement: "\\b(undefined|then|unless|until|loop|of|by|when)\\b"
|
|
|
|
|
- constant.bool: "\\b(true|false|yes|no|on|off)\\b"
|
2017-03-21 18:55:22 +00:00
|
|
|
- identifier: "@[A-Za-z0-9_]*"
|
2017-03-21 19:07:39 +00:00
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
|
start: "\""
|
2017-03-28 00:53:08 +00:00
|
|
|
end: "\""
|
2017-03-29 13:45:16 +00:00
|
|
|
skip: "\\\\."
|
2017-03-21 19:07:39 +00:00
|
|
|
rules:
|
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
|
|
- comment:
|
|
|
|
|
start: "#"
|
|
|
|
|
end: "$"
|
|
|
|
|
rules:
|
|
|
|
|
- todo: "(TODO|XXX|FIXME):?"
|
2017-03-22 23:03:06 +00:00
|
|
|
|