store tokens in a more readable format

This commit is contained in:
nightwing 2012-09-11 22:05:10 +04:00
commit 9df6bd5926
43 changed files with 9061 additions and 19277 deletions

View file

@ -52,12 +52,12 @@ function generateTestData() {
tokens = tokens.tokens;
return {
state: state,
values: tokens.map(function(x) {return x.value;}),
types: tokens.map(function(x) {return x.type;})
data: tokens.map(function(x) {return [x.type, x.value]})
};
});
fs.writeFileSync(cwd + "tokens_" + modeName + ".json", JSON.stringify(data, null, 1), "utf8");
var jsonStr = JSON.stringify(data, null, 1);
jsonStr = jsonStr.replace(/\n {4}/g, " ").replace(/\n {3}]/g, " ]");
fs.writeFileSync(cwd + "tokens_" + modeName + ".json", jsonStr, "utf8");
});
}
@ -65,8 +65,8 @@ function test(startAt) {
var docs = fs.readdirSync(cwd).filter(function(x) {
return /^tokens_\w+.json$/.test(x);
});
if (startAt && startAt > 1)
docs = docs.slice(startAt - 1);
if (startAt && startAt > 1)
docs = docs.slice(startAt - 1);
docs.forEach(function(x, i) {
var modeName = x.match(/tokens_(.*).json/)[1];
@ -79,6 +79,13 @@ function test(startAt) {
var state = "start";
data.forEach(function(lineData) {
lineData.values = [];
lineData.types = [];
lineData.data.forEach(function(x) {
lineData.types.push(x[0]);
lineData.values.push(x[1]);
});
var line = lineData.values.join("");
var tokens = tokenizer.getLineTokens(line, state);
@ -86,7 +93,6 @@ function test(startAt) {
var types = tokens.tokens.map(function(x) {return x.type;});
var success = true;
var report =
testEqual([
lineData.state, tokens.state,
lineData.types, types,

View file

@ -1,273 +1,175 @@
[
{
"state": "start",
"values": [
"Searching for 'var' in /workspace/configs"
],
"types": [
"text"
"data": [
[ "text", "Searching for 'var' in /workspace/configs" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"configs/default.js",
":"
],
"types": [
"string",
"text"
"data": [
[ "string", "configs/default.js" ],
[ "text", ":" ]
]
},
{
"state": "start",
"values": [
" 1",
": ",
"var fs = require(\"fs\");"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", " 1" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var fs = require(\"fs\");" ]
]
},
{
"state": "start",
"values": [
"\t2",
": ",
"var argv = require('optimist').argv;"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t2" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var argv = require('optimist').argv;" ]
]
},
{
"state": "start",
"values": [
"\t3",
": ",
"var path = require(\"path\");"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t3" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var path = require(\"path\");" ]
]
},
{
"state": "start",
"values": [
"\t5",
": ",
"var clientExtensions = {};"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t5" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var clientExtensions = {};" ]
]
},
{
"state": "start",
"values": [
"\t6",
": ",
"var clientDirs = fs.readdirSync(__dirname + \"/../plugins-client\");"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t6" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var clientDirs = fs.readdirSync(__dirname + \"/../plugins-client\");" ]
]
},
{
"state": "start",
"values": [
"\t7",
": ",
"for (var i = 0; i < clientDirs.length; i++) {"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t7" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "for (var i = 0; i < clientDirs.length; i++) {" ]
]
},
{
"state": "start",
"values": [
"\t8",
": ",
"var dir = clientDirs[i];"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t8" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var dir = clientDirs[i];" ]
]
},
{
"state": "start",
"values": [
"\t12",
": ",
"var name = dir.split(\".\")[1];"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t12" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var name = dir.split(\".\")[1];" ]
]
},
{
"state": "start",
"values": [
"\t16",
": ",
"var projectDir = (argv.w && path.resolve(process.cwd(), argv.w)) || process.cwd();"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t16" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var projectDir = (argv.w && path.resolve(process.cwd(), argv.w)) || process.cwd();" ]
]
},
{
"state": "start",
"values": [
"\t17",
": ",
"var fsUrl = \"/workspace\";"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t17" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var fsUrl = \"/workspace\";" ]
]
},
{
"state": "start",
"values": [
"\t19",
": ",
"var port = argv.p || process.env.PORT || 3131;"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t19" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var port = argv.p || process.env.PORT || 3131;" ]
]
},
{
"state": "start",
"values": [
"\t20",
": ",
"var host = argv.l || \"localhost\";"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t20" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var host = argv.l || \"localhost\";" ]
]
},
{
"state": "start",
"values": [
"\t22",
": ",
"var config = {"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t22" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var config = {" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"configs/local.js",
":"
],
"types": [
"string",
"text"
"data": [
[ "string", "configs/local.js" ],
[ "text", ":" ]
]
},
{
"state": "start",
"values": [
"\t2",
": ",
"var config = require(\"./default\");"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t2" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var config = require(\"./default\");" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"configs/packed.js",
":"
],
"types": [
"string",
"text"
"data": [
[ "string", "configs/packed.js" ],
[ "text", ":" ]
]
},
{
"state": "start",
"values": [
"\t1",
": ",
"var config = require(\"./default\");"
],
"types": [
"c9searchresults.constant.numeric",
"c9searchresults.text",
"c9searchresults.text"
"data": [
[ "c9searchresults.constant.numeric", "\t1" ],
[ "c9searchresults.text", ": " ],
[ "c9searchresults.text", "var config = require(\"./default\");" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"Found 15 matches in 3 files"
],
"types": [
"text"
"data": [
[ "text", "Found 15 matches in 3 files" ]
]
}
]

View file

@ -1,207 +1,124 @@
[
{
"state": "start",
"values": [
"// compound assignment operators"
],
"types": [
"comment"
"data": [
[ "comment", "// compound assignment operators" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"#include",
" ",
"<iostream>"
],
"types": [
"keyword",
"text",
"constant"
"data": [
[ "keyword", "#include" ],
[ "text", " " ],
[ "constant", "<iostream>" ]
]
},
{
"state": "start",
"values": [
"using",
" ",
"namespace",
" ",
"std",
";"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"identifier",
"punctuation.operator"
"data": [
[ "keyword", "using" ],
[ "text", " " ],
[ "keyword", "namespace" ],
[ "text", " " ],
[ "identifier", "std" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"int",
" ",
"main",
" ",
"(",
")"
],
"types": [
"keyword",
"text",
"identifier",
"text",
"paren.lparen",
"paren.rparen"
"data": [
[ "keyword", "int" ],
[ "text", " " ],
[ "identifier", "main" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
"{"
],
"types": [
"paren.lparen"
"data": [
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"int",
" ",
"a",
",",
" ",
"b",
"=",
"3",
";",
" ",
"/*",
" foobar */"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"punctuation.operator",
"text",
"identifier",
"keyword.operator",
"constant.numeric",
"punctuation.operator",
"text",
"comment",
"comment"
"data": [
[ "text", " " ],
[ "keyword", "int" ],
[ "text", " " ],
[ "identifier", "a" ],
[ "punctuation.operator", "," ],
[ "text", " " ],
[ "identifier", "b" ],
[ "keyword.operator", "=" ],
[ "constant.numeric", "3" ],
[ "punctuation.operator", ";" ],
[ "text", " " ],
[ "comment", "/*" ],
[ "comment", " foobar */" ]
]
},
{
"state": "start",
"values": [
" ",
"a",
" ",
"=",
" ",
"b",
";"
],
"types": [
"text",
"identifier",
"text",
"keyword.operator",
"text",
"identifier",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "identifier", "a" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "b" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"a",
"+",
"=",
"2",
";",
" ",
"// equivalent to a=a+2"
],
"types": [
"text",
"identifier",
"keyword.operator",
"keyword.operator",
"constant.numeric",
"punctuation.operator",
"text",
"comment"
"data": [
[ "text", " " ],
[ "identifier", "a" ],
[ "keyword.operator", "+" ],
[ "keyword.operator", "=" ],
[ "constant.numeric", "2" ],
[ "punctuation.operator", ";" ],
[ "text", " " ],
[ "comment", "// equivalent to a=a+2" ]
]
},
{
"state": "start",
"values": [
" ",
"cout",
" ",
"<",
"<",
" ",
"a",
";"
],
"types": [
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator",
"text",
"identifier",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "identifier", "cout" ],
[ "text", " " ],
[ "keyword.operator", "<" ],
[ "keyword.operator", "<" ],
[ "text", " " ],
[ "identifier", "a" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"return",
" ",
"0",
";"
],
"types": [
"text",
"keyword",
"text",
"constant.numeric",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "return" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
}
]

View file

@ -1,437 +1,248 @@
[
{
"state": "start",
"values": [
"(",
"defn",
" ",
"parting"
],
"types": [
"keyword",
"support.function",
"text",
"identifier"
"data": [
[ "keyword", "(" ],
[ "support.function", "defn" ],
[ "text", " " ],
[ "identifier", "parting" ]
]
},
{
"state": "start",
"values": [
" ",
"\"returns a String parting in a given language",
"\""
],
"types": [
"text",
"string",
"string"
"data": [
[ "text", " " ],
[ "string", "\"returns a String parting in a given language" ],
[ "string", "\"" ]
]
},
{
"state": "start",
"values": [
" ",
"(",
"[",
"]",
" ",
"(",
"parting",
" ",
"\"World",
"\"",
")",
")"
],
"types": [
"text",
"keyword",
"keyword",
"keyword",
"text",
"keyword",
"identifier",
"text",
"string",
"string",
"keyword",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "(" ],
[ "keyword", "[" ],
[ "keyword", "]" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "identifier", "parting" ],
[ "text", " " ],
[ "string", "\"World" ],
[ "string", "\"" ],
[ "keyword", ")" ],
[ "keyword", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"(",
"[",
"name",
"]",
" ",
"(",
"parting",
" ",
"name",
" ",
"\"en",
"\"",
")",
")"
],
"types": [
"text",
"keyword",
"keyword",
"support.function",
"keyword",
"text",
"keyword",
"identifier",
"text",
"support.function",
"text",
"string",
"string",
"keyword",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "(" ],
[ "keyword", "[" ],
[ "support.function", "name" ],
[ "keyword", "]" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "identifier", "parting" ],
[ "text", " " ],
[ "support.function", "name" ],
[ "text", " " ],
[ "string", "\"en" ],
[ "string", "\"" ],
[ "keyword", ")" ],
[ "keyword", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"(",
"[",
"name",
" ",
"language",
"]"
],
"types": [
"text",
"keyword",
"keyword",
"support.function",
"text",
"identifier",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "(" ],
[ "keyword", "[" ],
[ "support.function", "name" ],
[ "text", " " ],
[ "identifier", "language" ],
[ "keyword", "]" ]
]
},
{
"state": "start",
"values": [
" ",
"; condp is similar to a case statement in other languages."
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "; condp is similar to a case statement in other languages." ]
]
},
{
"state": "start",
"values": [
" ",
"; It is described in more detail later."
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "; It is described in more detail later." ]
]
},
{
"state": "start",
"values": [
" ",
"; It is used here to take different actions based on whether the"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "; It is used here to take different actions based on whether the" ]
]
},
{
"state": "start",
"values": [
" ",
"; parameter \"language\" is set to \"en\", \"es\" or something else."
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "; parameter \"language\" is set to \"en\", \"es\" or something else." ]
]
},
{
"state": "start",
"values": [
" ",
"(",
"condp",
" ",
"=",
" ",
"language"
],
"types": [
"text",
"keyword",
"support.function",
"text",
"constant.language",
"text",
"identifier"
"data": [
[ "text", " " ],
[ "keyword", "(" ],
[ "support.function", "condp" ],
[ "text", " " ],
[ "constant.language", "=" ],
[ "text", " " ],
[ "identifier", "language" ]
]
},
{
"state": "start",
"values": [
" ",
"\"en",
"\"",
" ",
"(",
"str",
" ",
"\"Goodbye, ",
"\"",
" ",
"name",
")"
],
"types": [
"text",
"string",
"string",
"text",
"keyword",
"support.function",
"text",
"string",
"string",
"text",
"support.function",
"keyword"
"data": [
[ "text", " " ],
[ "string", "\"en" ],
[ "string", "\"" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "support.function", "str" ],
[ "text", " " ],
[ "string", "\"Goodbye, " ],
[ "string", "\"" ],
[ "text", " " ],
[ "support.function", "name" ],
[ "keyword", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"\"es",
"\"",
" ",
"(",
"str",
" ",
"\"Adios, ",
"\"",
" ",
"name",
")"
],
"types": [
"text",
"string",
"string",
"text",
"keyword",
"support.function",
"text",
"string",
"string",
"text",
"support.function",
"keyword"
"data": [
[ "text", " " ],
[ "string", "\"es" ],
[ "string", "\"" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "support.function", "str" ],
[ "text", " " ],
[ "string", "\"Adios, " ],
[ "string", "\"" ],
[ "text", " " ],
[ "support.function", "name" ],
[ "keyword", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"(",
"throw",
" ",
"(",
"IllegalArgumentException",
"."
],
"types": [
"text",
"keyword",
"keyword",
"text",
"keyword",
"identifier",
"text"
"data": [
[ "text", " " ],
[ "keyword", "(" ],
[ "keyword", "throw" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "identifier", "IllegalArgumentException" ],
[ "text", "." ]
]
},
{
"state": "start",
"values": [
" ",
"(",
"str",
" ",
"\"unsupported language ",
"\"",
" ",
"language",
")",
")",
")",
")",
")",
")"
],
"types": [
"text",
"keyword",
"support.function",
"text",
"string",
"string",
"text",
"identifier",
"keyword",
"keyword",
"keyword",
"keyword",
"keyword",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "(" ],
[ "support.function", "str" ],
[ "text", " " ],
[ "string", "\"unsupported language " ],
[ "string", "\"" ],
[ "text", " " ],
[ "identifier", "language" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "keyword", ")" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"(",
"println",
" ",
"(",
"parting",
")",
")",
" ",
"; -> Goodbye, World"
],
"types": [
"keyword",
"support.function",
"text",
"keyword",
"identifier",
"keyword",
"keyword",
"text",
"comment"
"data": [
[ "keyword", "(" ],
[ "support.function", "println" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "identifier", "parting" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "text", " " ],
[ "comment", "; -> Goodbye, World" ]
]
},
{
"state": "start",
"values": [
"(",
"println",
" ",
"(",
"parting",
" ",
"\"Mark",
"\"",
")",
")",
" ",
"; -> Goodbye, Mark"
],
"types": [
"keyword",
"support.function",
"text",
"keyword",
"identifier",
"text",
"string",
"string",
"keyword",
"keyword",
"text",
"comment"
"data": [
[ "keyword", "(" ],
[ "support.function", "println" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "identifier", "parting" ],
[ "text", " " ],
[ "string", "\"Mark" ],
[ "string", "\"" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "text", " " ],
[ "comment", "; -> Goodbye, Mark" ]
]
},
{
"state": "start",
"values": [
"(",
"println",
" ",
"(",
"parting",
" ",
"\"Mark",
"\"",
" ",
"\"es",
"\"",
")",
")",
" ",
"; -> Adios, Mark"
],
"types": [
"keyword",
"support.function",
"text",
"keyword",
"identifier",
"text",
"string",
"string",
"text",
"string",
"string",
"keyword",
"keyword",
"text",
"comment"
"data": [
[ "keyword", "(" ],
[ "support.function", "println" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "identifier", "parting" ],
[ "text", " " ],
[ "string", "\"Mark" ],
[ "string", "\"" ],
[ "text", " " ],
[ "string", "\"es" ],
[ "string", "\"" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "text", " " ],
[ "comment", "; -> Adios, Mark" ]
]
},
{
"state": "start",
"values": [
"(",
"println",
" ",
"(",
"parting",
" ",
"\"Mark",
"\"",
", ",
"\"xy",
"\"",
")",
")",
" ",
"; -> java.lang.IllegalArgumentException: unsupported language xy"
],
"types": [
"keyword",
"support.function",
"text",
"keyword",
"identifier",
"text",
"string",
"string",
"text",
"string",
"string",
"keyword",
"keyword",
"text",
"comment"
"data": [
[ "keyword", "(" ],
[ "support.function", "println" ],
[ "text", " " ],
[ "keyword", "(" ],
[ "identifier", "parting" ],
[ "text", " " ],
[ "string", "\"Mark" ],
[ "string", "\"" ],
[ "text", ", " ],
[ "string", "\"xy" ],
[ "string", "\"" ],
[ "keyword", ")" ],
[ "keyword", ")" ],
[ "text", " " ],
[ "comment", "; -> java.lang.IllegalArgumentException: unsupported language xy" ]
]
}
]

View file

@ -1,308 +1,188 @@
[
{
"state": "start",
"values": [
"#!/usr/bin/env coffee"
],
"types": [
"comment"
"data": [
[ "comment", "#!/usr/bin/env coffee" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"try"
],
"types": [
"keyword"
"data": [
[ "keyword", "try" ]
]
},
{
"state": "start",
"values": [
" ",
"throw",
" ",
"URIError",
" ",
"decodeURI",
"(",
"0xC0ffee",
" ",
"*",
" ",
"123456.7e-8",
" ",
"/",
" ",
".9",
")"
],
"types": [
"text",
"keyword",
"text",
"language.support.class",
"text",
"language.support.function",
"paren.lparen",
"constant.numeric",
"text",
"keyword.operator",
"text",
"constant.numeric",
"text",
"keyword.operator",
"text",
"constant.numeric",
"paren.rparen"
"data": [
[ "text", " " ],
[ "keyword", "throw" ],
[ "text", " " ],
[ "language.support.class", "URIError" ],
[ "text", " " ],
[ "language.support.function", "decodeURI" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "0xC0ffee" ],
[ "text", " " ],
[ "keyword.operator", "*" ],
[ "text", " " ],
[ "constant.numeric", "123456.7e-8" ],
[ "text", " " ],
[ "keyword.operator", "/" ],
[ "text", " " ],
[ "constant.numeric", ".9" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
"catch",
" ",
"e"
],
"types": [
"keyword",
"text",
"identifier"
"data": [
[ "keyword", "catch" ],
[ "text", " " ],
[ "identifier", "e" ]
]
},
{
"state": "qdoc",
"values": [
" ",
"console",
".log",
" ",
"'qstring'",
" ",
"+",
" ",
"\"qqstring\"",
" ",
"+",
" ",
"'''"
],
"types": [
"text",
"identifier",
"identifier",
"text",
"string",
"text",
"keyword.operator",
"text",
"string",
"text",
"keyword.operator",
"text",
"string"
"data": [
[ "text", " " ],
[ "identifier", "console" ],
[ "identifier", ".log" ],
[ "text", " " ],
[ "string", "'qstring'" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "string", "\"qqstring\"" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "string", "'''" ]
]
},
{
"state": "qdoc",
"values": [
" qdoc"
],
"types": [
"string"
"data": [
[ "string", " qdoc" ]
]
},
{
"state": "qqdoc",
"values": [
" '''",
" ",
"+",
" ",
"\"\"\""
],
"types": [
"string",
"text",
"keyword.operator",
"text",
"string"
"data": [
[ "string", " '''" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "string", "\"\"\"" ]
]
},
{
"state": "qqdoc",
"values": [
" qqdoc"
],
"types": [
"string"
"data": [
[ "string", " qqdoc" ]
]
},
{
"state": "start",
"values": [
" \"\"\""
],
"types": [
"string"
"data": [
[ "string", " \"\"\"" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"do",
" ",
"->"
],
"types": [
"keyword",
"text",
"keyword.operator"
"data": [
[ "keyword", "do" ],
[ "text", " " ],
[ "keyword.operator", "->" ]
]
},
{
"state": "comment",
"values": [
" ",
"###"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "###" ]
]
},
{
"state": "comment",
"values": [
" herecomment"
],
"types": [
"comment"
"data": [
[ "comment", " herecomment" ]
]
},
{
"state": "start",
"values": [
" ###"
],
"types": [
"comment"
"data": [
[ "comment", " ###" ]
]
},
{
"state": "heregex",
"values": [
" ",
"re",
" ",
"=",
" ",
"/regex/imgy",
".test",
" ",
"///"
],
"types": [
"text",
"identifier",
"text",
"keyword.operator",
"text",
"string.regex",
"identifier",
"text",
"string.regex"
"data": [
[ "text", " " ],
[ "identifier", "re" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string.regex", "/regex/imgy" ],
[ "identifier", ".test" ],
[ "text", " " ],
[ "string.regex", "///" ]
]
},
{
"state": "heregex",
"values": [
" ",
"heregex",
" # comment"
],
"types": [
"comment.regex",
"string.regex",
"comment.regex"
"data": [
[ "comment.regex", " " ],
[ "string.regex", "heregex" ],
[ "comment.regex", " # comment" ]
]
},
{
"state": "start",
"values": [
" ///imgy"
],
"types": [
"string.regex"
"data": [
[ "string.regex", " ///imgy" ]
]
},
{
"state": "start",
"values": [
" ",
"this",
" ",
"isnt",
":",
" ",
"`just JavaScript`"
],
"types": [
"text",
"keyword",
"text",
"keyword",
"punctuation.operator",
"text",
"string"
"data": [
[ "text", " " ],
[ "keyword", "this" ],
[ "text", " " ],
[ "keyword", "isnt" ],
[ "punctuation.operator", ":" ],
[ "text", " " ],
[ "string", "`just JavaScript`" ]
]
},
{
"state": "start",
"values": [
" ",
"undefined"
],
"types": [
"text",
"constant.language"
"data": [
[ "text", " " ],
[ "constant.language", "undefined" ]
]
},
{
"state": "start",
"values": [
" "
],
"types": [
"text"
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"values": [
"sentence",
" ",
"=",
" ",
"\"#{ 22 / 7 } is a decent approximation of π\""
],
"types": [
"identifier",
"text",
"keyword.operator",
"text",
"string"
"data": [
[ "identifier", "sentence" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"#{ 22 / 7 } is a decent approximation of π\"" ]
]
}
]

View file

@ -1,65 +1,41 @@
[
{
"state": "start",
"values": [
"<!--",
"- hello world --->"
],
"types": [
"comment",
"comment"
"data": [
[ "comment", "<!--" ],
[ "comment", "- hello world --->" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"<",
"cfset",
" ",
"welcome",
"=",
"\"Hello World!\"",
">"
],
"types": [
"meta.tag",
"meta.tag.tag-name",
"text",
"entity.other.attribute-name",
"keyword.operator",
"string",
"meta.tag"
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "cfset" ],
[ "text", " " ],
[ "entity.other.attribute-name", "welcome" ],
[ "keyword.operator", "=" ],
[ "string", "\"Hello World!\"" ],
[ "meta.tag", ">" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"<",
"cfoutput",
">",
"#welcome#",
"</",
"cfoutput",
">"
],
"types": [
"meta.tag",
"meta.tag.tag-name",
"meta.tag",
"text",
"meta.tag",
"meta.tag.tag-name",
"meta.tag"
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "cfoutput" ],
[ "meta.tag", ">" ],
[ "text", "#welcome#" ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "cfoutput" ],
[ "meta.tag", ">" ]
]
}
]

View file

@ -1,70 +1,42 @@
[
{
"state": "start",
"values": [
"public",
" ",
"void",
" ",
"HelloWorld",
"(",
")",
" ",
"{"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"identifier",
"paren.lparen",
"paren.rparen",
"text",
"paren.lparen"
"data": [
[ "keyword", "public" ],
[ "text", " " ],
[ "keyword", "void" ],
[ "text", " " ],
[ "identifier", "HelloWorld" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"//Say Hello!"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "//Say Hello!" ]
]
},
{
"state": "start",
"values": [
" ",
"Console",
".",
"WriteLine",
"(",
"\"Hello World\"",
")",
";"
],
"types": [
"text",
"identifier",
"punctuation.operator",
"identifier",
"paren.lparen",
"string",
"paren.rparen",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "identifier", "Console" ],
[ "punctuation.operator", "." ],
[ "identifier", "WriteLine" ],
[ "paren.lparen", "(" ],
[ "string", "\"Hello World\"" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
}
]

View file

@ -1,376 +1,231 @@
[
{
"state": "ruleset",
"values": [
".text-layer",
" ",
"{"
],
"types": [
"variable",
"text",
"paren.lparen"
"data": [
[ "variable", ".text-layer" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "ruleset",
"values": [
" ",
"font-family",
": Monaco, ",
"\"Courier New\"",
", ",
"monospace",
";"
],
"types": [
"text",
"support.type",
"text",
"string",
"text",
"support.constant.fonts",
"text"
"data": [
[ "text", " " ],
[ "support.type", "font-family" ],
[ "text", ": Monaco, " ],
[ "string", "\"Courier New\"" ],
[ "text", ", " ],
[ "support.constant.fonts", "monospace" ],
[ "text", ";" ]
]
},
{
"state": "ruleset",
"values": [
" ",
"font-size",
": ",
"12",
"px",
";"
],
"types": [
"text",
"support.type",
"text",
"constant.numeric",
"keyword",
"text"
"data": [
[ "text", " " ],
[ "support.type", "font-size" ],
[ "text", ": " ],
[ "constant.numeric", "12" ],
[ "keyword", "px" ],
[ "text", ";" ]
]
},
{
"state": "ruleset",
"values": [
" ",
"cursor",
": ",
"text",
";"
],
"types": [
"text",
"support.type",
"text",
"support.constant",
"text"
"data": [
[ "text", " " ],
[ "support.type", "cursor" ],
[ "text", ": " ],
[ "support.constant", "text" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "ruleset",
"values": [
".blinker",
" ",
"{"
],
"types": [
"variable",
"text",
"paren.lparen"
"data": [
[ "variable", ".blinker" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "ruleset",
"values": [
" ",
"animation-duration",
": ",
"1",
"s",
";"
],
"types": [
"text",
"support.type",
"text",
"constant.numeric",
"keyword",
"text"
"data": [
[ "text", " " ],
[ "support.type", "animation-duration" ],
[ "text", ": " ],
[ "constant.numeric", "1" ],
[ "keyword", "s" ],
[ "text", ";" ]
]
},
{
"state": "ruleset",
"values": [
" ",
"animation-name",
": blink;"
],
"types": [
"text",
"support.type",
"text"
"data": [
[ "text", " " ],
[ "support.type", "animation-name" ],
[ "text", ": blink;" ]
]
},
{
"state": "ruleset",
"values": [
" ",
"animation-iteration-count",
": infinite;"
],
"types": [
"text",
"support.type",
"text"
"data": [
[ "text", " " ],
[ "support.type", "animation-iteration-count" ],
[ "text", ": infinite;" ]
]
},
{
"state": "ruleset",
"values": [
" ",
"animation-direction",
": alternate;"
],
"types": [
"text",
"support.type",
"text"
"data": [
[ "text", " " ],
[ "support.type", "animation-direction" ],
[ "text", ": alternate;" ]
]
},
{
"state": "ruleset",
"values": [
" ",
"animation-timing-function",
": ",
"linear",
";"
],
"types": [
"text",
"support.type",
"text",
"support.constant",
"text"
"data": [
[ "text", " " ],
[ "support.type", "animation-timing-function" ],
[ "text", ": " ],
[ "support.constant", "linear" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "media",
"values": [
"@keyframes blink {"
],
"types": [
"string"
"data": [
[ "string", "@keyframes blink {" ]
]
},
{
"state": "media_ruleset",
"values": [
" ",
"0",
"% ",
"{"
],
"types": [
"text",
"constant",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "constant", "0" ],
[ "text", "% " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "media_ruleset",
"values": [
" ",
"opacity",
": ",
"0",
";"
],
"types": [
"text",
"support.type",
"text",
"constant.numeric",
"text"
"data": [
[ "text", " " ],
[ "support.type", "opacity" ],
[ "text", ": " ],
[ "constant.numeric", "0" ],
[ "text", ";" ]
]
},
{
"state": "media",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "media_ruleset",
"values": [
" ",
"40",
"% ",
"{"
],
"types": [
"text",
"constant",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "constant", "40" ],
[ "text", "% " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "media_ruleset",
"values": [
" ",
"opacity",
": ",
"0",
";"
],
"types": [
"text",
"support.type",
"text",
"constant.numeric",
"text"
"data": [
[ "text", " " ],
[ "support.type", "opacity" ],
[ "text", ": " ],
[ "constant.numeric", "0" ],
[ "text", ";" ]
]
},
{
"state": "media",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "media_ruleset",
"values": [
" ",
"40",
".5",
"% ",
"{"
],
"types": [
"text",
"constant",
"variable",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "constant", "40" ],
[ "variable", ".5" ],
[ "text", "% " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "media_ruleset",
"values": [
" ",
"opacity",
": ",
"1"
],
"types": [
"text",
"support.type",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "support.type", "opacity" ],
[ "text", ": " ],
[ "constant.numeric", "1" ]
]
},
{
"state": "media",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "media_ruleset",
"values": [
" ",
"100",
"% ",
"{"
],
"types": [
"text",
"constant",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "constant", "100" ],
[ "text", "% " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "media_ruleset",
"values": [
" ",
"opacity",
": ",
"1"
],
"types": [
"text",
"support.type",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "support.type", "opacity" ],
[ "text", ": " ],
[ "constant.numeric", "1" ]
]
},
{
"state": "media",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"string"
"data": [
[ "string", "}" ]
]
}
]

File diff suppressed because it is too large Load diff

View file

@ -1,308 +1,185 @@
[
{
"state": "start",
"values": [
"uniform",
" ",
"float",
" ",
"amplitude",
";"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"identifier",
"punctuation.operator"
"data": [
[ "keyword", "uniform" ],
[ "text", " " ],
[ "keyword", "float" ],
[ "text", " " ],
[ "identifier", "amplitude" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
"attribute",
" ",
"float",
" ",
"displacement",
";"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"identifier",
"punctuation.operator"
"data": [
[ "keyword", "attribute" ],
[ "text", " " ],
[ "keyword", "float" ],
[ "text", " " ],
[ "identifier", "displacement" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
"varying",
" ",
"vec3",
" ",
"vNormal",
";"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"identifier",
"punctuation.operator"
"data": [
[ "keyword", "varying" ],
[ "text", " " ],
[ "keyword", "vec3" ],
[ "text", " " ],
[ "identifier", "vNormal" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"void",
" ",
"main",
"(",
")",
" ",
"{"
],
"types": [
"keyword",
"text",
"identifier",
"paren.lparen",
"paren.rparen",
"text",
"paren.lparen"
"data": [
[ "keyword", "void" ],
[ "text", " " ],
[ "identifier", "main" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" ",
"vNormal",
" ",
"=",
" ",
"normal",
";"
],
"types": [
"text",
"identifier",
"text",
"keyword.operator",
"text",
"identifier",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "identifier", "vNormal" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "normal" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" "
],
"types": [
"text"
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"// multiply our displacement by the"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "// multiply our displacement by the" ]
]
},
{
"state": "start",
"values": [
" ",
"// amplitude. The amp will get animated"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "// amplitude. The amp will get animated" ]
]
},
{
"state": "start",
"values": [
" ",
"// so we'll have animated displacement"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "// so we'll have animated displacement" ]
]
},
{
"state": "start",
"values": [
" ",
"vec3",
" ",
"newPosition",
" ",
"=",
" ",
"position",
" ",
"+",
" "
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"identifier",
"text",
"keyword.operator",
"text"
"data": [
[ "text", " " ],
[ "keyword", "vec3" ],
[ "text", " " ],
[ "identifier", "newPosition" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "position" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"normal",
" ",
"*",
" "
],
"types": [
"text",
"identifier",
"text",
"keyword.operator",
"text"
"data": [
[ "text", " " ],
[ "identifier", "normal" ],
[ "text", " " ],
[ "keyword.operator", "*" ],
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"vec3",
"(",
"displacement",
" ",
"*"
],
"types": [
"text",
"keyword",
"paren.lparen",
"identifier",
"text",
"keyword.operator"
"data": [
[ "text", " " ],
[ "keyword", "vec3" ],
[ "paren.lparen", "(" ],
[ "identifier", "displacement" ],
[ "text", " " ],
[ "keyword.operator", "*" ]
]
},
{
"state": "start",
"values": [
" ",
"amplitude",
")",
";"
],
"types": [
"text",
"identifier",
"paren.rparen",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "identifier", "amplitude" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" ",
"gl_Position",
" ",
"=",
" ",
"projectionMatrix",
" ",
"*"
],
"types": [
"text",
"constant.language",
"text",
"keyword.operator",
"text",
"identifier",
"text",
"keyword.operator"
"data": [
[ "text", " " ],
[ "constant.language", "gl_Position" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "projectionMatrix" ],
[ "text", " " ],
[ "keyword.operator", "*" ]
]
},
{
"state": "start",
"values": [
" ",
"modelViewMatrix",
" ",
"*"
],
"types": [
"text",
"identifier",
"text",
"keyword.operator"
"data": [
[ "text", " " ],
[ "identifier", "modelViewMatrix" ],
[ "text", " " ],
[ "keyword.operator", "*" ]
]
},
{
"state": "start",
"values": [
" ",
"vec4",
"(",
"newPosition",
",",
"1.0",
")",
";"
],
"types": [
"text",
"keyword",
"paren.lparen",
"identifier",
"punctuation.operator",
"constant.numeric",
"paren.rparen",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "vec4" ],
[ "paren.lparen", "(" ],
[ "identifier", "newPosition" ],
[ "punctuation.operator", "," ],
[ "constant.numeric", "1.0" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
}
]

View file

@ -1,617 +1,362 @@
[
{
"state": "start",
"values": [
"// Concurrent computation of pi."
],
"types": [
"comment"
"data": [
[ "comment", "// Concurrent computation of pi." ]
]
},
{
"state": "start",
"values": [
"// See http://goo.gl/ZuTZM."
],
"types": [
"comment"
"data": [
[ "comment", "// See http://goo.gl/ZuTZM." ]
]
},
{
"state": "start",
"values": [
"//"
],
"types": [
"comment"
"data": [
[ "comment", "//" ]
]
},
{
"state": "start",
"values": [
"// This demonstrates Go's ability to handle"
],
"types": [
"comment"
"data": [
[ "comment", "// This demonstrates Go's ability to handle" ]
]
},
{
"state": "start",
"values": [
"// large numbers of concurrent processes."
],
"types": [
"comment"
"data": [
[ "comment", "// large numbers of concurrent processes." ]
]
},
{
"state": "start",
"values": [
"// It is an unreasonable way to calculate pi."
],
"types": [
"comment"
"data": [
[ "comment", "// It is an unreasonable way to calculate pi." ]
]
},
{
"state": "start",
"values": [
"package",
" ",
"main"
],
"types": [
"keyword",
"text",
"identifier"
"data": [
[ "keyword", "package" ],
[ "text", " " ],
[ "identifier", "main" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"import",
" ",
"("
],
"types": [
"keyword",
"text",
"paren.lparen"
"data": [
[ "keyword", "import" ],
[ "text", " " ],
[ "paren.lparen", "(" ]
]
},
{
"state": "start",
"values": [
" ",
"\"fmt\""
],
"types": [
"text",
"string"
"data": [
[ "text", " " ],
[ "string", "\"fmt\"" ]
]
},
{
"state": "start",
"values": [
" ",
"\"math\""
],
"types": [
"text",
"string"
"data": [
[ "text", " " ],
[ "string", "\"math\"" ]
]
},
{
"state": "start",
"values": [
")"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"func",
" ",
"main",
"(",
")",
" ",
"{"
],
"types": [
"keyword",
"text",
"identifier",
"paren.lparen",
"paren.rparen",
"text",
"paren.lparen"
"data": [
[ "keyword", "func" ],
[ "text", " " ],
[ "identifier", "main" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"fmt",
".",
"Println",
"(",
"pi",
"(",
"5000",
")",
")"
],
"types": [
"text",
"identifier",
"punctuation.operator",
"identifier",
"paren.lparen",
"identifier",
"paren.lparen",
"constant.numeric",
"paren.rparen",
"paren.rparen"
"data": [
[ "text", " " ],
[ "identifier", "fmt" ],
[ "punctuation.operator", "." ],
[ "identifier", "Println" ],
[ "paren.lparen", "(" ],
[ "identifier", "pi" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "5000" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"// pi launches n goroutines to compute an"
],
"types": [
"comment"
"data": [
[ "comment", "// pi launches n goroutines to compute an" ]
]
},
{
"state": "start",
"values": [
"// approximation of pi."
],
"types": [
"comment"
"data": [
[ "comment", "// approximation of pi." ]
]
},
{
"state": "start",
"values": [
"func",
" ",
"pi",
"(",
"n",
" ",
"int",
")",
" ",
"float64",
" ",
"{"
],
"types": [
"keyword",
"text",
"identifier",
"paren.lparen",
"identifier",
"text",
"identifier",
"paren.rparen",
"text",
"identifier",
"text",
"paren.lparen"
"data": [
[ "keyword", "func" ],
[ "text", " " ],
[ "identifier", "pi" ],
[ "paren.lparen", "(" ],
[ "identifier", "n" ],
[ "text", " " ],
[ "identifier", "int" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "identifier", "float64" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"ch",
" ",
":",
"=",
" ",
"make",
"(",
"chan",
" ",
"float64",
")"
],
"types": [
"text",
"identifier",
"text",
"punctuation.operator",
"keyword.operator",
"text",
"identifier",
"paren.lparen",
"keyword",
"text",
"identifier",
"paren.rparen"
"data": [
[ "text", " " ],
[ "identifier", "ch" ],
[ "text", " " ],
[ "punctuation.operator", ":" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "make" ],
[ "paren.lparen", "(" ],
[ "keyword", "chan" ],
[ "text", " " ],
[ "identifier", "float64" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"for",
" ",
"k",
" ",
":",
"=",
" ",
"0",
";",
" ",
"k",
" ",
"<=",
" ",
"n",
";",
" ",
"k",
"++",
" ",
"{"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"punctuation.operator",
"keyword.operator",
"text",
"constant.numeric",
"punctuation.operator",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"identifier",
"punctuation.operator",
"text",
"identifier",
"keyword.operator",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "keyword", "for" ],
[ "text", " " ],
[ "identifier", "k" ],
[ "text", " " ],
[ "punctuation.operator", ":" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "punctuation.operator", ";" ],
[ "text", " " ],
[ "identifier", "k" ],
[ "text", " " ],
[ "keyword.operator", "<=" ],
[ "text", " " ],
[ "identifier", "n" ],
[ "punctuation.operator", ";" ],
[ "text", " " ],
[ "identifier", "k" ],
[ "keyword.operator", "++" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"go",
" ",
"term",
"(",
"ch",
",",
" ",
"float64",
"(",
"k",
")",
")"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"paren.lparen",
"identifier",
"punctuation.operator",
"text",
"identifier",
"paren.lparen",
"identifier",
"paren.rparen",
"paren.rparen"
"data": [
[ "text", " " ],
[ "keyword", "go" ],
[ "text", " " ],
[ "identifier", "term" ],
[ "paren.lparen", "(" ],
[ "identifier", "ch" ],
[ "punctuation.operator", "," ],
[ "text", " " ],
[ "identifier", "float64" ],
[ "paren.lparen", "(" ],
[ "identifier", "k" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"f",
" ",
":",
"=",
" ",
"0.0"
],
"types": [
"text",
"identifier",
"text",
"punctuation.operator",
"keyword.operator",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "identifier", "f" ],
[ "text", " " ],
[ "punctuation.operator", ":" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0.0" ]
]
},
{
"state": "start",
"values": [
" ",
"for",
" ",
"k",
" ",
":",
"=",
" ",
"0",
";",
" ",
"k",
" ",
"<=",
" ",
"n",
";",
" ",
"k",
"++",
" ",
"{"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"punctuation.operator",
"keyword.operator",
"text",
"constant.numeric",
"punctuation.operator",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"identifier",
"punctuation.operator",
"text",
"identifier",
"keyword.operator",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "keyword", "for" ],
[ "text", " " ],
[ "identifier", "k" ],
[ "text", " " ],
[ "punctuation.operator", ":" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "punctuation.operator", ";" ],
[ "text", " " ],
[ "identifier", "k" ],
[ "text", " " ],
[ "keyword.operator", "<=" ],
[ "text", " " ],
[ "identifier", "n" ],
[ "punctuation.operator", ";" ],
[ "text", " " ],
[ "identifier", "k" ],
[ "keyword.operator", "++" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"f",
" ",
"+",
"=",
" ",
"<",
"-",
"ch"
],
"types": [
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator",
"text",
"keyword.operator",
"keyword.operator",
"identifier"
"data": [
[ "text", " " ],
[ "identifier", "f" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "keyword.operator", "<" ],
[ "keyword.operator", "-" ],
[ "identifier", "ch" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"return",
" ",
"f"
],
"types": [
"text",
"keyword",
"text",
"identifier"
"data": [
[ "text", " " ],
[ "keyword", "return" ],
[ "text", " " ],
[ "identifier", "f" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"func",
" ",
"term",
"(",
"ch",
" ",
"chan",
" ",
"float64",
",",
" ",
"k",
" ",
"float64",
")",
" ",
"{"
],
"types": [
"keyword",
"text",
"identifier",
"paren.lparen",
"identifier",
"text",
"keyword",
"text",
"identifier",
"punctuation.operator",
"text",
"identifier",
"text",
"identifier",
"paren.rparen",
"text",
"paren.lparen"
"data": [
[ "keyword", "func" ],
[ "text", " " ],
[ "identifier", "term" ],
[ "paren.lparen", "(" ],
[ "identifier", "ch" ],
[ "text", " " ],
[ "keyword", "chan" ],
[ "text", " " ],
[ "identifier", "float64" ],
[ "punctuation.operator", "," ],
[ "text", " " ],
[ "identifier", "k" ],
[ "text", " " ],
[ "identifier", "float64" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"ch",
" ",
"<",
"-",
" ",
"4",
" ",
"*",
" ",
"math",
".",
"Pow",
"(",
"-1",
",",
" ",
"k",
")",
" / ",
"(",
"2",
"*",
"k",
" ",
"+",
" ",
"1",
")"
],
"types": [
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator",
"text",
"constant.numeric",
"text",
"keyword.operator",
"text",
"identifier",
"punctuation.operator",
"identifier",
"paren.lparen",
"constant.numeric",
"punctuation.operator",
"text",
"identifier",
"paren.rparen",
"text",
"paren.lparen",
"constant.numeric",
"keyword.operator",
"identifier",
"text",
"keyword.operator",
"text",
"constant.numeric",
"paren.rparen"
"data": [
[ "text", " " ],
[ "identifier", "ch" ],
[ "text", " " ],
[ "keyword.operator", "<" ],
[ "keyword.operator", "-" ],
[ "text", " " ],
[ "constant.numeric", "4" ],
[ "text", " " ],
[ "keyword.operator", "*" ],
[ "text", " " ],
[ "identifier", "math" ],
[ "punctuation.operator", "." ],
[ "identifier", "Pow" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "-1" ],
[ "punctuation.operator", "," ],
[ "text", " " ],
[ "identifier", "k" ],
[ "paren.rparen", ")" ],
[ "text", " / " ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "2" ],
[ "keyword.operator", "*" ],
[ "identifier", "k" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
}
]

File diff suppressed because it is too large Load diff

View file

@ -1,337 +1,195 @@
[
{
"state": "start",
"values": [
"class",
" ",
"Haxe",
" "
],
"types": [
"keyword",
"text",
"identifier",
"text"
"data": [
[ "keyword", "class" ],
[ "text", " " ],
[ "identifier", "Haxe" ],
[ "text", " " ]
]
},
{
"state": "start",
"values": [
"{"
],
"types": [
"paren.lparen"
"data": [
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"public",
" ",
"static",
" ",
"function",
" ",
"main",
"(",
")",
" "
],
"types": [
"text",
"keyword",
"text",
"keyword",
"text",
"keyword",
"text",
"identifier",
"paren.lparen",
"paren.rparen",
"text"
"data": [
[ "text", " " ],
[ "keyword", "public" ],
[ "text", " " ],
[ "keyword", "static" ],
[ "text", " " ],
[ "keyword", "function" ],
[ "text", " " ],
[ "identifier", "main" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"{"
],
"types": [
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"// Say Hello!"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "// Say Hello!" ]
]
},
{
"state": "start",
"values": [
" ",
"var",
" ",
"greeting",
":",
"String",
" ",
"=",
" ",
"\"Hello World\"",
";"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"punctuation.operator",
"keyword",
"text",
"keyword.operator",
"text",
"string",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "var" ],
[ "text", " " ],
[ "identifier", "greeting" ],
[ "punctuation.operator", ":" ],
[ "keyword", "String" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"Hello World\"" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"trace",
"(",
"greeting",
")",
";"
],
"types": [
"text",
"keyword",
"paren.lparen",
"identifier",
"paren.rparen",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "trace" ],
[ "paren.lparen", "(" ],
[ "identifier", "greeting" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" "
],
"types": [
"text"
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"var",
" ",
"targets",
":",
"Array",
"<",
"String",
">",
" ",
"=",
" ",
"[",
"\"Flash\"",
",",
"\"Javascript\"",
",",
"\"PHP\"",
",",
"\"Neko\"",
",",
"\"C++\"",
",",
"\"iOS\"",
",",
"\"Android\"",
",",
"\"webOS\"",
"]",
";"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"punctuation.operator",
"keyword",
"keyword.operator",
"keyword",
"keyword.operator",
"text",
"keyword.operator",
"text",
"paren.lparen",
"string",
"punctuation.operator",
"string",
"punctuation.operator",
"string",
"punctuation.operator",
"string",
"punctuation.operator",
"string",
"punctuation.operator",
"string",
"punctuation.operator",
"string",
"punctuation.operator",
"string",
"paren.rparen",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "var" ],
[ "text", " " ],
[ "identifier", "targets" ],
[ "punctuation.operator", ":" ],
[ "keyword", "Array" ],
[ "keyword.operator", "<" ],
[ "keyword", "String" ],
[ "keyword.operator", ">" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "paren.lparen", "[" ],
[ "string", "\"Flash\"" ],
[ "punctuation.operator", "," ],
[ "string", "\"Javascript\"" ],
[ "punctuation.operator", "," ],
[ "string", "\"PHP\"" ],
[ "punctuation.operator", "," ],
[ "string", "\"Neko\"" ],
[ "punctuation.operator", "," ],
[ "string", "\"C++\"" ],
[ "punctuation.operator", "," ],
[ "string", "\"iOS\"" ],
[ "punctuation.operator", "," ],
[ "string", "\"Android\"" ],
[ "punctuation.operator", "," ],
[ "string", "\"webOS\"" ],
[ "paren.rparen", "]" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"trace",
"(",
"\"Haxe is a great language that can target:\"",
")",
";"
],
"types": [
"text",
"keyword",
"paren.lparen",
"string",
"paren.rparen",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "trace" ],
[ "paren.lparen", "(" ],
[ "string", "\"Haxe is a great language that can target:\"" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"for",
" ",
"(",
"target",
" ",
"in",
" ",
"targets",
")"
],
"types": [
"text",
"keyword",
"text",
"paren.lparen",
"identifier",
"text",
"keyword",
"text",
"identifier",
"paren.rparen"
"data": [
[ "text", " " ],
[ "keyword", "for" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "identifier", "target" ],
[ "text", " " ],
[ "keyword", "in" ],
[ "text", " " ],
[ "identifier", "targets" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"{"
],
"types": [
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"trace",
" ",
"(",
"\" - \"",
" ",
"+",
" ",
"target",
")",
";"
],
"types": [
"text",
"keyword",
"text",
"paren.lparen",
"string",
"text",
"keyword.operator",
"text",
"identifier",
"paren.rparen",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "trace" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "string", "\" - \"" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "identifier", "target" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"trace",
"(",
"\"And many more!\"",
")",
";"
],
"types": [
"text",
"keyword",
"paren.lparen",
"string",
"paren.rparen",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "trace" ],
[ "paren.lparen", "(" ],
[ "string", "\"And many more!\"" ],
[ "paren.rparen", ")" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
}
]

View file

@ -1,250 +1,150 @@
[
{
"state": "start",
"values": [
"<",
"html",
">"
],
"types": [
"meta.tag",
"meta.tag.tag-name",
"meta.tag"
"data": [
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "html" ],
[ "meta.tag", ">" ]
]
},
{
"state": "start",
"values": [
" ",
"<",
"head",
">"
],
"types": [
"text",
"meta.tag",
"meta.tag.tag-name",
"meta.tag"
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "head" ],
[ "meta.tag", ">" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "css-start",
"values": [
" ",
"<",
"style",
" ",
"type",
"=",
"\"text/css\"",
">"
],
"types": [
"text",
"meta.tag",
"meta.tag.tag-name.style",
"text",
"entity.other.attribute-name",
"keyword.operator",
"string",
"meta.tag"
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name.style", "style" ],
[ "text", " " ],
[ "entity.other.attribute-name", "type" ],
[ "keyword.operator", "=" ],
[ "string", "\"text/css\"" ],
[ "meta.tag", ">" ]
]
},
{
"state": "css-ruleset",
"values": [
" ",
".text-layer",
" ",
"{"
],
"types": [
"text",
"variable",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "variable", ".text-layer" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "css-ruleset",
"values": [
" ",
"font-family",
": Monaco, ",
"\"Courier New\"",
", ",
"monospace",
";"
],
"types": [
"text",
"support.type",
"text",
"string",
"text",
"support.constant.fonts",
"text"
"data": [
[ "text", " " ],
[ "support.type", "font-family" ],
[ "text", ": Monaco, " ],
[ "string", "\"Courier New\"" ],
[ "text", ", " ],
[ "support.constant.fonts", "monospace" ],
[ "text", ";" ]
]
},
{
"state": "css-ruleset",
"values": [
" ",
"font-size",
": ",
"12",
"px",
";"
],
"types": [
"text",
"support.type",
"text",
"constant.numeric",
"keyword",
"text"
"data": [
[ "text", " " ],
[ "support.type", "font-size" ],
[ "text", ": " ],
[ "constant.numeric", "12" ],
[ "keyword", "px" ],
[ "text", ";" ]
]
},
{
"state": "css-ruleset",
"values": [
" ",
"cursor",
": ",
"text",
";"
],
"types": [
"text",
"support.type",
"text",
"support.constant",
"text"
"data": [
[ "text", " " ],
[ "support.type", "cursor" ],
[ "text", ": " ],
[ "support.constant", "text" ],
[ "text", ";" ]
]
},
{
"state": "css-start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"</",
"style",
">"
],
"types": [
"text",
"meta.tag",
"meta.tag.tag-name.style",
"meta.tag"
"data": [
[ "text", " " ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name.style", "style" ],
[ "meta.tag", ">" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" ",
"</",
"head",
">"
],
"types": [
"text",
"meta.tag",
"meta.tag.tag-name",
"meta.tag"
"data": [
[ "text", " " ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "head" ],
[ "meta.tag", ">" ]
]
},
{
"state": "start",
"values": [
" ",
"<",
"body",
">"
],
"types": [
"text",
"meta.tag",
"meta.tag.tag-name",
"meta.tag"
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "body" ],
[ "meta.tag", ">" ]
]
},
{
"state": "start",
"values": [
" ",
"<",
"h1",
" ",
"style",
"=",
"\"color:red\"",
">",
"Juhu Kinners",
"</",
"h1",
">"
],
"types": [
"text",
"meta.tag",
"meta.tag.tag-name",
"text",
"entity.other.attribute-name",
"keyword.operator",
"string",
"meta.tag",
"text",
"meta.tag",
"meta.tag.tag-name",
"meta.tag"
"data": [
[ "text", " " ],
[ "meta.tag", "<" ],
[ "meta.tag.tag-name", "h1" ],
[ "text", " " ],
[ "entity.other.attribute-name", "style" ],
[ "keyword.operator", "=" ],
[ "string", "\"color:red\"" ],
[ "meta.tag", ">" ],
[ "text", "Juhu Kinners" ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "h1" ],
[ "meta.tag", ">" ]
]
},
{
"state": "start",
"values": [
" ",
"</",
"body",
">"
],
"types": [
"text",
"meta.tag",
"meta.tag.tag-name",
"meta.tag"
"data": [
[ "text", " " ],
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "body" ],
[ "meta.tag", ">" ]
]
},
{
"state": "start",
"values": [
"</",
"html",
">"
],
"types": [
"meta.tag",
"meta.tag.tag-name",
"meta.tag"
"data": [
[ "meta.tag", "</" ],
[ "meta.tag.tag-name", "html" ],
[ "meta.tag", ">" ]
]
}
]

View file

@ -1,231 +1,139 @@
[
{
"state": "start",
"values": [
"public",
" ",
"class",
" ",
"InfiniteLoop",
" ",
"{"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"identifier",
"text",
"lparen"
"data": [
[ "keyword", "public" ],
[ "text", " " ],
[ "keyword", "class" ],
[ "text", " " ],
[ "identifier", "InfiniteLoop" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "comment",
"values": [
" ",
"/*"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "/*" ]
]
},
{
"state": "comment",
"values": [
" * This will cause the program to hang..."
],
"types": [
"comment"
"data": [
[ "comment", " * This will cause the program to hang..." ]
]
},
{
"state": "comment",
"values": [
" *"
],
"types": [
"comment"
"data": [
[ "comment", " *" ]
]
},
{
"state": "comment",
"values": [
" * Taken from:"
],
"types": [
"comment"
"data": [
[ "comment", " * Taken from:" ]
]
},
{
"state": "comment",
"values": [
" * http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/"
],
"types": [
"comment"
"data": [
[ "comment", " * http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/" ]
]
},
{
"state": "start",
"values": [
" */"
],
"types": [
"comment"
"data": [
[ "comment", " */" ]
]
},
{
"state": "start",
"values": [
" ",
"public",
" ",
"static",
" ",
"void",
" ",
"main",
"(",
"String",
"[",
"]",
" ",
"args",
")",
" ",
"{"
],
"types": [
"text",
"keyword",
"text",
"keyword",
"text",
"keyword",
"text",
"identifier",
"lparen",
"support.function",
"lparen",
"rparen",
"text",
"identifier",
"rparen",
"text",
"lparen"
"data": [
[ "text", " " ],
[ "keyword", "public" ],
[ "text", " " ],
[ "keyword", "static" ],
[ "text", " " ],
[ "keyword", "void" ],
[ "text", " " ],
[ "identifier", "main" ],
[ "lparen", "(" ],
[ "support.function", "String" ],
[ "lparen", "[" ],
[ "rparen", "]" ],
[ "text", " " ],
[ "identifier", "args" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"double",
" ",
"d",
" ",
"=",
" ",
"Double",
".",
"parseDouble",
"(",
"\"2.2250738585072012e-308\"",
")",
";"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"support.function",
"text",
"identifier",
"lparen",
"string",
"rparen",
"text"
"data": [
[ "text", " " ],
[ "keyword", "double" ],
[ "text", " " ],
[ "identifier", "d" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "support.function", "Double" ],
[ "text", "." ],
[ "identifier", "parseDouble" ],
[ "lparen", "(" ],
[ "string", "\"2.2250738585072012e-308\"" ],
[ "rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" ",
"// unreachable code"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "// unreachable code" ]
]
},
{
"state": "start",
"values": [
" ",
"System",
".",
"out",
".",
"println",
"(",
"\"Value: \"",
" ",
"+",
" ",
"d",
")",
";"
],
"types": [
"text",
"support.function",
"text",
"identifier",
"text",
"identifier",
"lparen",
"string",
"text",
"keyword.operator",
"text",
"identifier",
"rparen",
"text"
"data": [
[ "text", " " ],
[ "support.function", "System" ],
[ "text", "." ],
[ "identifier", "out" ],
[ "text", "." ],
[ "identifier", "println" ],
[ "lparen", "(" ],
[ "string", "\"Value: \"" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "identifier", "d" ],
[ "rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"rparen"
"data": [
[ "text", " " ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"rparen"
"data": [
[ "rparen", "}" ]
]
}
]

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,129 +1,79 @@
[
{
"state": "comment",
"values": [
"/*EXPECTED"
],
"types": [
"comment"
"data": [
[ "comment", "/*EXPECTED" ]
]
},
{
"state": "comment",
"values": [
"hello world!"
],
"types": [
"comment"
"data": [
[ "comment", "hello world!" ]
]
},
{
"state": "start",
"values": [
"*/"
],
"types": [
"comment"
"data": [
[ "comment", "*/" ]
]
},
{
"state": "start",
"values": [
"class",
" ",
"Test",
" ",
"{"
],
"types": [
"keyword",
"text",
"language.support.class",
"text",
"paren.lparen"
"data": [
[ "keyword", "class" ],
[ "text", " " ],
[ "language.support.class", "Test" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"static",
" ",
"function",
" ",
"run",
"(",
")",
" ",
":",
" ",
"void",
" ",
"{"
],
"types": [
"text",
"keyword",
"text",
"storage.type",
"text",
"entity.name.function",
"paren.lparen",
"paren.rparen",
"text",
"punctuation.operator",
"text",
"keyword",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "keyword", "static" ],
[ "text", " " ],
[ "storage.type", "function" ],
[ "text", " " ],
[ "entity.name.function", "run" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "punctuation.operator", ":" ],
[ "text", " " ],
[ "keyword", "void" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"// console.log(\"hello world!\");"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "// console.log(\"hello world!\");" ]
]
},
{
"state": "start",
"values": [
" ",
"log",
" ",
"\"hello world!\"",
";"
],
"types": [
"text",
"keyword",
"text",
"string",
"punctuation.operator"
"data": [
[ "text", " " ],
[ "keyword", "log" ],
[ "text", " " ],
[ "string", "\"hello world!\"" ],
[ "punctuation.operator", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
}
]

View file

@ -1,324 +1,196 @@
[
{
"state": "start",
"values": [
"\\usepackage",
"{",
"amsmath",
"}"
],
"types": [
"keyword",
"lparen",
"text",
"rparen"
"data": [
[ "keyword", "\\usepackage" ],
[ "lparen", "{" ],
[ "text", "amsmath" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
"\\title",
"{",
"\\LaTeX",
"}"
],
"types": [
"keyword",
"lparen",
"keyword",
"rparen"
"data": [
[ "keyword", "\\title" ],
[ "lparen", "{" ],
[ "keyword", "\\LaTeX" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
"\\date",
"{",
"}"
],
"types": [
"keyword",
"lparen",
"rparen"
"data": [
[ "keyword", "\\date" ],
[ "lparen", "{" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
"\\begin",
"{",
"document",
"}"
],
"types": [
"keyword",
"lparen",
"text",
"rparen"
"data": [
[ "keyword", "\\begin" ],
[ "lparen", "{" ],
[ "text", "document" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"\\maketitle"
],
"types": [
"text",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "\\maketitle" ]
]
},
{
"state": "start",
"values": [
" ",
"\\LaTeX",
"{",
"}",
" is a document preparation system for the ",
"\\TeX",
"{",
"}"
],
"types": [
"text",
"keyword",
"lparen",
"rparen",
"text",
"keyword",
"lparen",
"rparen"
"data": [
[ "text", " " ],
[ "keyword", "\\LaTeX" ],
[ "lparen", "{" ],
[ "rparen", "}" ],
[ "text", " is a document preparation system for the " ],
[ "keyword", "\\TeX" ],
[ "lparen", "{" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
" typesetting program. It offers programmable desktop publishing"
],
"types": [
"text"
"data": [
[ "text", " typesetting program. It offers programmable desktop publishing" ]
]
},
{
"state": "start",
"values": [
" features and extensive facilities for automating most aspects of"
],
"types": [
"text"
"data": [
[ "text", " features and extensive facilities for automating most aspects of" ]
]
},
{
"state": "start",
"values": [
" typesetting and desktop publishing, including numbering and"
],
"types": [
"text"
"data": [
[ "text", " typesetting and desktop publishing, including numbering and" ]
]
},
{
"state": "start",
"values": [
" cross-referencing, tables and figures, page layout, bibliographies,"
],
"types": [
"text"
"data": [
[ "text", " cross-referencing, tables and figures, page layout, bibliographies," ]
]
},
{
"state": "start",
"values": [
" and much more. ",
"\\LaTeX",
"{",
"}",
" was originally written in 1984 by Leslie"
],
"types": [
"text",
"keyword",
"lparen",
"rparen",
"text"
"data": [
[ "text", " and much more. " ],
[ "keyword", "\\LaTeX" ],
[ "lparen", "{" ],
[ "rparen", "}" ],
[ "text", " was originally written in 1984 by Leslie" ]
]
},
{
"state": "start",
"values": [
" Lamport and has become the dominant method for using ",
"\\TeX",
"; few"
],
"types": [
"text",
"keyword",
"text"
"data": [
[ "text", " Lamport and has become the dominant method for using " ],
[ "keyword", "\\TeX" ],
[ "text", "; few" ]
]
},
{
"state": "start",
"values": [
" people write in plain ",
"\\TeX",
"{",
"}",
" anymore. The current version is"
],
"types": [
"text",
"keyword",
"lparen",
"rparen",
"text"
"data": [
[ "text", " people write in plain " ],
[ "keyword", "\\TeX" ],
[ "lparen", "{" ],
[ "rparen", "}" ],
[ "text", " anymore. The current version is" ]
]
},
{
"state": "start",
"values": [
" ",
"\\LaTeXe",
"."
],
"types": [
"text",
"keyword",
"text"
"data": [
[ "text", " " ],
[ "keyword", "\\LaTeXe" ],
[ "text", "." ]
]
},
{
"state": "start",
"values": [
" "
],
"types": [
"text"
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"% This is a comment; it will not be shown in the final output."
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "% This is a comment; it will not be shown in the final output." ]
]
},
{
"state": "start",
"values": [
" ",
"% The following shows a little of the typesetting power of LaTeX:"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "% The following shows a little of the typesetting power of LaTeX:" ]
]
},
{
"state": "start",
"values": [
" ",
"\\begin",
"{",
"align",
"}"
],
"types": [
"text",
"keyword",
"lparen",
"text",
"rparen"
"data": [
[ "text", " " ],
[ "keyword", "\\begin" ],
[ "lparen", "{" ],
[ "text", "align" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
" E &= mc^2 ",
"\\\\"
],
"types": [
"text",
"keyword"
"data": [
[ "text", " E &= mc^2 " ],
[ "keyword", "\\\\" ]
]
},
{
"state": "start",
"values": [
" m &= ",
"\\frac",
"{",
"m_0",
"}",
"{",
"\\sqrt",
"{",
"1-",
"\\frac",
"{",
"v^2",
"}",
"{",
"c^2",
"}",
"}",
"}"
],
"types": [
"text",
"keyword",
"lparen",
"text",
"rparen",
"lparen",
"keyword",
"lparen",
"text",
"keyword",
"lparen",
"text",
"rparen",
"lparen",
"text",
"rparen",
"rparen",
"rparen"
"data": [
[ "text", " m &= " ],
[ "keyword", "\\frac" ],
[ "lparen", "{" ],
[ "text", "m_0" ],
[ "rparen", "}" ],
[ "lparen", "{" ],
[ "keyword", "\\sqrt" ],
[ "lparen", "{" ],
[ "text", "1-" ],
[ "keyword", "\\frac" ],
[ "lparen", "{" ],
[ "text", "v^2" ],
[ "rparen", "}" ],
[ "lparen", "{" ],
[ "text", "c^2" ],
[ "rparen", "}" ],
[ "rparen", "}" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"\\end",
"{",
"align",
"}"
],
"types": [
"text",
"keyword",
"lparen",
"text",
"rparen"
"data": [
[ "text", " " ],
[ "keyword", "\\end" ],
[ "lparen", "{" ],
[ "text", "align" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
"\\end",
"{",
"document",
"}"
],
"types": [
"keyword",
"lparen",
"text",
"rparen"
"data": [
[ "keyword", "\\end" ],
[ "lparen", "{" ],
[ "text", "document" ],
[ "rparen", "}" ]
]
}
]

View file

@ -1,495 +1,292 @@
[
{
"state": "start",
"values": [
"/*",
" styles.less */"
],
"types": [
"comment",
"comment"
"data": [
[ "comment", "/*" ],
[ "comment", " styles.less */" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"@base",
": ",
"#f938ab",
";"
],
"types": [
"variable",
"text",
"constant.numeric",
"text"
"data": [
[ "variable", "@base" ],
[ "text", ": " ],
[ "constant.numeric", "#f938ab" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
".box-shadow",
"(",
"@style",
", ",
"@c",
")",
" ",
"when",
" ",
"(",
"iscolor",
"(",
"@c",
")",
")",
" ",
"{"
],
"types": [
"variable.language",
"paren.lparen",
"variable",
"text",
"variable",
"paren.rparen",
"text",
"keyword",
"text",
"paren.lparen",
"support.function",
"paren.lparen",
"variable",
"paren.rparen",
"paren.rparen",
"text",
"paren.lparen"
"data": [
[ "variable.language", ".box-shadow" ],
[ "paren.lparen", "(" ],
[ "variable", "@style" ],
[ "text", ", " ],
[ "variable", "@c" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "keyword", "when" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "support.function", "iscolor" ],
[ "paren.lparen", "(" ],
[ "variable", "@c" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" box-shadow: ",
"@style",
" ",
"@c",
";"
],
"types": [
"text",
"variable",
"text",
"variable",
"text"
"data": [
[ "text", " box-shadow: " ],
[ "variable", "@style" ],
[ "text", " " ],
[ "variable", "@c" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" -webkit-box-shadow: ",
"@style",
" ",
"@c",
";"
],
"types": [
"text",
"variable",
"text",
"variable",
"text"
"data": [
[ "text", " -webkit-box-shadow: " ],
[ "variable", "@style" ],
[ "text", " " ],
[ "variable", "@c" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" -moz-box-shadow: ",
"@style",
" ",
"@c",
";"
],
"types": [
"text",
"variable",
"text",
"variable",
"text"
"data": [
[ "text", " -moz-box-shadow: " ],
[ "variable", "@style" ],
[ "text", " " ],
[ "variable", "@c" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
".box-shadow",
"(",
"@style",
", ",
"@alpha",
": ",
"50%",
")",
" ",
"when",
" ",
"(",
"isnumber",
"(",
"@alpha",
")",
")",
" ",
"{"
],
"types": [
"variable.language",
"paren.lparen",
"variable",
"text",
"variable",
"text",
"constant.numeric",
"paren.rparen",
"text",
"keyword",
"text",
"paren.lparen",
"support.function",
"paren.lparen",
"variable",
"paren.rparen",
"paren.rparen",
"text",
"paren.lparen"
"data": [
[ "variable.language", ".box-shadow" ],
[ "paren.lparen", "(" ],
[ "variable", "@style" ],
[ "text", ", " ],
[ "variable", "@alpha" ],
[ "text", ": " ],
[ "constant.numeric", "50%" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "keyword", "when" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "support.function", "isnumber" ],
[ "paren.lparen", "(" ],
[ "variable", "@alpha" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
".box-shadow",
"(",
"@style",
", ",
"rgba",
"(",
"0",
", ",
"0",
", ",
"0",
", ",
"@alpha",
")",
")",
";"
],
"types": [
"text",
"variable.language",
"paren.lparen",
"variable",
"text",
"support.function",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"text",
"variable",
"paren.rparen",
"paren.rparen",
"text"
"data": [
[ "text", " " ],
[ "variable.language", ".box-shadow" ],
[ "paren.lparen", "(" ],
[ "variable", "@style" ],
[ "text", ", " ],
[ "support.function", "rgba" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "0" ],
[ "text", ", " ],
[ "constant.numeric", "0" ],
[ "text", ", " ],
[ "constant.numeric", "0" ],
[ "text", ", " ],
[ "variable", "@alpha" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"// Box styles"
],
"types": [
"comment"
"data": [
[ "comment", "// Box styles" ]
]
},
{
"state": "start",
"values": [
".box",
" ",
"{",
" "
],
"types": [
"variable.language",
"text",
"paren.lparen",
"text"
"data": [
[ "variable.language", ".box" ],
[ "text", " " ],
[ "paren.lparen", "{" ],
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"color",
": ",
"saturate",
"(",
"@base",
", ",
"5%",
")",
";"
],
"types": [
"text",
"support.type",
"text",
"support.function",
"paren.lparen",
"variable",
"text",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", " " ],
[ "support.type", "color" ],
[ "text", ": " ],
[ "support.function", "saturate" ],
[ "paren.lparen", "(" ],
[ "variable", "@base" ],
[ "text", ", " ],
[ "constant.numeric", "5%" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"border-color",
": ",
"lighten",
"(",
"@base",
", ",
"30%",
")",
";"
],
"types": [
"text",
"support.type",
"text",
"support.function",
"paren.lparen",
"variable",
"text",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", " " ],
[ "support.type", "border-color" ],
[ "text", ": " ],
[ "support.function", "lighten" ],
[ "paren.lparen", "(" ],
[ "variable", "@base" ],
[ "text", ", " ],
[ "constant.numeric", "30%" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" "
],
"types": [
"text"
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"div",
" ",
"{",
" ",
".box-shadow",
"(",
"0",
" ",
"0",
" ",
"5px",
", ",
"30%",
")",
" ",
"}"
],
"types": [
"text",
"variable.language",
"text",
"paren.lparen",
"text",
"variable.language",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "variable.language", "div" ],
[ "text", " " ],
[ "paren.lparen", "{" ],
[ "text", " " ],
[ "variable.language", ".box-shadow" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "constant.numeric", "5px" ],
[ "text", ", " ],
[ "constant.numeric", "30%" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
" "
],
"types": [
"text"
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" ",
"a",
" ",
"{"
],
"types": [
"text",
"variable.language",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "variable.language", "a" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"color",
": ",
"@base",
";"
],
"types": [
"text",
"support.type",
"text",
"variable",
"text"
"data": [
[ "text", " " ],
[ "support.type", "color" ],
[ "text", ": " ],
[ "variable", "@base" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" "
],
"types": [
"text"
"data": [
[ "text", " " ]
]
},
{
"state": "start",
"values": [
" &",
":hover",
" ",
"{"
],
"types": [
"text",
"variable.language",
"text",
"paren.lparen"
"data": [
[ "text", " &" ],
[ "variable.language", ":hover" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"color",
": ",
"lighten",
"(",
"@base",
", ",
"50%",
")",
";"
],
"types": [
"text",
"support.type",
"text",
"support.function",
"paren.lparen",
"variable",
"text",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", " " ],
[ "support.type", "color" ],
[ "text", ": " ],
[ "support.function", "lighten" ],
[ "paren.lparen", "(" ],
[ "variable", "@base" ],
[ "text", ", " ],
[ "constant.numeric", "50%" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
}
]

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,464 +1,260 @@
[
{
"state": "comment",
"values": [
"(*"
],
"types": [
"comment"
"data": [
[ "comment", "(*" ]
]
},
{
"state": "comment",
"values": [
" * Example of early return implementation taken from"
],
"types": [
"comment"
"data": [
[ "comment", " * Example of early return implementation taken from" ]
]
},
{
"state": "comment",
"values": [
" * http://ocaml.janestreet.com/?q=node/91"
],
"types": [
"comment"
"data": [
[ "comment", " * http://ocaml.janestreet.com/?q=node/91" ]
]
},
{
"state": "start",
"values": [
" *)"
],
"types": [
"comment"
"data": [
[ "comment", " *)" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"let",
" ",
"with_return",
" ",
"(",
"type",
" ",
"t",
")",
" ",
"(",
"f",
" : ",
"_",
" ",
"-",
">",
" ",
"t",
")",
" ",
"="
],
"types": [
"keyword",
"text",
"identifier",
"text",
"paren.lparen",
"keyword",
"text",
"identifier",
"paren.rparen",
"text",
"paren.lparen",
"identifier",
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator",
"text",
"identifier",
"paren.rparen",
"text",
"keyword.operator"
"data": [
[ "keyword", "let" ],
[ "text", " " ],
[ "identifier", "with_return" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "keyword", "type" ],
[ "text", " " ],
[ "identifier", "t" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "identifier", "f" ],
[ "text", " : " ],
[ "identifier", "_" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "keyword.operator", ">" ],
[ "text", " " ],
[ "identifier", "t" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "keyword.operator", "=" ]
]
},
{
"state": "start",
"values": [
" ",
"let",
" ",
"module",
" ",
"M",
" ",
"="
],
"types": [
"text",
"keyword",
"text",
"keyword",
"text",
"identifier",
"text",
"keyword.operator"
"data": [
[ "text", " " ],
[ "keyword", "let" ],
[ "text", " " ],
[ "keyword", "module" ],
[ "text", " " ],
[ "identifier", "M" ],
[ "text", " " ],
[ "keyword.operator", "=" ]
]
},
{
"state": "start",
"values": [
" ",
"struct",
" ",
"exception",
" ",
"Return",
" ",
"of",
" ",
"t",
" ",
"end"
],
"types": [
"text",
"keyword",
"text",
"keyword",
"text",
"identifier",
"text",
"keyword",
"text",
"identifier",
"text",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "struct" ],
[ "text", " " ],
[ "keyword", "exception" ],
[ "text", " " ],
[ "identifier", "Return" ],
[ "text", " " ],
[ "keyword", "of" ],
[ "text", " " ],
[ "identifier", "t" ],
[ "text", " " ],
[ "keyword", "end" ]
]
},
{
"state": "start",
"values": [
" ",
"in"
],
"types": [
"text",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "in" ]
]
},
{
"state": "start",
"values": [
" ",
"let",
" ",
"return",
" ",
"=",
" ",
"{",
" ",
"return",
" ",
"=",
" ",
"(",
"fun",
" ",
"x",
" ",
"-",
">",
" ",
"raise",
" ",
"(",
"M",
".",
"Return",
" ",
"x",
")",
")",
"; ",
"}",
" ",
"in"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"paren.lparen",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"paren.lparen",
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator",
"text",
"support.function",
"text",
"paren.lparen",
"identifier",
"text",
"identifier",
"text",
"identifier",
"paren.rparen",
"paren.rparen",
"text",
"paren.rparen",
"text",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "let" ],
[ "text", " " ],
[ "identifier", "return" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "paren.lparen", "{" ],
[ "text", " " ],
[ "identifier", "return" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "keyword", "fun" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "keyword.operator", ">" ],
[ "text", " " ],
[ "support.function", "raise" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "identifier", "M" ],
[ "text", "." ],
[ "identifier", "Return" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ],
[ "text", "; " ],
[ "paren.rparen", "}" ],
[ "text", " " ],
[ "keyword", "in" ]
]
},
{
"state": "start",
"values": [
" ",
"try",
" ",
"f",
" ",
"return",
" ",
"with",
" ",
"M",
".",
"Return",
" ",
"x",
" ",
"-",
">",
" ",
"x"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"identifier",
"text",
"keyword",
"text",
"identifier",
"text",
"identifier",
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator",
"text",
"identifier"
"data": [
[ "text", " " ],
[ "keyword", "try" ],
[ "text", " " ],
[ "identifier", "f" ],
[ "text", " " ],
[ "identifier", "return" ],
[ "text", " " ],
[ "keyword", "with" ],
[ "text", " " ],
[ "identifier", "M" ],
[ "text", "." ],
[ "identifier", "Return" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "keyword.operator", ">" ],
[ "text", " " ],
[ "identifier", "x" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"(* Function that uses the 'early return' functionality provided by `with_return` *)"
],
"types": [
"comment"
"data": [
[ "comment", "(* Function that uses the 'early return' functionality provided by `with_return` *)" ]
]
},
{
"state": "start",
"values": [
"let",
" ",
"sum_until_first_negative",
" ",
"list",
" ",
"="
],
"types": [
"keyword",
"text",
"identifier",
"text",
"support.function",
"text",
"keyword.operator"
"data": [
[ "keyword", "let" ],
[ "text", " " ],
[ "identifier", "sum_until_first_negative" ],
[ "text", " " ],
[ "support.function", "list" ],
[ "text", " " ],
[ "keyword.operator", "=" ]
]
},
{
"state": "start",
"values": [
" ",
"with_return",
" ",
"(",
"fun",
" ",
"r",
" ",
"-",
">"
],
"types": [
"text",
"identifier",
"text",
"paren.lparen",
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator"
"data": [
[ "text", " " ],
[ "identifier", "with_return" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "keyword", "fun" ],
[ "text", " " ],
[ "identifier", "r" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "keyword.operator", ">" ]
]
},
{
"state": "start",
"values": [
" ",
"List",
".",
"fold",
" ",
"list",
" ",
"~",
"init",
":",
"0",
" ",
"~",
"f",
":",
"(",
"fun",
" ",
"acc",
" ",
"x",
" ",
"-",
">"
],
"types": [
"text",
"support.function",
"text",
"support.function",
"text",
"support.function",
"text",
"keyword.operator",
"support.function",
"text",
"constant.numeric",
"text",
"keyword.operator",
"identifier",
"text",
"paren.lparen",
"keyword",
"text",
"identifier",
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator"
"data": [
[ "text", " " ],
[ "support.function", "List" ],
[ "text", "." ],
[ "support.function", "fold" ],
[ "text", " " ],
[ "support.function", "list" ],
[ "text", " " ],
[ "keyword.operator", "~" ],
[ "support.function", "init" ],
[ "text", ":" ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "keyword.operator", "~" ],
[ "identifier", "f" ],
[ "text", ":" ],
[ "paren.lparen", "(" ],
[ "keyword", "fun" ],
[ "text", " " ],
[ "identifier", "acc" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "keyword.operator", ">" ]
]
},
{
"state": "start",
"values": [
" ",
"if",
" ",
"x",
" ",
">",
"=",
" ",
"0",
" ",
"then",
" ",
"acc",
" ",
"+",
" ",
"x",
" ",
"else",
" ",
"r",
".",
"return",
" ",
"acc",
")",
")"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"keyword.operator",
"text",
"constant.numeric",
"text",
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"identifier",
"text",
"keyword",
"text",
"identifier",
"text",
"identifier",
"text",
"identifier",
"paren.rparen",
"paren.rparen"
"data": [
[ "text", " " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword.operator", ">" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "keyword", "then" ],
[ "text", " " ],
[ "identifier", "acc" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "identifier", "x" ],
[ "text", " " ],
[ "keyword", "else" ],
[ "text", " " ],
[ "identifier", "r" ],
[ "text", "." ],
[ "identifier", "return" ],
[ "text", " " ],
[ "identifier", "acc" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ]
]
}
]

View file

@ -1,521 +1,311 @@
[
{
"state": "start",
"values": [
"#!/usr/bin/perl"
],
"types": [
"comment"
"data": [
[ "comment", "#!/usr/bin/perl" ]
]
},
{
"state": "start",
"values": [
"use",
" ",
"strict",
";"
],
"types": [
"keyword",
"text",
"identifier",
"text"
"data": [
[ "keyword", "use" ],
[ "text", " " ],
[ "identifier", "strict" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"use",
" ",
"warnings",
";"
],
"types": [
"keyword",
"text",
"identifier",
"text"
"data": [
[ "keyword", "use" ],
[ "text", " " ],
[ "identifier", "warnings" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"my",
" ",
"$num_primes",
" ",
"=",
" ",
"0",
";"
],
"types": [
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"constant.numeric",
"text"
"data": [
[ "keyword", "my" ],
[ "text", " " ],
[ "identifier", "$num_primes" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"my",
" @",
"primes",
";"
],
"types": [
"keyword",
"text",
"identifier",
"text"
"data": [
[ "keyword", "my" ],
[ "text", " @" ],
[ "identifier", "primes" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"# Put 2 as the first prime so we won't have an empty array"
],
"types": [
"comment"
"data": [
[ "comment", "# Put 2 as the first prime so we won't have an empty array" ]
]
},
{
"state": "start",
"values": [
"$primes",
"[",
"$num_primes",
"]",
" ",
"=",
" ",
"2",
";"
],
"types": [
"identifier",
"lparen",
"identifier",
"rparen",
"text",
"keyword.operator",
"text",
"constant.numeric",
"text"
"data": [
[ "identifier", "$primes" ],
[ "lparen", "[" ],
[ "identifier", "$num_primes" ],
[ "rparen", "]" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"$num_primes",
"++",
";"
],
"types": [
"identifier",
"keyword.operator",
"text"
"data": [
[ "identifier", "$num_primes" ],
[ "keyword.operator", "++" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"MAIN_LOOP",
":"
],
"types": [
"identifier",
"text"
"data": [
[ "identifier", "MAIN_LOOP" ],
[ "text", ":" ]
]
},
{
"state": "start",
"values": [
"for",
" ",
"my",
" ",
"$number_to_check",
" ",
"(",
"3",
" ",
"..",
" ",
"200",
")"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"identifier",
"text",
"lparen",
"constant.numeric",
"text",
"keyword.operator",
"text",
"constant.numeric",
"rparen"
"data": [
[ "keyword", "for" ],
[ "text", " " ],
[ "keyword", "my" ],
[ "text", " " ],
[ "identifier", "$number_to_check" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "constant.numeric", "3" ],
[ "text", " " ],
[ "keyword.operator", ".." ],
[ "text", " " ],
[ "constant.numeric", "200" ],
[ "rparen", ")" ]
]
},
{
"state": "start",
"values": [
"{"
],
"types": [
"lparen"
"data": [
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"for",
" ",
"my",
" ",
"$p",
" ",
"(",
"0",
" ",
"..",
" ",
"(",
"$num_primes",
"-1",
")",
")"
],
"types": [
"text",
"keyword",
"text",
"keyword",
"text",
"identifier",
"text",
"lparen",
"constant.numeric",
"text",
"keyword.operator",
"text",
"lparen",
"identifier",
"constant.numeric",
"rparen",
"rparen"
"data": [
[ "text", " " ],
[ "keyword", "for" ],
[ "text", " " ],
[ "keyword", "my" ],
[ "text", " " ],
[ "identifier", "$p" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "keyword.operator", ".." ],
[ "text", " " ],
[ "lparen", "(" ],
[ "identifier", "$num_primes" ],
[ "constant.numeric", "-1" ],
[ "rparen", ")" ],
[ "rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"{"
],
"types": [
"text",
"lparen"
"data": [
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"if",
" ",
"(",
"$number_to_check",
" ",
"%",
" ",
"$primes",
"[",
"$p",
"]",
" ",
"==",
" ",
"0",
")"
],
"types": [
"text",
"keyword",
"text",
"lparen",
"identifier",
"text",
"keyword.operator",
"text",
"identifier",
"lparen",
"identifier",
"rparen",
"text",
"keyword.operator",
"text",
"constant.numeric",
"rparen"
"data": [
[ "text", " " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "identifier", "$number_to_check" ],
[ "text", " " ],
[ "keyword.operator", "%" ],
[ "text", " " ],
[ "identifier", "$primes" ],
[ "lparen", "[" ],
[ "identifier", "$p" ],
[ "rparen", "]" ],
[ "text", " " ],
[ "keyword.operator", "==" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"{"
],
"types": [
"text",
"lparen"
"data": [
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"next",
" ",
"MAIN_LOOP",
";"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text"
"data": [
[ "text", " " ],
[ "keyword", "next" ],
[ "text", " " ],
[ "identifier", "MAIN_LOOP" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"rparen"
"data": [
[ "text", " " ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"rparen"
"data": [
[ "text", " " ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" ",
"# If we reached this point it means $number_to_check is not"
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "# If we reached this point it means $number_to_check is not" ]
]
},
{
"state": "start",
"values": [
" ",
"# divisable by any prime number that came before it."
],
"types": [
"text",
"comment"
"data": [
[ "text", " " ],
[ "comment", "# divisable by any prime number that came before it." ]
]
},
{
"state": "start",
"values": [
" ",
"$primes",
"[",
"$num_primes",
"]",
" ",
"=",
" ",
"$number_to_check",
";"
],
"types": [
"text",
"identifier",
"lparen",
"identifier",
"rparen",
"text",
"keyword.operator",
"text",
"identifier",
"text"
"data": [
[ "text", " " ],
[ "identifier", "$primes" ],
[ "lparen", "[" ],
[ "identifier", "$num_primes" ],
[ "rparen", "]" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "identifier", "$number_to_check" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"$num_primes",
"++",
";"
],
"types": [
"text",
"identifier",
"keyword.operator",
"text"
"data": [
[ "text", " " ],
[ "identifier", "$num_primes" ],
[ "keyword.operator", "++" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"rparen"
"data": [
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"for",
" ",
"my",
" ",
"$p",
" ",
"(",
"0",
" ",
"..",
" ",
"(",
"$num_primes",
"-1",
")",
")"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"identifier",
"text",
"lparen",
"constant.numeric",
"text",
"keyword.operator",
"text",
"lparen",
"identifier",
"constant.numeric",
"rparen",
"rparen"
"data": [
[ "keyword", "for" ],
[ "text", " " ],
[ "keyword", "my" ],
[ "text", " " ],
[ "identifier", "$p" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "constant.numeric", "0" ],
[ "text", " " ],
[ "keyword.operator", ".." ],
[ "text", " " ],
[ "lparen", "(" ],
[ "identifier", "$num_primes" ],
[ "constant.numeric", "-1" ],
[ "rparen", ")" ],
[ "rparen", ")" ]
]
},
{
"state": "start",
"values": [
"{"
],
"types": [
"lparen"
"data": [
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"print",
" ",
"$primes",
"[",
"$p",
"]",
",",
" ",
"\", \"",
";"
],
"types": [
"text",
"support.function",
"text",
"identifier",
"lparen",
"identifier",
"rparen",
"keyword.operator",
"text",
"string",
"text"
"data": [
[ "text", " " ],
[ "support.function", "print" ],
[ "text", " " ],
[ "identifier", "$primes" ],
[ "lparen", "[" ],
[ "identifier", "$p" ],
[ "rparen", "]" ],
[ "keyword.operator", "," ],
[ "text", " " ],
[ "string", "\", \"" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"rparen"
"data": [
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
"print",
" ",
"\"\\n\"",
";"
],
"types": [
"support.function",
"text",
"string",
"text"
"data": [
[ "support.function", "print" ],
[ "text", " " ],
[ "string", "\"\\n\"" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
}
]

File diff suppressed because it is too large Load diff

View file

@ -1,417 +1,238 @@
[
{
"state": "php-start",
"values": [
"<?php"
],
"types": [
"support.php_tag"
"data": [
[ "support.php_tag", "<?php" ]
]
},
{
"state": "php-start",
"values": [],
"types": []
"data": []
},
{
"state": "php-start",
"values": [
"function",
" ",
"nfact",
"(",
"$n",
")",
" ",
"{"
],
"types": [
"keyword",
"text",
"identifier",
"lparen",
"variable",
"rparen",
"text",
"lparen"
"data": [
[ "keyword", "function" ],
[ "text", " " ],
[ "identifier", "nfact" ],
[ "lparen", "(" ],
[ "variable", "$n" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "php-start",
"values": [
" ",
"if",
" ",
"(",
"$n",
" ",
"==",
" ",
"0",
")",
" ",
"{"
],
"types": [
"text",
"keyword",
"text",
"lparen",
"variable",
"text",
"keyword.operator",
"text",
"constant.numeric",
"rparen",
"text",
"lparen"
"data": [
[ "text", " " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "variable", "$n" ],
[ "text", " " ],
[ "keyword.operator", "==" ],
[ "text", " " ],
[ "constant.numeric", "0" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "php-start",
"values": [
" ",
"return",
" ",
"1",
";"
],
"types": [
"text",
"support.function",
"text",
"constant.numeric",
"text"
"data": [
[ "text", " " ],
[ "support.function", "return" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "text", ";" ]
]
},
{
"state": "php-start",
"values": [
" ",
"}"
],
"types": [
"text",
"rparen"
"data": [
[ "text", " " ],
[ "rparen", "}" ]
]
},
{
"state": "php-start",
"values": [
" ",
"else",
" ",
"{"
],
"types": [
"text",
"keyword",
"text",
"lparen"
"data": [
[ "text", " " ],
[ "keyword", "else" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "php-start",
"values": [
" ",
"return",
" ",
"$n",
" ",
"*",
" ",
"nfact",
"(",
"$n",
" ",
"-",
" ",
"1",
")",
";"
],
"types": [
"text",
"support.function",
"text",
"variable",
"text",
"keyword.operator",
"text",
"identifier",
"lparen",
"variable",
"text",
"keyword.operator",
"text",
"constant.numeric",
"rparen",
"text"
"data": [
[ "text", " " ],
[ "support.function", "return" ],
[ "text", " " ],
[ "variable", "$n" ],
[ "text", " " ],
[ "keyword.operator", "*" ],
[ "text", " " ],
[ "identifier", "nfact" ],
[ "lparen", "(" ],
[ "variable", "$n" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "php-start",
"values": [
" ",
"}"
],
"types": [
"text",
"rparen"
"data": [
[ "text", " " ],
[ "rparen", "}" ]
]
},
{
"state": "php-start",
"values": [
"}"
],
"types": [
"rparen"
"data": [
[ "rparen", "}" ]
]
},
{
"state": "php-start",
"values": [],
"types": []
"data": []
},
{
"state": "php-start",
"values": [
"echo",
" ",
"\"",
"\\n",
"\\n",
"P",
"l",
"e",
"a",
"s",
"e",
" ",
"e",
"n",
"t",
"e",
"r",
" ",
"a",
" ",
"w",
"h",
"o",
"l",
"e",
" ",
"n",
"u",
"m",
"b",
"e",
"r",
" ",
".",
".",
".",
" ",
"\"",
";"
],
"types": [
"support.function",
"text",
"string",
"constant.language.escape",
"constant.language.escape",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"text"
"data": [
[ "support.function", "echo" ],
[ "text", " " ],
[ "string", "\"" ],
[ "constant.language.escape", "\\n" ],
[ "constant.language.escape", "\\n" ],
[ "string", "P" ],
[ "string", "l" ],
[ "string", "e" ],
[ "string", "a" ],
[ "string", "s" ],
[ "string", "e" ],
[ "string", " " ],
[ "string", "e" ],
[ "string", "n" ],
[ "string", "t" ],
[ "string", "e" ],
[ "string", "r" ],
[ "string", " " ],
[ "string", "a" ],
[ "string", " " ],
[ "string", "w" ],
[ "string", "h" ],
[ "string", "o" ],
[ "string", "l" ],
[ "string", "e" ],
[ "string", " " ],
[ "string", "n" ],
[ "string", "u" ],
[ "string", "m" ],
[ "string", "b" ],
[ "string", "e" ],
[ "string", "r" ],
[ "string", " " ],
[ "string", "." ],
[ "string", "." ],
[ "string", "." ],
[ "string", " " ],
[ "string", "\"" ],
[ "text", ";" ]
]
},
{
"state": "php-start",
"values": [
"$num",
" ",
"=",
" ",
"trim",
"(",
"fgets",
"(",
"STDIN",
")",
")",
";"
],
"types": [
"variable",
"text",
"keyword.operator",
"text",
"support.function",
"lparen",
"support.function",
"lparen",
"constant.language",
"rparen",
"rparen",
"text"
"data": [
[ "variable", "$num" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "support.function", "trim" ],
[ "lparen", "(" ],
[ "support.function", "fgets" ],
[ "lparen", "(" ],
[ "constant.language", "STDIN" ],
[ "rparen", ")" ],
[ "rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "php-start",
"values": [],
"types": []
"data": []
},
{
"state": "php-start",
"values": [
"// ===== PROCESS - Determing the factorial of the input number ====="
],
"types": [
"comment"
"data": [
[ "comment", "// ===== PROCESS - Determing the factorial of the input number =====" ]
]
},
{
"state": "php-start",
"values": [
"$output",
" ",
"=",
" ",
"\"",
"\\n",
"\\n",
"F",
"a",
"c",
"t",
"o",
"r",
"i",
"a",
"l",
" ",
"\"",
" . ",
"$num",
" . ",
"\"",
" ",
"=",
" ",
"\"",
" . ",
"nfact",
"(",
"$num",
")",
" . ",
"\"",
"\\n",
"\\n",
"\"",
";"
],
"types": [
"variable",
"text",
"keyword.operator",
"text",
"string",
"constant.language.escape",
"constant.language.escape",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"text",
"variable",
"text",
"string",
"string",
"string",
"string",
"string",
"text",
"identifier",
"lparen",
"variable",
"rparen",
"text",
"string",
"constant.language.escape",
"constant.language.escape",
"string",
"text"
"data": [
[ "variable", "$output" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"" ],
[ "constant.language.escape", "\\n" ],
[ "constant.language.escape", "\\n" ],
[ "string", "F" ],
[ "string", "a" ],
[ "string", "c" ],
[ "string", "t" ],
[ "string", "o" ],
[ "string", "r" ],
[ "string", "i" ],
[ "string", "a" ],
[ "string", "l" ],
[ "string", " " ],
[ "string", "\"" ],
[ "text", " . " ],
[ "variable", "$num" ],
[ "text", " . " ],
[ "string", "\"" ],
[ "string", " " ],
[ "string", "=" ],
[ "string", " " ],
[ "string", "\"" ],
[ "text", " . " ],
[ "identifier", "nfact" ],
[ "lparen", "(" ],
[ "variable", "$num" ],
[ "rparen", ")" ],
[ "text", " . " ],
[ "string", "\"" ],
[ "constant.language.escape", "\\n" ],
[ "constant.language.escape", "\\n" ],
[ "string", "\"" ],
[ "text", ";" ]
]
},
{
"state": "php-start",
"values": [
"echo",
" ",
"$output",
";"
],
"types": [
"support.function",
"text",
"variable",
"text"
"data": [
[ "support.function", "echo" ],
[ "text", " " ],
[ "variable", "$output" ],
[ "text", ";" ]
]
},
{
"state": "php-start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"?>"
],
"types": [
"support.php_tag"
"data": [
[ "support.php_tag", "?>" ]
]
}
]

View file

@ -1,433 +1,255 @@
[
{
"state": "start",
"values": [
"# This is a simple comment"
],
"types": [
"comment"
"data": [
[ "comment", "# This is a simple comment" ]
]
},
{
"state": "start",
"values": [
"function",
" ",
"Hello",
"(",
"$name",
")",
" ",
"{"
],
"types": [
"keyword",
"text",
"identifier",
"lparen",
"variable.instance",
"rparen",
"text",
"lparen"
"data": [
[ "keyword", "function" ],
[ "text", " " ],
[ "identifier", "Hello" ],
[ "lparen", "(" ],
[ "variable.instance", "$name" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"Write-host",
" ",
"\"Hello $name\""
],
"types": [
"text",
"identifier",
"text",
"string"
"data": [
[ "text", " " ],
[ "identifier", "Write-host" ],
[ "text", " " ],
[ "string", "\"Hello $name\"" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"rparen"
"data": [
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"function",
" ",
"add",
"(",
"$left",
", ",
"$right",
"=",
"4",
")",
" ",
"{"
],
"types": [
"keyword",
"text",
"identifier",
"lparen",
"variable.instance",
"text",
"variable.instance",
"keyword.operator",
"constant.numeric",
"rparen",
"text",
"lparen"
"data": [
[ "keyword", "function" ],
[ "text", " " ],
[ "identifier", "add" ],
[ "lparen", "(" ],
[ "variable.instance", "$left" ],
[ "text", ", " ],
[ "variable.instance", "$right" ],
[ "keyword.operator", "=" ],
[ "constant.numeric", "4" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"if",
" ",
"(",
"$right",
" ",
"-ne",
" ",
"4",
")",
" ",
"{"
],
"types": [
"text",
"keyword",
"text",
"lparen",
"variable.instance",
"text",
"keyword.operator",
"text",
"constant.numeric",
"rparen",
"text",
"lparen"
"data": [
[ "text", " " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "variable.instance", "$right" ],
[ "text", " " ],
[ "keyword.operator", "-ne" ],
[ "text", " " ],
[ "constant.numeric", "4" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"return",
" ",
"$left"
],
"types": [
"text",
"keyword",
"text",
"variable.instance"
"data": [
[ "text", " " ],
[ "keyword", "return" ],
[ "text", " " ],
[ "variable.instance", "$left" ]
]
},
{
"state": "start",
"values": [
" ",
"}",
" ",
"elseif",
" ",
"(",
"$left",
" ",
"-eq",
" ",
"$null",
" ",
"-and",
" ",
"$right",
" ",
"-eq",
" ",
"2",
")",
" ",
"{"
],
"types": [
"text",
"rparen",
"text",
"keyword",
"text",
"lparen",
"variable.instance",
"text",
"keyword.operator",
"text",
"constant.language",
"text",
"keyword.operator",
"text",
"variable.instance",
"text",
"keyword.operator",
"text",
"constant.numeric",
"rparen",
"text",
"lparen"
"data": [
[ "text", " " ],
[ "rparen", "}" ],
[ "text", " " ],
[ "keyword", "elseif" ],
[ "text", " " ],
[ "lparen", "(" ],
[ "variable.instance", "$left" ],
[ "text", " " ],
[ "keyword.operator", "-eq" ],
[ "text", " " ],
[ "constant.language", "$null" ],
[ "text", " " ],
[ "keyword.operator", "-and" ],
[ "text", " " ],
[ "variable.instance", "$right" ],
[ "text", " " ],
[ "keyword.operator", "-eq" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "rparen", ")" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"return",
" ",
"3"
],
"types": [
"text",
"keyword",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "keyword", "return" ],
[ "text", " " ],
[ "constant.numeric", "3" ]
]
},
{
"state": "start",
"values": [
" ",
"}",
" ",
"else",
" ",
"{"
],
"types": [
"text",
"rparen",
"text",
"keyword",
"text",
"lparen"
"data": [
[ "text", " " ],
[ "rparen", "}" ],
[ "text", " " ],
[ "keyword", "else" ],
[ "text", " " ],
[ "lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"return",
" ",
"2"
],
"types": [
"text",
"keyword",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "keyword", "return" ],
[ "text", " " ],
[ "constant.numeric", "2" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"rparen"
"data": [
[ "text", " " ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"rparen"
"data": [
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"$number",
" ",
"=",
" ",
"1",
" ",
"+",
" ",
"2",
";"
],
"types": [
"variable.instance",
"text",
"keyword.operator",
"text",
"constant.numeric",
"text",
"keyword.operator",
"text",
"constant.numeric",
"text"
"data": [
[ "variable.instance", "$number" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "1" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"$number",
" ",
"+",
"=",
" ",
"3"
],
"types": [
"variable.instance",
"text",
"keyword.operator",
"keyword.operator",
"text",
"constant.numeric"
"data": [
[ "variable.instance", "$number" ],
[ "text", " " ],
[ "keyword.operator", "+" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "constant.numeric", "3" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"Write-Host",
" ",
"Hello",
" ",
"-",
"name",
" ",
"\"World\""
],
"types": [
"support.function",
"text",
"identifier",
"text",
"keyword.operator",
"identifier",
"text",
"string"
"data": [
[ "support.function", "Write-Host" ],
[ "text", " " ],
[ "identifier", "Hello" ],
[ "text", " " ],
[ "keyword.operator", "-" ],
[ "identifier", "name" ],
[ "text", " " ],
[ "string", "\"World\"" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"$an_array",
" ",
"=",
" @",
"(",
"1",
", ",
"2",
", ",
"3",
")"
],
"types": [
"variable.instance",
"text",
"keyword.operator",
"text",
"lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"rparen"
"data": [
[ "variable.instance", "$an_array" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " @" ],
[ "lparen", "(" ],
[ "constant.numeric", "1" ],
[ "text", ", " ],
[ "constant.numeric", "2" ],
[ "text", ", " ],
[ "constant.numeric", "3" ],
[ "rparen", ")" ]
]
},
{
"state": "start",
"values": [
"$a_hash",
" ",
"=",
" @",
"{",
"\"something\"",
" ",
"=",
" ",
"\"something else\"",
"}"
],
"types": [
"variable.instance",
"text",
"keyword.operator",
"text",
"lparen",
"string",
"text",
"keyword.operator",
"text",
"string",
"rparen"
"data": [
[ "variable.instance", "$a_hash" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " @" ],
[ "lparen", "{" ],
[ "string", "\"something\"" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"something else\"" ],
[ "rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"&",
" ",
"notepad",
" .\\",
"readme",
".",
"md"
],
"types": [
"keyword.operator",
"text",
"identifier",
"text",
"identifier",
"text",
"identifier"
"data": [
[ "keyword.operator", "&" ],
[ "text", " " ],
[ "identifier", "notepad" ],
[ "text", " .\\" ],
[ "identifier", "readme" ],
[ "text", "." ],
[ "identifier", "md" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
}
]

View file

@ -1,351 +1,205 @@
[
{
"state": "start",
"values": [
"#!/usr/local/bin/python"
],
"types": [
"comment"
"data": [
[ "comment", "#!/usr/local/bin/python" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"import",
" ",
"string",
", ",
"sys"
],
"types": [
"keyword",
"text",
"identifier",
"text",
"identifier"
"data": [
[ "keyword", "import" ],
[ "text", " " ],
[ "identifier", "string" ],
[ "text", ", " ],
[ "identifier", "sys" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"# If no arguments were given, print a helpful message"
],
"types": [
"comment"
"data": [
[ "comment", "# If no arguments were given, print a helpful message" ]
]
},
{
"state": "start",
"values": [
"if",
" ",
"len",
"(",
"sys",
".",
"argv",
")",
"==",
"1",
":"
],
"types": [
"keyword",
"text",
"support.function",
"paren.lparen",
"identifier",
"text",
"identifier",
"paren.rparen",
"keyword.operator",
"constant.numeric",
"text"
"data": [
[ "keyword", "if" ],
[ "text", " " ],
[ "support.function", "len" ],
[ "paren.lparen", "(" ],
[ "identifier", "sys" ],
[ "text", "." ],
[ "identifier", "argv" ],
[ "paren.rparen", ")" ],
[ "keyword.operator", "==" ],
[ "constant.numeric", "1" ],
[ "text", ":" ]
]
},
{
"state": "qstring",
"values": [
" ",
"print",
" ",
"'''Usage:"
],
"types": [
"text",
"keyword",
"text",
"string"
"data": [
[ "text", " " ],
[ "keyword", "print" ],
[ "text", " " ],
[ "string", "'''Usage:" ]
]
},
{
"state": "start",
"values": [
"celsius temp1 temp2 ...'''"
],
"types": [
"string"
"data": [
[ "string", "celsius temp1 temp2 ...'''" ]
]
},
{
"state": "start",
"values": [
" ",
"sys",
".",
"exit",
"(",
"0",
")"
],
"types": [
"text",
"identifier",
"text",
"identifier",
"paren.lparen",
"constant.numeric",
"paren.rparen"
"data": [
[ "text", " " ],
[ "identifier", "sys" ],
[ "text", "." ],
[ "identifier", "exit" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "0" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"# Loop over the arguments"
],
"types": [
"comment"
"data": [
[ "comment", "# Loop over the arguments" ]
]
},
{
"state": "start",
"values": [
"for",
" ",
"i",
" ",
"in",
" ",
"sys",
".",
"argv",
"[",
"1",
":",
"]",
":"
],
"types": [
"keyword",
"text",
"identifier",
"text",
"keyword",
"text",
"identifier",
"text",
"identifier",
"paren.lparen",
"constant.numeric",
"text",
"paren.rparen",
"text"
"data": [
[ "keyword", "for" ],
[ "text", " " ],
[ "identifier", "i" ],
[ "text", " " ],
[ "keyword", "in" ],
[ "text", " " ],
[ "identifier", "sys" ],
[ "text", "." ],
[ "identifier", "argv" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "1" ],
[ "text", ":" ],
[ "paren.rparen", "]" ],
[ "text", ":" ]
]
},
{
"state": "start",
"values": [
" ",
"try",
":"
],
"types": [
"text",
"keyword",
"text"
"data": [
[ "text", " " ],
[ "keyword", "try" ],
[ "text", ":" ]
]
},
{
"state": "start",
"values": [
" ",
"fahrenheit",
"=",
"float",
"(",
"string",
".",
"atoi",
"(",
"i",
")",
")"
],
"types": [
"text",
"identifier",
"keyword.operator",
"support.function",
"paren.lparen",
"identifier",
"text",
"identifier",
"paren.lparen",
"identifier",
"paren.rparen",
"paren.rparen"
"data": [
[ "text", " " ],
[ "identifier", "fahrenheit" ],
[ "keyword.operator", "=" ],
[ "support.function", "float" ],
[ "paren.lparen", "(" ],
[ "identifier", "string" ],
[ "text", "." ],
[ "identifier", "atoi" ],
[ "paren.lparen", "(" ],
[ "identifier", "i" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"except",
" ",
"string",
".",
"atoi_error",
":"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"identifier",
"text"
"data": [
[ "text", " " ],
[ "keyword", "except" ],
[ "text", " " ],
[ "identifier", "string" ],
[ "text", "." ],
[ "identifier", "atoi_error" ],
[ "text", ":" ]
]
},
{
"state": "start",
"values": [
" ",
"print",
" ",
"repr",
"(",
"i",
")",
", ",
"\"not a numeric value\""
],
"types": [
"text",
"keyword",
"text",
"support.function",
"paren.lparen",
"identifier",
"paren.rparen",
"text",
"string"
"data": [
[ "text", " " ],
[ "keyword", "print" ],
[ "text", " " ],
[ "support.function", "repr" ],
[ "paren.lparen", "(" ],
[ "identifier", "i" ],
[ "paren.rparen", ")" ],
[ "text", ", " ],
[ "string", "\"not a numeric value\"" ]
]
},
{
"state": "start",
"values": [
" ",
"else",
":"
],
"types": [
"text",
"keyword",
"text"
"data": [
[ "text", " " ],
[ "keyword", "else" ],
[ "text", ":" ]
]
},
{
"state": "start",
"values": [
" ",
"celsius",
"=",
"(",
"fahrenheit",
"-",
"32",
")",
"*",
"5.0",
"/",
"9.0"
],
"types": [
"text",
"identifier",
"keyword.operator",
"paren.lparen",
"identifier",
"keyword.operator",
"constant.numeric",
"paren.rparen",
"keyword.operator",
"constant.numeric",
"keyword.operator",
"constant.numeric"
"data": [
[ "text", " " ],
[ "identifier", "celsius" ],
[ "keyword.operator", "=" ],
[ "paren.lparen", "(" ],
[ "identifier", "fahrenheit" ],
[ "keyword.operator", "-" ],
[ "constant.numeric", "32" ],
[ "paren.rparen", ")" ],
[ "keyword.operator", "*" ],
[ "constant.numeric", "5.0" ],
[ "keyword.operator", "/" ],
[ "constant.numeric", "9.0" ]
]
},
{
"state": "start",
"values": [
" ",
"print",
" ",
"'%i\\260F = %i\\260C'",
" ",
"%",
" ",
"(",
"int",
"(",
"fahrenheit",
")",
", ",
"int",
"(",
"celsius",
"+",
".5",
")",
")"
],
"types": [
"text",
"keyword",
"text",
"string",
"text",
"keyword.operator",
"text",
"paren.lparen",
"support.function",
"paren.lparen",
"identifier",
"paren.rparen",
"text",
"support.function",
"paren.lparen",
"identifier",
"keyword.operator",
"constant.numeric",
"paren.rparen",
"paren.rparen"
"data": [
[ "text", " " ],
[ "keyword", "print" ],
[ "text", " " ],
[ "string", "'%i\\260F = %i\\260C'" ],
[ "text", " " ],
[ "keyword.operator", "%" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "support.function", "int" ],
[ "paren.lparen", "(" ],
[ "identifier", "fahrenheit" ],
[ "paren.rparen", ")" ],
[ "text", ", " ],
[ "support.function", "int" ],
[ "paren.lparen", "(" ],
[ "identifier", "celsius" ],
[ "keyword.operator", "+" ],
[ "constant.numeric", ".5" ],
[ "paren.rparen", ")" ],
[ "paren.rparen", ")" ]
]
}
]

View file

@ -1,170 +1,104 @@
[
{
"state": "start",
"values": [
"#!/usr/bin/ruby"
],
"types": [
"comment"
"data": [
[ "comment", "#!/usr/bin/ruby" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"# Program to find the factorial of a number"
],
"types": [
"comment"
"data": [
[ "comment", "# Program to find the factorial of a number" ]
]
},
{
"state": "start",
"values": [
"def",
" ",
"fact",
"(",
"n",
")"
],
"types": [
"keyword",
"text",
"identifier",
"paren.lparen",
"identifier",
"paren.rparen"
"data": [
[ "keyword", "def" ],
[ "text", " " ],
[ "identifier", "fact" ],
[ "paren.lparen", "(" ],
[ "identifier", "n" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"if",
" ",
"n",
" ",
"==",
" ",
"0"
],
"types": [
"text",
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "keyword", "if" ],
[ "text", " " ],
[ "identifier", "n" ],
[ "text", " " ],
[ "keyword.operator", "==" ],
[ "text", " " ],
[ "constant.numeric", "0" ]
]
},
{
"state": "start",
"values": [
" ",
"1"
],
"types": [
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "constant.numeric", "1" ]
]
},
{
"state": "start",
"values": [
" ",
"else"
],
"types": [
"text",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "else" ]
]
},
{
"state": "start",
"values": [
" ",
"n",
" ",
"*",
" ",
"fact",
"(",
"n",
"-1",
")"
],
"types": [
"text",
"identifier",
"text",
"keyword.operator",
"text",
"identifier",
"paren.lparen",
"identifier",
"constant.numeric",
"paren.rparen"
"data": [
[ "text", " " ],
[ "identifier", "n" ],
[ "text", " " ],
[ "keyword.operator", "*" ],
[ "text", " " ],
[ "identifier", "fact" ],
[ "paren.lparen", "(" ],
[ "identifier", "n" ],
[ "constant.numeric", "-1" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"end"
],
"types": [
"text",
"keyword"
"data": [
[ "text", " " ],
[ "keyword", "end" ]
]
},
{
"state": "start",
"values": [
"end"
],
"types": [
"keyword"
"data": [
[ "keyword", "end" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"puts",
" ",
"fact",
"(",
"ARGV",
"[",
"0",
"]",
".",
"to_i",
")"
],
"types": [
"support.function",
"text",
"identifier",
"paren.lparen",
"variable.class",
"paren.lparen",
"constant.numeric",
"paren.rparen",
"text",
"identifier",
"paren.rparen"
"data": [
[ "support.function", "puts" ],
[ "text", " " ],
[ "identifier", "fact" ],
[ "paren.lparen", "(" ],
[ "variable.class", "ARGV" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "0" ],
[ "paren.rparen", "]" ],
[ "text", "." ],
[ "identifier", "to_i" ],
[ "paren.rparen", ")" ]
]
}
]

View file

@ -1,469 +1,267 @@
[
{
"state": "start",
"values": [
"// ace can highlight scad!"
],
"types": [
"comment"
"data": [
[ "comment", "// ace can highlight scad!" ]
]
},
{
"state": "start",
"values": [
"module",
" ",
"Element",
"(",
"xpos",
", ",
"ypos",
", ",
"zpos",
")",
"{"
],
"types": [
"keyword",
"text",
"identifier",
"paren.lparen",
"identifier",
"text",
"identifier",
"text",
"identifier",
"paren.rparen",
"paren.lparen"
"data": [
[ "keyword", "module" ],
[ "text", " " ],
[ "identifier", "Element" ],
[ "paren.lparen", "(" ],
[ "identifier", "xpos" ],
[ "text", ", " ],
[ "identifier", "ypos" ],
[ "text", ", " ],
[ "identifier", "zpos" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
"\t",
"translate",
"(",
"[",
"xpos",
",",
"ypos",
",",
"zpos",
"]",
")",
"{"
],
"types": [
"text",
"identifier",
"paren.lparen",
"paren.lparen",
"identifier",
"text",
"identifier",
"text",
"identifier",
"paren.rparen",
"paren.rparen",
"paren.lparen"
"data": [
[ "text", "\t" ],
[ "identifier", "translate" ],
[ "paren.lparen", "(" ],
[ "paren.lparen", "[" ],
[ "identifier", "xpos" ],
[ "text", "," ],
[ "identifier", "ypos" ],
[ "text", "," ],
[ "identifier", "zpos" ],
[ "paren.rparen", "]" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
"\t\t",
"union",
"(",
")",
"{"
],
"types": [
"text",
"identifier",
"paren.lparen",
"paren.rparen",
"paren.lparen"
"data": [
[ "text", "\t\t" ],
[ "identifier", "union" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
"\t\t\t",
"cube",
"(",
"[",
"10",
",",
"10",
",",
"4",
"]",
",",
"true",
")",
";"
],
"types": [
"text",
"identifier",
"paren.lparen",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"text",
"identifier",
"paren.rparen",
"text"
"data": [
[ "text", "\t\t\t" ],
[ "identifier", "cube" ],
[ "paren.lparen", "(" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "10" ],
[ "text", "," ],
[ "constant.numeric", "10" ],
[ "text", "," ],
[ "constant.numeric", "4" ],
[ "paren.rparen", "]" ],
[ "text", "," ],
[ "identifier", "true" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"\t\t\t",
"cylinder",
"(",
"10",
",",
"15",
",",
"5",
")",
";"
],
"types": [
"text",
"identifier",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", "\t\t\t" ],
[ "identifier", "cylinder" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "10" ],
[ "text", "," ],
[ "constant.numeric", "15" ],
[ "text", "," ],
[ "constant.numeric", "5" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"\t\t\t",
"translate",
"(",
"[",
"0",
",",
"0",
",",
"10",
"]",
")",
"sphere",
"(",
"5",
")",
";"
],
"types": [
"text",
"identifier",
"paren.lparen",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"paren.rparen",
"identifier",
"paren.lparen",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", "\t\t\t" ],
[ "identifier", "translate" ],
[ "paren.lparen", "(" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "0" ],
[ "text", "," ],
[ "constant.numeric", "0" ],
[ "text", "," ],
[ "constant.numeric", "10" ],
[ "paren.rparen", "]" ],
[ "paren.rparen", ")" ],
[ "identifier", "sphere" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "5" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"\t\t",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", "\t\t" ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
"\t",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", "\t" ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"union",
"(",
")",
"{"
],
"types": [
"identifier",
"paren.lparen",
"paren.rparen",
"paren.lparen"
"data": [
[ "identifier", "union" ],
[ "paren.lparen", "(" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
"\t",
"for",
"(",
"i",
"=",
"[",
"0",
":",
"30",
"]",
")",
"{"
],
"types": [
"text",
"keyword",
"paren.lparen",
"identifier",
"keyword.operator",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"paren.rparen",
"paren.lparen"
"data": [
[ "text", "\t" ],
[ "keyword", "for" ],
[ "paren.lparen", "(" ],
[ "identifier", "i" ],
[ "keyword.operator", "=" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "0" ],
[ "text", ":" ],
[ "constant.numeric", "30" ],
[ "paren.rparen", "]" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
"\t\t# ",
"Element",
"(",
"0",
",",
"0",
",",
"0",
")",
";"
],
"types": [
"text",
"identifier",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", "\t\t# " ],
[ "identifier", "Element" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "0" ],
[ "text", "," ],
[ "constant.numeric", "0" ],
[ "text", "," ],
[ "constant.numeric", "0" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"\t\t",
"Element",
"(",
"15",
"*",
"i",
",",
"0",
",",
"0",
")",
";"
],
"types": [
"text",
"identifier",
"paren.lparen",
"constant.numeric",
"keyword.operator",
"identifier",
"text",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", "\t\t" ],
[ "identifier", "Element" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "15" ],
[ "keyword.operator", "*" ],
[ "identifier", "i" ],
[ "text", "," ],
[ "constant.numeric", "0" ],
[ "text", "," ],
[ "constant.numeric", "0" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"\t",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", "\t" ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"for",
" ",
"(",
"i",
" ",
"=",
" ",
"[",
"3",
", ",
"5",
", ",
"7",
", ",
"11",
"]",
")",
"{"
],
"types": [
"keyword",
"text",
"paren.lparen",
"identifier",
"text",
"keyword.operator",
"text",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"paren.rparen",
"paren.lparen"
"data": [
[ "keyword", "for" ],
[ "text", " " ],
[ "paren.lparen", "(" ],
[ "identifier", "i" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "3" ],
[ "text", ", " ],
[ "constant.numeric", "5" ],
[ "text", ", " ],
[ "constant.numeric", "7" ],
[ "text", ", " ],
[ "constant.numeric", "11" ],
[ "paren.rparen", "]" ],
[ "paren.rparen", ")" ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
"\t",
"rotate",
"(",
"[",
"i",
"*",
"10",
",",
"0",
",",
"0",
"]",
")",
"scale",
"(",
"[",
"1",
",",
"1",
",",
"i",
"]",
")",
"cube",
"(",
"10",
")",
";"
],
"types": [
"text",
"identifier",
"paren.lparen",
"paren.lparen",
"identifier",
"keyword.operator",
"constant.numeric",
"text",
"constant.numeric",
"text",
"constant.numeric",
"paren.rparen",
"paren.rparen",
"identifier",
"paren.lparen",
"paren.lparen",
"constant.numeric",
"text",
"constant.numeric",
"text",
"identifier",
"paren.rparen",
"paren.rparen",
"identifier",
"paren.lparen",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", "\t" ],
[ "identifier", "rotate" ],
[ "paren.lparen", "(" ],
[ "paren.lparen", "[" ],
[ "identifier", "i" ],
[ "keyword.operator", "*" ],
[ "constant.numeric", "10" ],
[ "text", "," ],
[ "constant.numeric", "0" ],
[ "text", "," ],
[ "constant.numeric", "0" ],
[ "paren.rparen", "]" ],
[ "paren.rparen", ")" ],
[ "identifier", "scale" ],
[ "paren.lparen", "(" ],
[ "paren.lparen", "[" ],
[ "constant.numeric", "1" ],
[ "text", "," ],
[ "constant.numeric", "1" ],
[ "text", "," ],
[ "identifier", "i" ],
[ "paren.rparen", "]" ],
[ "paren.rparen", ")" ],
[ "identifier", "cube" ],
[ "paren.lparen", "(" ],
[ "constant.numeric", "10" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
}
]

File diff suppressed because it is too large Load diff

View file

@ -1,300 +1,181 @@
[
{
"state": "start",
"values": [
"/*",
" style.scss */"
],
"types": [
"comment",
"comment"
"data": [
[ "comment", "/*" ],
[ "comment", " style.scss */" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"#navbar",
" ",
"{"
],
"types": [
"variable.language",
"text",
"paren.lparen"
"data": [
[ "variable.language", "#navbar" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"$navbar-width",
": ",
"800px",
";"
],
"types": [
"text",
"variable",
"text",
"constant.numeric",
"text"
"data": [
[ "text", " " ],
[ "variable", "$navbar-width" ],
[ "text", ": " ],
[ "constant.numeric", "800px" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"$items",
": ",
"5",
";"
],
"types": [
"text",
"variable",
"text",
"constant.numeric",
"text"
"data": [
[ "text", " " ],
[ "variable", "$items" ],
[ "text", ": " ],
[ "constant.numeric", "5" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"$navbar-color",
": ",
"#ce4dd6",
";"
],
"types": [
"text",
"variable",
"text",
"constant.numeric",
"text"
"data": [
[ "text", " " ],
[ "variable", "$navbar-color" ],
[ "text", ": " ],
[ "constant.numeric", "#ce4dd6" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" ",
"width",
": ",
"$navbar-width",
";"
],
"types": [
"text",
"support.type",
"text",
"variable",
"text"
"data": [
[ "text", " " ],
[ "support.type", "width" ],
[ "text", ": " ],
[ "variable", "$navbar-width" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"border-bottom",
": ",
"2px",
" ",
"solid",
" ",
"$navbar-color",
";"
],
"types": [
"text",
"support.type",
"text",
"constant.numeric",
"text",
"constant.language",
"text",
"variable",
"text"
"data": [
[ "text", " " ],
[ "support.type", "border-bottom" ],
[ "text", ": " ],
[ "constant.numeric", "2px" ],
[ "text", " " ],
[ "constant.language", "solid" ],
[ "text", " " ],
[ "variable", "$navbar-color" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" ",
"li",
" ",
"{"
],
"types": [
"text",
"variable.language",
"text",
"paren.lparen"
"data": [
[ "text", " " ],
[ "variable.language", "li" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"float",
": ",
"left",
";"
],
"types": [
"text",
"support.type",
"text",
"support.type",
"text"
"data": [
[ "text", " " ],
[ "support.type", "float" ],
[ "text", ": " ],
[ "support.type", "left" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"width",
": ",
"$navbar-width",
"/",
"$items",
" ",
"-",
" ",
"10px",
";"
],
"types": [
"text",
"support.type",
"text",
"variable",
"text",
"variable",
"text",
"constant",
"text",
"constant.numeric",
"text"
"data": [
[ "text", " " ],
[ "support.type", "width" ],
[ "text", ": " ],
[ "variable", "$navbar-width" ],
[ "text", "/" ],
[ "variable", "$items" ],
[ "text", " " ],
[ "constant", "-" ],
[ "text", " " ],
[ "constant.numeric", "10px" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" ",
"background-color",
": ",
"lighten",
"(",
"$navbar-color",
", ",
"20%",
")",
";"
],
"types": [
"text",
"support.type",
"text",
"support.function",
"paren.lparen",
"variable",
"text",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", " " ],
[ "support.type", "background-color" ],
[ "text", ": " ],
[ "support.function", "lighten" ],
[ "paren.lparen", "(" ],
[ "variable", "$navbar-color" ],
[ "text", ", " ],
[ "constant.numeric", "20%" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" &",
":hover",
" ",
"{"
],
"types": [
"text",
"variable.language",
"text",
"paren.lparen"
"data": [
[ "text", " &" ],
[ "variable.language", ":hover" ],
[ "text", " " ],
[ "paren.lparen", "{" ]
]
},
{
"state": "start",
"values": [
" ",
"background-color",
": ",
"lighten",
"(",
"$navbar-color",
", ",
"10%",
")",
";"
],
"types": [
"text",
"support.type",
"text",
"support.function",
"paren.lparen",
"variable",
"text",
"constant.numeric",
"paren.rparen",
"text"
"data": [
[ "text", " " ],
[ "support.type", "background-color" ],
[ "text", ": " ],
[ "support.function", "lighten" ],
[ "paren.lparen", "(" ],
[ "variable", "$navbar-color" ],
[ "text", ", " ],
[ "constant.numeric", "10%" ],
[ "paren.rparen", ")" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
" ",
"}"
],
"types": [
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "paren.rparen", "}" ]
]
},
{
"state": "start",
"values": [
"}"
],
"types": [
"paren.rparen"
"data": [
[ "paren.rparen", "}" ]
]
}
]

File diff suppressed because it is too large Load diff

View file

@ -1,126 +1,73 @@
[
{
"state": "start",
"values": [
"SELECT",
" ",
"city",
", ",
"COUNT",
"(",
"id",
")",
" ",
"AS",
" ",
"users_count"
],
"types": [
"keyword",
"text",
"identifier",
"text",
"support.function",
"paren.lparen",
"identifier",
"paren.rparen",
"text",
"keyword",
"text",
"identifier"
"data": [
[ "keyword", "SELECT" ],
[ "text", " " ],
[ "identifier", "city" ],
[ "text", ", " ],
[ "support.function", "COUNT" ],
[ "paren.lparen", "(" ],
[ "identifier", "id" ],
[ "paren.rparen", ")" ],
[ "text", " " ],
[ "keyword", "AS" ],
[ "text", " " ],
[ "identifier", "users_count" ]
]
},
{
"state": "start",
"values": [
"FROM",
" ",
"users"
],
"types": [
"keyword",
"text",
"identifier"
"data": [
[ "keyword", "FROM" ],
[ "text", " " ],
[ "identifier", "users" ]
]
},
{
"state": "start",
"values": [
"WHERE",
" ",
"group_name",
" ",
"=",
" ",
"'salesman'"
],
"types": [
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"string"
"data": [
[ "keyword", "WHERE" ],
[ "text", " " ],
[ "identifier", "group_name" ],
[ "text", " " ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "'salesman'" ]
]
},
{
"state": "start",
"values": [
"AND",
" ",
"created",
" ",
">",
" ",
"'2011-05-21'"
],
"types": [
"keyword",
"text",
"identifier",
"text",
"keyword.operator",
"text",
"string"
"data": [
[ "keyword", "AND" ],
[ "text", " " ],
[ "identifier", "created" ],
[ "text", " " ],
[ "keyword.operator", ">" ],
[ "text", " " ],
[ "string", "'2011-05-21'" ]
]
},
{
"state": "start",
"values": [
"GROUP",
" ",
"BY",
" ",
"1"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"constant.numeric"
"data": [
[ "keyword", "GROUP" ],
[ "text", " " ],
[ "keyword", "BY" ],
[ "text", " " ],
[ "constant.numeric", "1" ]
]
},
{
"state": "start",
"values": [
"ORDER",
" ",
"BY",
" ",
"2",
" ",
"DESC"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"constant.numeric",
"text",
"keyword"
"data": [
[ "keyword", "ORDER" ],
[ "text", " " ],
[ "keyword", "BY" ],
[ "text", " " ],
[ "constant.numeric", "2" ],
[ "text", " " ],
[ "keyword", "DESC" ]
]
}
]

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,81 +1,58 @@
[
{
"state": "start",
"values": [
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
],
"types": [
"text"
"data": [
[ "text", "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet." ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat."
],
"types": [
"text"
"data": [
[ "text", "Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat." ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi."
],
"types": [
"text"
"data": [
[ "text", "Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi." ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat."
],
"types": [
"text"
"data": [
[ "text", "Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat." ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis."
],
"types": [
"text"
"data": [
[ "text", "Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis." ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, At accusam aliquyam diam diam dolore dolores duo eirmod eos erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur"
],
"types": [
"text"
"data": [
[ "text", "At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, At accusam aliquyam diam diam dolore dolores duo eirmod eos erat, et nonumy sed tempor et et invidunt justo labore Stet clita ea et gubergren, kasd magna no rebum. sanctus sea sed takimata ut vero voluptua. est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur" ]
]
}
]

View file

@ -1,301 +1,195 @@
[
{
"state": "start",
"values": [
"h1",
". ",
"Textile document"
],
"types": [
"markup.heading.1",
"keyword",
"text"
"data": [
[ "markup.heading.1", "h1" ],
[ "keyword", ". " ],
[ "text", "Textile document" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"h2",
". ",
"Heading Two"
],
"types": [
"markup.heading.2",
"keyword",
"text"
"data": [
[ "markup.heading.2", "h2" ],
[ "keyword", ". " ],
[ "text", "Heading Two" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"h3",
". ",
"A two-line"
],
"types": [
"markup.heading.3",
"keyword",
"text"
"data": [
[ "markup.heading.3", "h3" ],
[ "keyword", ". " ],
[ "text", "A two-line" ]
]
},
{
"state": "start",
"values": [
" header"
],
"types": [
"text"
"data": [
[ "text", " header" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"h2",
". ",
"Another two-line"
],
"types": [
"markup.heading.2",
"keyword",
"text"
"data": [
[ "markup.heading.2", "h2" ],
[ "keyword", ". " ],
[ "text", "Another two-line" ]
]
},
{
"state": "start",
"values": [
"header"
],
"types": [
"text"
"data": [
[ "text", "header" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"Paragraph:"
],
"types": [
"text"
"data": [
[ "text", "Paragraph:" ]
]
},
{
"state": "start",
"values": [
"one, two,"
],
"types": [
"text"
"data": [
[ "text", "one, two," ]
]
},
{
"state": "start",
"values": [
"thee lines!"
],
"types": [
"text"
"data": [
[ "text", "thee lines!" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"p",
"(",
"classone",
" ",
"two",
" ",
"three",
")",
". ",
"This is a paragraph with classes"
],
"types": [
"markup.heading",
"keyword",
"string",
"text",
"string",
"text",
"string",
"keyword",
"keyword",
"text"
"data": [
[ "markup.heading", "p" ],
[ "keyword", "(" ],
[ "string", "classone" ],
[ "text", " " ],
[ "string", "two" ],
[ "text", " " ],
[ "string", "three" ],
[ "keyword", ")" ],
[ "keyword", ". " ],
[ "text", "This is a paragraph with classes" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"p",
"(",
"#",
"id",
")",
". ",
"(one with an id)"
],
"types": [
"markup.heading",
"keyword",
"keyword",
"string",
"keyword",
"keyword",
"text"
"data": [
[ "markup.heading", "p" ],
[ "keyword", "(" ],
[ "keyword", "#" ],
[ "string", "id" ],
[ "keyword", ")" ],
[ "keyword", ". " ],
[ "text", "(one with an id)" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"p",
"(",
"one",
" ",
"two",
" ",
"three",
"#",
"my_id",
")",
". ",
"..classes + id"
],
"types": [
"markup.heading",
"keyword",
"string",
"text",
"string",
"text",
"string",
"keyword",
"string",
"keyword",
"keyword",
"text"
"data": [
[ "markup.heading", "p" ],
[ "keyword", "(" ],
[ "string", "one" ],
[ "text", " " ],
[ "string", "two" ],
[ "text", " " ],
[ "string", "three" ],
[ "keyword", "#" ],
[ "string", "my_id" ],
[ "keyword", ")" ],
[ "keyword", ". " ],
[ "text", "..classes + id" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"*",
" Unordered list"
],
"types": [
"keyword",
"text"
"data": [
[ "keyword", "*" ],
[ "text", " Unordered list" ]
]
},
{
"state": "start",
"values": [
"**",
" sublist"
],
"types": [
"keyword",
"text"
"data": [
[ "keyword", "**" ],
[ "text", " sublist" ]
]
},
{
"state": "start",
"values": [
"*",
" back again!"
],
"types": [
"keyword",
"text"
"data": [
[ "keyword", "*" ],
[ "text", " back again!" ]
]
},
{
"state": "start",
"values": [
"**",
" sublist again.."
],
"types": [
"keyword",
"text"
"data": [
[ "keyword", "**" ],
[ "text", " sublist again.." ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"#",
" ordered"
],
"types": [
"keyword",
"text"
"data": [
[ "keyword", "#" ],
[ "text", " ordered" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"bg. Blockquote!"
],
"types": [
"text"
"data": [
[ "text", "bg. Blockquote!" ]
]
},
{
"state": "start",
"values": [
" This is a two-list blockquote..!"
],
"types": [
"text"
"data": [
[ "text", " This is a two-list blockquote..!" ]
]
}
]

File diff suppressed because it is too large Load diff

View file

@ -1,105 +1,64 @@
[
{
"state": "start",
"values": [
"xquery",
" ",
"version",
" ",
"\"1.0\"",
";"
],
"types": [
"keyword",
"text",
"keyword",
"text",
"string",
"text"
"data": [
[ "keyword", "xquery" ],
[ "text", " " ],
[ "keyword", "version" ],
[ "text", " " ],
[ "string", "\"1.0\"" ],
[ "text", ";" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"let",
" ",
"$message",
" :",
"=",
" ",
"\"Hello World!\""
],
"types": [
"keyword",
"text",
"variable",
"text",
"keyword.operator",
"text",
"string"
"data": [
[ "keyword", "let" ],
[ "text", " " ],
[ "variable", "$message" ],
[ "text", " :" ],
[ "keyword.operator", "=" ],
[ "text", " " ],
[ "string", "\"Hello World!\"" ]
]
},
{
"state": "start",
"values": [
"return",
" <",
"results",
">"
],
"types": [
"keyword",
"text",
"meta.tag",
"text"
"data": [
[ "keyword", "return" ],
[ "text", " <" ],
[ "meta.tag", "results" ],
[ "text", ">" ]
]
},
{
"state": "start",
"values": [
" <",
"message",
">",
"{",
"$message",
"}",
"</",
"message",
">"
],
"types": [
"text",
"meta.tag",
"text",
"lparen",
"variable",
"rparen",
"text",
"meta.tag",
"text"
"data": [
[ "text", " <" ],
[ "meta.tag", "message" ],
[ "text", ">" ],
[ "lparen", "{" ],
[ "variable", "$message" ],
[ "rparen", "}" ],
[ "text", "</" ],
[ "meta.tag", "message" ],
[ "text", ">" ]
]
},
{
"state": "start",
"values": [
"</",
"results",
">"
],
"types": [
"text",
"meta.tag",
"text"
"data": [
[ "text", "</" ],
[ "meta.tag", "results" ],
[ "text", ">" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
}
]

View file

@ -1,410 +1,260 @@
[
{
"state": "start",
"values": [
"# This sample document was taken from wikipedia:"
],
"types": [
"comment"
"data": [
[ "comment", "# This sample document was taken from wikipedia:" ]
]
},
{
"state": "start",
"values": [
"# http://en.wikipedia.org/wiki/YAML#Sample_document"
],
"types": [
"comment"
"data": [
[ "comment", "# http://en.wikipedia.org/wiki/YAML#Sample_document" ]
]
},
{
"state": "start",
"values": [
"---"
],
"types": [
"comment"
"data": [
[ "comment", "---" ]
]
},
{
"state": "start",
"values": [
"receipt:",
" Oz-Ware Purchase Invoice"
],
"types": [
"identifier",
"text"
"data": [
[ "identifier", "receipt:" ],
[ "text", " Oz-Ware Purchase Invoice" ]
]
},
{
"state": "start",
"values": [
"date:",
" ",
"2007",
"-08",
"-06"
],
"types": [
"identifier",
"text",
"constant.numeric",
"constant.numeric",
"constant.numeric"
"data": [
[ "identifier", "date:" ],
[ "text", " " ],
[ "constant.numeric", "2007" ],
[ "constant.numeric", "-08" ],
[ "constant.numeric", "-06" ]
]
},
{
"state": "start",
"values": [
"customer:"
],
"types": [
"identifier"
"data": [
[ "identifier", "customer:" ]
]
},
{
"state": "start",
"values": [
" ",
"given:",
" Dorothy"
],
"types": [
"text",
"identifier",
"text"
"data": [
[ "text", " " ],
[ "identifier", "given:" ],
[ "text", " Dorothy" ]
]
},
{
"state": "start",
"values": [
" ",
"family:",
" Gale"
],
"types": [
"text",
"identifier",
"text"
"data": [
[ "text", " " ],
[ "identifier", "family:" ],
[ "text", " Gale" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"items:"
],
"types": [
"identifier"
"data": [
[ "identifier", "items:" ]
]
},
{
"state": "start",
"values": [
" - ",
"part_no:",
" ",
"'A4786'"
],
"types": [
"text",
"identifier",
"text",
"string"
"data": [
[ "text", " - " ],
[ "identifier", "part_no:" ],
[ "text", " " ],
[ "string", "'A4786'" ]
]
},
{
"state": "start",
"values": [
" ",
"descrip:",
" Water Bucket ",
"(",
"Filled",
")"
],
"types": [
"text",
"identifier",
"text",
"paren.lparen",
"text",
"paren.rparen"
"data": [
[ "text", " " ],
[ "identifier", "descrip:" ],
[ "text", " Water Bucket " ],
[ "paren.lparen", "(" ],
[ "text", "Filled" ],
[ "paren.rparen", ")" ]
]
},
{
"state": "start",
"values": [
" ",
"price:",
" ",
"1.47"
],
"types": [
"text",
"identifier",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "identifier", "price:" ],
[ "text", " " ],
[ "constant.numeric", "1.47" ]
]
},
{
"state": "start",
"values": [
" ",
"quantity:",
" ",
"4"
],
"types": [
"text",
"identifier",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "identifier", "quantity:" ],
[ "text", " " ],
[ "constant.numeric", "4" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
" - ",
"part_no:",
" ",
"'E1628'"
],
"types": [
"text",
"identifier",
"text",
"string"
"data": [
[ "text", " - " ],
[ "identifier", "part_no:" ],
[ "text", " " ],
[ "string", "'E1628'" ]
]
},
{
"state": "start",
"values": [
" ",
"descrip:",
" High Heeled ",
"\"Ruby\"",
" Slippers"
],
"types": [
"text",
"identifier",
"text",
"string",
"text"
"data": [
[ "text", " " ],
[ "identifier", "descrip:" ],
[ "text", " High Heeled " ],
[ "string", "\"Ruby\"" ],
[ "text", " Slippers" ]
]
},
{
"state": "start",
"values": [
" ",
"size:",
" ",
"8"
],
"types": [
"text",
"identifier",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "identifier", "size:" ],
[ "text", " " ],
[ "constant.numeric", "8" ]
]
},
{
"state": "start",
"values": [
" ",
"price:",
" ",
"100.27"
],
"types": [
"text",
"identifier",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "identifier", "price:" ],
[ "text", " " ],
[ "constant.numeric", "100.27" ]
]
},
{
"state": "start",
"values": [
" ",
"quantity:",
" ",
"1"
],
"types": [
"text",
"identifier",
"text",
"constant.numeric"
"data": [
[ "text", " " ],
[ "identifier", "quantity:" ],
[ "text", " " ],
[ "constant.numeric", "1" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"bill-",
"to:",
" ",
"&id001"
],
"types": [
"text",
"identifier",
"text",
"variable"
"data": [
[ "text", "bill-" ],
[ "identifier", "to:" ],
[ "text", " " ],
[ "variable", "&id001" ]
]
},
{
"state": "qqstring",
"values": [
" ",
"street:",
" ",
"|"
],
"types": [
"text",
"identifier",
"text",
"string"
"data": [
[ "text", " " ],
[ "identifier", "street:" ],
[ "text", " " ],
[ "string", "|" ]
]
},
{
"state": "qqstring",
"values": [
" 123 Tornado Alley"
],
"types": [
"string"
"data": [
[ "string", " 123 Tornado Alley" ]
]
},
{
"state": "qqstring",
"values": [
" Suite 16"
],
"types": [
"string"
"data": [
[ "string", " Suite 16" ]
]
},
{
"state": "start",
"values": [
" ",
"city:",
" East Centerville"
],
"types": [
"text",
"identifier",
"text"
"data": [
[ "text", " " ],
[ "identifier", "city:" ],
[ "text", " East Centerville" ]
]
},
{
"state": "start",
"values": [
" ",
"state:",
" KS"
],
"types": [
"text",
"identifier",
"text"
"data": [
[ "text", " " ],
[ "identifier", "state:" ],
[ "text", " KS" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "start",
"values": [
"ship-",
"to:",
" ",
"*id001"
],
"types": [
"text",
"identifier",
"text",
"variable"
"data": [
[ "text", "ship-" ],
[ "identifier", "to:" ],
[ "text", " " ],
[ "variable", "*id001" ]
]
},
{
"state": "start",
"values": [],
"types": []
"data": []
},
{
"state": "qqstring",
"values": [
"specialDelivery:",
" ",
">"
],
"types": [
"identifier",
"text",
"string"
"data": [
[ "identifier", "specialDelivery:" ],
[ "text", " " ],
[ "string", ">" ]
]
},
{
"state": "qqstring",
"values": [
" Follow the Yellow Brick"
],
"types": [
"string"
"data": [
[ "string", " Follow the Yellow Brick" ]
]
},
{
"state": "qqstring",
"values": [
" Road to the Emerald City."
],
"types": [
"string"
"data": [
[ "string", " Road to the Emerald City." ]
]
},
{
"state": "qqstring",
"values": [
" Pay no attention to the"
],
"types": [
"string"
"data": [
[ "string", " Pay no attention to the" ]
]
},
{
"state": "qqstring",
"values": [
" man behind the curtain."
],
"types": [
"string"
"data": [
[ "string", " man behind the curtain." ]
]
},
{
"state": "qqstring",
"values": [],
"types": []
"data": []
}
]