Skip to content

Instantly share code, notes, and snippets.

@shuhaowu
Created August 17, 2012 23:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuhaowu/3383368 to your computer and use it in GitHub Desktop.
Save shuhaowu/3383368 to your computer and use it in GitHub Desktop.
Coffeescript syntax file for ninja-ide 2
{
"comment": [
"#"
],
"extension": [
"coffee"
],
"definition": [
"class"
],
"string": [
"'",
"\""
],
"properObject": [
"this",
"@"
],
"operators": [
"=",
"==",
"!=",
"<",
"<=",
">",
">=",
"\\+",
"->",
"-",
"\\*",
"/",
"//",
"\\%",
"\\*\\*",
"\\+=",
"-=",
"\\*=",
"/=",
"\\%=",
"\\^",
"\\|",
"\\&",
"\\~",
">>",
"<<",
">>>",
"++",
"--"
],
"keywords": [
"true",
"false",
"null",
"this",
"new",
"delete",
"typeof",
"in",
"instanceof",
"return",
"throw",
"break",
"continue",
"debugger",
"if",
"else",
"switch",
"for",
"while",
"do",
"try",
"catch",
"finally",
"class",
"extends",
"super",
"undefined",
"then",
"unless",
"until",
"loop",
"of",
"by",
"when",
"and",
"or",
"is",
"isnt",
"not",
"yes",
"no",
"on",
"off"
],
"extras": [
"prototype",
"length",
"constructor",
"Array",
"concat",
"indexOf",
"join",
"lastIndexOf",
"pop",
"push",
"reverse",
"shift",
"slice",
"sort",
"splice",
"toString",
"unshift",
"valueof",
"Boolean",
"Date",
"getDate",
"getDay",
"getFullYear",
"getHours",
"getMilliseconds",
"getMinutes",
"getMonth",
"getSeconds",
"getTime",
"getTimezoneOffset",
"getUTCDate",
"getUTCDay",
"getUTCFullYear",
"getUTCHours",
"getUTCMilliseconds",
"getUTCMinutes",
"getUTCMonth",
"getUTCSeconds",
"parse",
"setDate",
"setFullYear",
"setHours",
"setMilliseconds",
"setMinutes",
"setMonth",
"setSeconds",
"setTime",
"setUTCDate",
"setUTCFullYear",
"setUTCHours",
"setUTCMilliseconds",
"setUTCMinutes",
"setUTCSeconds",
"toDateString",
"toISOString",
"toJSON",
"toLocaleDateString",
"toLocaleTimeString",
"toLocaleString",
"toTimeString",
"toUTCString",
"UTC",
"Math",
"E",
"LN2",
"LN10",
"LOG2E",
"LOG10E",
"SQRT1_2",
"SQRT2",
"abs",
"acos",
"asin",
"atan",
"atan2",
"ceil",
"cos",
"exp",
"floor",
"log",
"max",
"min",
"pow",
"random",
"round",
"sin",
"sqrt",
"tan",
"Number",
"MAX_VALUE",
"MIN_VALUE",
"NEGATIVE_INFINITY",
"NaN",
"POSITIVE_INFINITY",
"toExponential",
"toFixed",
"toPrecision",
"String",
"charAt",
"charCodeAt",
"concat",
"fromCharCode",
"indexOf",
"lastIndexOf",
"match",
"replace",
"search",
"slice",
"split",
"substr",
"substring",
"toLowerCase",
"toUpperCase",
"RegExp",
"global",
"ignoreCase",
"lastIndex",
"multiline",
"source",
"compile",
"exec",
"test",
"decodeURI",
"decodeURIComponent",
"encodeURI",
"encodeURIComponent",
"escape",
"isFinite",
"isNaN",
"parseFloat",
"parseInt",
"unescape",
"window",
"document",
"alert",
"clearInterval",
"clearTimeout",
"confirm",
"prompt",
"setInterval",
"setTimeout"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment