update components
This commit is contained in:
parent
2a4b879c21
commit
63664e6c1c
1155 changed files with 62261 additions and 84 deletions
10
dashboard-ui/bower_components/prism/tests/helper/components.js
vendored
Normal file
10
dashboard-ui/bower_components/prism/tests/helper/components.js
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
"use strict";
|
||||
|
||||
var fs = require("fs");
|
||||
var vm = require("vm");
|
||||
|
||||
var fileContent = fs.readFileSync(__dirname + "/../../components.js", "utf8");
|
||||
var context = {};
|
||||
vm.runInNewContext(fileContent, context);
|
||||
|
||||
module.exports = context.components;
|
131
dashboard-ui/bower_components/prism/tests/helper/prism-loader.js
vendored
Normal file
131
dashboard-ui/bower_components/prism/tests/helper/prism-loader.js
vendored
Normal file
|
@ -0,0 +1,131 @@
|
|||
"use strict";
|
||||
|
||||
var fs = require("fs");
|
||||
var vm = require("vm");
|
||||
var components = require("./components");
|
||||
var languagesCatalog = components.languages;
|
||||
|
||||
|
||||
module.exports = {
|
||||
|
||||
/**
|
||||
* Creates a new Prism instance with the given language loaded
|
||||
*
|
||||
* @param {string|string[]} languages
|
||||
* @returns {Prism}
|
||||
*/
|
||||
createInstance: function (languages) {
|
||||
var context = {
|
||||
loadedLanguages: [],
|
||||
Prism: this.createEmptyPrism()
|
||||
};
|
||||
|
||||
context = this.loadLanguages(languages, context);
|
||||
|
||||
return context.Prism;
|
||||
},
|
||||
|
||||
/**
|
||||
* Loads the given languages and appends the config to the given Prism object
|
||||
*
|
||||
* @private
|
||||
* @param {string|string[]} languages
|
||||
* @param {{loadedLanguages: string[], Prism: Prism}} context
|
||||
* @returns {{loadedLanguages: string[], Prism: Prism}}
|
||||
*/
|
||||
loadLanguages: function (languages, context) {
|
||||
if (typeof languages === 'string') {
|
||||
languages = [languages];
|
||||
}
|
||||
|
||||
var self = this;
|
||||
|
||||
languages.forEach(function (language) {
|
||||
context = self.loadLanguage(language, context);
|
||||
});
|
||||
|
||||
return context;
|
||||
},
|
||||
|
||||
/**
|
||||
* Loads the given language (including recursively loading the dependencies) and
|
||||
* appends the config to the given Prism object
|
||||
*
|
||||
* @private
|
||||
* @param {string} language
|
||||
* @param {{loadedLanguages: string[], Prism: Prism}} context
|
||||
* @returns {{loadedLanguages: string[], Prism: Prism}}
|
||||
*/
|
||||
loadLanguage: function (language, context) {
|
||||
if (!languagesCatalog[language]) {
|
||||
throw new Error("Language '" + language + "' not found.");
|
||||
}
|
||||
|
||||
// the given language was already loaded
|
||||
if (-1 < context.loadedLanguages.indexOf(language)) {
|
||||
return context;
|
||||
}
|
||||
|
||||
// if the language has a dependency -> load it first
|
||||
if (languagesCatalog[language].require) {
|
||||
context = this.loadLanguages(languagesCatalog[language].require, context);
|
||||
}
|
||||
|
||||
// load the language itself
|
||||
var languageSource = this.loadFileSource(language);
|
||||
context.Prism = this.runFileWithContext(languageSource, {Prism: context.Prism}).Prism;
|
||||
context.loadedLanguages.push(language);
|
||||
|
||||
return context;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new empty prism instance
|
||||
*
|
||||
* @private
|
||||
* @returns {Prism}
|
||||
*/
|
||||
createEmptyPrism: function () {
|
||||
var coreSource = this.loadFileSource("core");
|
||||
var context = this.runFileWithContext(coreSource);
|
||||
return context.Prism;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Cached file sources, to prevent massive HDD work
|
||||
*
|
||||
* @private
|
||||
* @type {Object.<string, string>}
|
||||
*/
|
||||
fileSourceCache: {},
|
||||
|
||||
|
||||
/**
|
||||
* Loads the given file source as string
|
||||
*
|
||||
* @private
|
||||
* @param {string} name
|
||||
* @returns {string}
|
||||
*/
|
||||
loadFileSource: function (name) {
|
||||
return this.fileSourceCache[name] = this.fileSourceCache[name] || fs.readFileSync(__dirname + "/../../components/prism-" + name + ".js", "utf8");
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Runs a VM for a given file source with the given context
|
||||
*
|
||||
* @private
|
||||
* @param {string} fileSource
|
||||
* @param {*} [context]
|
||||
*
|
||||
* @returns {*}
|
||||
*/
|
||||
runFileWithContext: function (fileSource, context) {
|
||||
context = context || {};
|
||||
vm.runInNewContext(fileSource, context);
|
||||
return context;
|
||||
}
|
||||
};
|
145
dashboard-ui/bower_components/prism/tests/helper/test-case.js
vendored
Normal file
145
dashboard-ui/bower_components/prism/tests/helper/test-case.js
vendored
Normal file
|
@ -0,0 +1,145 @@
|
|||
"use strict";
|
||||
|
||||
var fs = require("fs");
|
||||
var assert = require("chai").assert;
|
||||
var PrismLoader = require("./prism-loader");
|
||||
var TokenStreamTransformer = require("./token-stream-transformer");
|
||||
|
||||
/**
|
||||
* Handles parsing of a test case file.
|
||||
*
|
||||
*
|
||||
* A test case file consists of at least two parts, separated by a line of dashes.
|
||||
* This separation line must start at the beginning of the line and consist of at least three dashes.
|
||||
*
|
||||
* The test case file can either consist of two parts:
|
||||
*
|
||||
* {source code}
|
||||
* ----
|
||||
* {expected token stream}
|
||||
*
|
||||
*
|
||||
* or of three parts:
|
||||
*
|
||||
* {source code}
|
||||
* ----
|
||||
* {expected token stream}
|
||||
* ----
|
||||
* {text comment explaining the test case}
|
||||
*
|
||||
* If the file contains more than three parts, the remaining parts are just ignored.
|
||||
* If the file however does not contain at least two parts (so no expected token stream),
|
||||
* the test case will later be marked as failed.
|
||||
*
|
||||
*
|
||||
* @type {{runTestCase: Function, transformCompiledTokenStream: Function, parseTestCaseFile: Function}}
|
||||
*/
|
||||
module.exports = {
|
||||
|
||||
/**
|
||||
* Runs the given test case file and asserts the result
|
||||
*
|
||||
* The passed language identifier can either be a language like "css" or a composed language
|
||||
* identifier like "css+markup". Composed identifiers can be used for testing language inclusion.
|
||||
*
|
||||
* When testing language inclusion, the first given language is the main language which will be passed
|
||||
* to Prism for highlighting ("css+markup" will result in a call to Prism to highlight with the "css" grammar).
|
||||
* But it will be ensured, that the additional passed languages will be loaded too.
|
||||
*
|
||||
* The languages will be loaded in the order they were provided.
|
||||
*
|
||||
* @param {string} languageIdentifier
|
||||
* @param {string} filePath
|
||||
*/
|
||||
runTestCase: function (languageIdentifier, filePath) {
|
||||
var testCase = this.parseTestCaseFile(filePath);
|
||||
var usedLanguages = this.parseLanguageNames(languageIdentifier);
|
||||
|
||||
if (null === testCase) {
|
||||
throw new Error("Test case file has invalid format (or the provided token stream is invalid JSON), please read the docs.");
|
||||
}
|
||||
|
||||
var Prism = PrismLoader.createInstance(usedLanguages.languages);
|
||||
// the first language is the main language to highlight
|
||||
var mainLanguageGrammar = Prism.languages[usedLanguages.mainLanguage];
|
||||
var compiledTokenStream = Prism.tokenize(testCase.testSource, mainLanguageGrammar);
|
||||
var simplifiedTokenStream = TokenStreamTransformer.simplify(compiledTokenStream);
|
||||
|
||||
assert.deepEqual(simplifiedTokenStream, testCase.expectedTokenStream, testCase.comment);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Parses the language names and finds the main language.
|
||||
*
|
||||
* It is either the first language or the language followed by a exclamation mark “!”.
|
||||
* There should only be one language with an exclamation mark.
|
||||
*
|
||||
* @param {string} languageIdentifier
|
||||
*
|
||||
* @returns {{languages: string[], mainLanguage: string}}
|
||||
*/
|
||||
parseLanguageNames: function (languageIdentifier) {
|
||||
var languages = languageIdentifier.split("+");
|
||||
var mainLanguage = null;
|
||||
|
||||
languages = languages.map(
|
||||
function (language) {
|
||||
var pos = language.indexOf("!");
|
||||
|
||||
if (-1 < pos) {
|
||||
if (mainLanguage) {
|
||||
throw "There are multiple main languages defined.";
|
||||
}
|
||||
|
||||
mainLanguage = language.replace("!", "");
|
||||
return mainLanguage;
|
||||
}
|
||||
|
||||
return language;
|
||||
}
|
||||
);
|
||||
|
||||
if (!mainLanguage) {
|
||||
mainLanguage = languages[languages.length-1];
|
||||
}
|
||||
|
||||
return {
|
||||
languages: languages,
|
||||
mainLanguage: mainLanguage
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Parses the test case from the given test case file
|
||||
*
|
||||
* @private
|
||||
* @param {string} filePath
|
||||
* @returns {{testSource: string, expectedTokenStream: Array.<Array.<string>>, comment:string?}|null}
|
||||
*/
|
||||
parseTestCaseFile: function (filePath) {
|
||||
var testCaseSource = fs.readFileSync(filePath, "utf8");
|
||||
var testCaseParts = testCaseSource.split(/^-{10,}\w*$/m);
|
||||
|
||||
try {
|
||||
var testCase = {
|
||||
testSource: testCaseParts[0].trim(),
|
||||
expectedTokenStream: JSON.parse(testCaseParts[1]),
|
||||
comment: null
|
||||
};
|
||||
|
||||
// if there are three parts, the third one is the comment
|
||||
// explaining the test case
|
||||
if (testCaseParts[2]) {
|
||||
testCase.comment = testCaseParts[2].trim();
|
||||
}
|
||||
|
||||
return testCase;
|
||||
}
|
||||
catch (e) {
|
||||
// the JSON can't be parsed (e.g. it could be empty)
|
||||
return null;
|
||||
}
|
||||
}
|
||||
};
|
117
dashboard-ui/bower_components/prism/tests/helper/test-discovery.js
vendored
Normal file
117
dashboard-ui/bower_components/prism/tests/helper/test-discovery.js
vendored
Normal file
|
@ -0,0 +1,117 @@
|
|||
"use strict";
|
||||
|
||||
var fs = require("fs");
|
||||
var path = require("path");
|
||||
|
||||
|
||||
module.exports = {
|
||||
|
||||
/**
|
||||
* Loads the list of all available tests
|
||||
*
|
||||
* @param {string} rootDir
|
||||
* @returns {Object.<string, string[]>}
|
||||
*/
|
||||
loadAllTests: function (rootDir) {
|
||||
var testSuite = {};
|
||||
var self = this;
|
||||
|
||||
this.getAllDirectories(rootDir).forEach(
|
||||
function (language) {
|
||||
testSuite[language] = self.getAllFiles(path.join(rootDir, language));
|
||||
}
|
||||
);
|
||||
|
||||
return testSuite;
|
||||
},
|
||||
|
||||
/**
|
||||
* Loads the list of available tests that match the given languages
|
||||
*
|
||||
* @param {string} rootDir
|
||||
* @param {string|string[]} languages
|
||||
* @returns {Object.<string, string[]>}
|
||||
*/
|
||||
loadSomeTests: function (rootDir, languages) {
|
||||
var testSuite = {};
|
||||
var self = this;
|
||||
|
||||
this.getSomeDirectories(rootDir, languages).forEach(
|
||||
function (language) {
|
||||
testSuite[language] = self.getAllFiles(path.join(rootDir, language));
|
||||
}
|
||||
);
|
||||
|
||||
return testSuite;
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Returns a list of all (sub)directories (just the directory names, not full paths)
|
||||
* in the given src directory
|
||||
*
|
||||
* @param {string} src
|
||||
* @returns {Array.<string>}
|
||||
*/
|
||||
getAllDirectories: function (src) {
|
||||
return fs.readdirSync(src).filter(
|
||||
function (file) {
|
||||
return fs.statSync(path.join(src, file)).isDirectory();
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns a list of all (sub)directories (just the directory names, not full paths)
|
||||
* in the given src directory, matching the given languages
|
||||
*
|
||||
* @param {string} src
|
||||
* @param {string|string[]} languages
|
||||
* @returns {Array.<string>}
|
||||
*/
|
||||
getSomeDirectories: function (src, languages) {
|
||||
var self = this;
|
||||
return fs.readdirSync(src).filter(
|
||||
function (file) {
|
||||
return fs.statSync(path.join(src, file)).isDirectory() && self.directoryMatches(file, languages);
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns whether a directory matches one of the given languages.
|
||||
* @param {string} directory
|
||||
* @param {string|string[]} languages
|
||||
*/
|
||||
directoryMatches: function (directory, languages) {
|
||||
if (!Array.isArray(languages)) {
|
||||
languages = [languages];
|
||||
}
|
||||
var dirLanguages = directory.split(/!?\+!?/);
|
||||
return dirLanguages.some(function (lang) {
|
||||
return languages.indexOf(lang) >= 0;
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Returns a list of all full file paths to all files in the given src directory
|
||||
*
|
||||
* @private
|
||||
* @param {string} src
|
||||
* @returns {Array.<string>}
|
||||
*/
|
||||
getAllFiles: function (src) {
|
||||
return fs.readdirSync(src).filter(
|
||||
function (fileName) {
|
||||
// only find files that have the ".test" extension
|
||||
return ".test" === path.extname(fileName) &&
|
||||
fs.statSync(path.join(src, fileName)).isFile();
|
||||
}
|
||||
).map(
|
||||
function (fileName) {
|
||||
return path.join(src, fileName);
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
32
dashboard-ui/bower_components/prism/tests/helper/token-stream-transformer.js
vendored
Normal file
32
dashboard-ui/bower_components/prism/tests/helper/token-stream-transformer.js
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
"use strict";
|
||||
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Simplifies the token stream to ease the matching with the expected token stream.
|
||||
*
|
||||
* * Strings are kept as-is
|
||||
* * In arrays each value is transformed individually
|
||||
* * Values that are empty (empty arrays or strings only containing whitespace)
|
||||
*
|
||||
*
|
||||
* @param {Array} tokenStream
|
||||
* @returns {Array.<string[]|Array>}
|
||||
*/
|
||||
simplify: function (tokenStream) {
|
||||
if (Array.isArray(tokenStream)) {
|
||||
return tokenStream
|
||||
.map(this.simplify.bind(this))
|
||||
.filter(function (value) {
|
||||
return !(Array.isArray(value) && !value.length) && !(typeof value === "string" && !value.trim().length);
|
||||
}
|
||||
);
|
||||
}
|
||||
else if (typeof tokenStream === "object") {
|
||||
return [tokenStream.type, this.simplify(tokenStream.content)];
|
||||
}
|
||||
else {
|
||||
return tokenStream;
|
||||
}
|
||||
}
|
||||
};
|
13
dashboard-ui/bower_components/prism/tests/languages/abap/comment_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/abap/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
*
|
||||
* Foobar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "*"],
|
||||
["comment", "* Foobar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
13
dashboard-ui/bower_components/prism/tests/languages/abap/eol-comment_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/abap/eol-comment_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"
|
||||
" foobar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["eol-comment", "\""],
|
||||
["eol-comment", "\" foobar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for EOL comments.
|
1801
dashboard-ui/bower_components/prism/tests/languages/abap/keyword_feature.test
vendored
Normal file
1801
dashboard-ui/bower_components/prism/tests/languages/abap/keyword_feature.test
vendored
Normal file
File diff suppressed because it is too large
Load diff
15
dashboard-ui/bower_components/prism/tests/languages/abap/number_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/abap/number_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
0
|
||||
42
|
||||
123456789
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "0"],
|
||||
["number", "42"],
|
||||
["number", "123456789"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
38
dashboard-ui/bower_components/prism/tests/languages/abap/operator_feature.test
vendored
Normal file
38
dashboard-ui/bower_components/prism/tests/languages/abap/operator_feature.test
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
.
|
||||
+ -
|
||||
/ * **
|
||||
< > <= >=
|
||||
= ?= <>
|
||||
|
||||
& &&
|
||||
|
||||
a-b
|
||||
a~b
|
||||
a->b
|
||||
a=>b
|
||||
a|b
|
||||
a{b}c
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["punctuation", "."],
|
||||
["operator", "+"], ["operator", "-"],
|
||||
["operator", "/"], ["operator", "*"], ["operator", "**"],
|
||||
["operator", "<"], ["operator", ">"], ["operator", "<="], ["operator", ">="],
|
||||
["operator", "="], ["operator", "?="], ["operator", "<>"],
|
||||
|
||||
["string-operator", "&"], ["string-operator", "&&"],
|
||||
|
||||
"\r\n\r\na", ["token-operator", "-"],
|
||||
"b\r\na", ["token-operator", "~"],
|
||||
"b\r\na", ["token-operator", "->"],
|
||||
"b\r\na", ["token-operator", "=>"],
|
||||
"b\r\na", ["token-operator", "|"],
|
||||
"b\r\na", ["token-operator", "{"], "b", ["token-operator", "}"], "c"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for operators, string-operators and token-operators.
|
||||
The leading dot serves only because tests are trimmed.
|
17
dashboard-ui/bower_components/prism/tests/languages/abap/string-template_feature.test
vendored
Normal file
17
dashboard-ui/bower_components/prism/tests/languages/abap/string-template_feature.test
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
|foobar|
|
||||
|foo\|b\{a}r|
|
||||
|foo { bar } baz|
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["token-operator", "|"], ["string-template", "foobar"], ["token-operator", "|"],
|
||||
["token-operator", "|"], ["string-template", "foo\\|b\\{a}r"], ["token-operator", "|"],
|
||||
["token-operator", "|"], ["string-template", "foo "], ["token-operator", "{"],
|
||||
" bar ",
|
||||
["token-operator", "}"], ["string-template", " baz"], ["token-operator", "|"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for string templates.
|
21
dashboard-ui/bower_components/prism/tests/languages/abap/string_feature.test
vendored
Normal file
21
dashboard-ui/bower_components/prism/tests/languages/abap/string_feature.test
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
''
|
||||
'foo'
|
||||
'foo\'bar'
|
||||
``
|
||||
`foo`
|
||||
`foo\`bar`
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "''"],
|
||||
["string", "'foo'"],
|
||||
["string", "'foo\\'bar'"],
|
||||
["string", "``"],
|
||||
["string", "`foo`"],
|
||||
["string", "`foo\\`bar`"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
71
dashboard-ui/bower_components/prism/tests/languages/actionscript/keyword_feature.test
vendored
Normal file
71
dashboard-ui/bower_components/prism/tests/languages/actionscript/keyword_feature.test
vendored
Normal file
|
@ -0,0 +1,71 @@
|
|||
as; break; case; catch; class;
|
||||
const; default; delete; do; else;
|
||||
extends; finally; for; function; if;
|
||||
implements; import; in; instanceof; interface;
|
||||
internal; is; native; new; null;
|
||||
package; private; protected; public; return;
|
||||
super; switch; this; throw; try;
|
||||
typeof; use; var; void; while;
|
||||
with; dynamic; each; final; get;
|
||||
include; namespace; native; override; set;
|
||||
static;
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "as"], ["punctuation", ";"],
|
||||
["keyword", "break"], ["punctuation", ";"],
|
||||
["keyword", "case"], ["punctuation", ";"],
|
||||
["keyword", "catch"], ["punctuation", ";"],
|
||||
["keyword", "class"], ["punctuation", ";"],
|
||||
["keyword", "const"], ["punctuation", ";"],
|
||||
["keyword", "default"], ["punctuation", ";"],
|
||||
["keyword", "delete"], ["punctuation", ";"],
|
||||
["keyword", "do"], ["punctuation", ";"],
|
||||
["keyword", "else"], ["punctuation", ";"],
|
||||
["keyword", "extends"], ["punctuation", ";"],
|
||||
["keyword", "finally"], ["punctuation", ";"],
|
||||
["keyword", "for"], ["punctuation", ";"],
|
||||
["keyword", "function"], ["punctuation", ";"],
|
||||
["keyword", "if"], ["punctuation", ";"],
|
||||
["keyword", "implements"], ["punctuation", ";"],
|
||||
["keyword", "import"], ["punctuation", ";"],
|
||||
["keyword", "in"], ["punctuation", ";"],
|
||||
["keyword", "instanceof"], ["punctuation", ";"],
|
||||
["keyword", "interface"], ["punctuation", ";"],
|
||||
["keyword", "internal"], ["punctuation", ";"],
|
||||
["keyword", "is"], ["punctuation", ";"],
|
||||
["keyword", "native"], ["punctuation", ";"],
|
||||
["keyword", "new"], ["punctuation", ";"],
|
||||
["keyword", "null"], ["punctuation", ";"],
|
||||
["keyword", "package"], ["punctuation", ";"],
|
||||
["keyword", "private"], ["punctuation", ";"],
|
||||
["keyword", "protected"], ["punctuation", ";"],
|
||||
["keyword", "public"], ["punctuation", ";"],
|
||||
["keyword", "return"], ["punctuation", ";"],
|
||||
["keyword", "super"], ["punctuation", ";"],
|
||||
["keyword", "switch"], ["punctuation", ";"],
|
||||
["keyword", "this"], ["punctuation", ";"],
|
||||
["keyword", "throw"], ["punctuation", ";"],
|
||||
["keyword", "try"], ["punctuation", ";"],
|
||||
["keyword", "typeof"], ["punctuation", ";"],
|
||||
["keyword", "use"], ["punctuation", ";"],
|
||||
["keyword", "var"], ["punctuation", ";"],
|
||||
["keyword", "void"], ["punctuation", ";"],
|
||||
["keyword", "while"], ["punctuation", ";"],
|
||||
["keyword", "with"], ["punctuation", ";"],
|
||||
["keyword", "dynamic"], ["punctuation", ";"],
|
||||
["keyword", "each"], ["punctuation", ";"],
|
||||
["keyword", "final"], ["punctuation", ";"],
|
||||
["keyword", "get"], ["punctuation", ";"],
|
||||
["keyword", "include"], ["punctuation", ";"],
|
||||
["keyword", "namespace"], ["punctuation", ";"],
|
||||
["keyword", "native"], ["punctuation", ";"],
|
||||
["keyword", "override"], ["punctuation", ";"],
|
||||
["keyword", "set"], ["punctuation", ";"],
|
||||
["keyword", "static"], ["punctuation", ";"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all keywords.
|
29
dashboard-ui/bower_components/prism/tests/languages/actionscript/operator_feature.test
vendored
Normal file
29
dashboard-ui/bower_components/prism/tests/languages/actionscript/operator_feature.test
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
+ - * / % ^
|
||||
+= -= *= /= %= ^=
|
||||
& && | ||
|
||||
&= &&= |= ||=
|
||||
< << > >> >>>
|
||||
<= <<= >= >>= >>>=
|
||||
! != = ==
|
||||
!== ===
|
||||
~ ? @
|
||||
++ --
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["operator", "+"], ["operator", "-"], ["operator", "*"], ["operator", "/"], ["operator", "%"], ["operator", "^"],
|
||||
["operator", "+="], ["operator", "-="], ["operator", "*="], ["operator", "/="], ["operator", "%="], ["operator", "^="],
|
||||
["operator", "&"], ["operator", "&&"], ["operator", "|"], ["operator", "||"],
|
||||
["operator", "&="], ["operator", "&&="], ["operator", "|="], ["operator", "||="],
|
||||
["operator", "<"], ["operator", "<<"], ["operator", ">"], ["operator", ">>"], ["operator", ">>>"],
|
||||
["operator", "<="], ["operator", "<<="], ["operator", ">="], ["operator", ">>="], ["operator", ">>>="],
|
||||
["operator", "!"], ["operator", "!="], ["operator", "="], ["operator", "=="],
|
||||
["operator", "!=="], ["operator", "==="],
|
||||
["operator", "~"], ["operator", "?"], ["operator", "@"],
|
||||
["operator", "++"], ["operator", "--"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all operators.
|
15
dashboard-ui/bower_components/prism/tests/languages/apacheconf/comment_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/apacheconf/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
#foo
|
||||
# bar
|
||||
# Redirect 301 /2006/oldfile.html http://subdomain.domain.tld/newfile.html
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "#foo"],
|
||||
["comment", "# bar"],
|
||||
["comment", "# Redirect 301 /2006/oldfile.html http://subdomain.domain.tld/newfile.html"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
469
dashboard-ui/bower_components/prism/tests/languages/apacheconf/directive-block_feature.test
vendored
Normal file
469
dashboard-ui/bower_components/prism/tests/languages/apacheconf/directive-block_feature.test
vendored
Normal file
|
@ -0,0 +1,469 @@
|
|||
<AuthnProviderAlias file file2>
|
||||
</AuthnProviderAlias>
|
||||
<AuthzProviderAlias ldap-group ldap-group-alias1 "cn=my-group,o=ctx">
|
||||
</AuthzProviderAlias>
|
||||
<Directory "/webpages/secure">
|
||||
</Directory>
|
||||
<DirectoryMatch "^/www/(.+/)?[0-9]{3}">
|
||||
</DirectoryMatch>
|
||||
<Else>
|
||||
</Else>
|
||||
<ElseIf "-R '10.0.0.0/8'">
|
||||
</ElseIf>
|
||||
<Files ~ "\.(gif|jpe?g|png)$">
|
||||
</Files>
|
||||
<FilesMatch ".+\.(gif|jpe?g|png)$">
|
||||
</FilesMatch>
|
||||
<If "-z req('Host')">
|
||||
</If>
|
||||
<IfDefine !MemCache>
|
||||
</IfDefine>
|
||||
<IfModule mod_rewrite.c>
|
||||
</IfModule>
|
||||
<IfVersion 2.1.0>
|
||||
</IfVersion>
|
||||
<Limit POST PUT DELETE>
|
||||
</Limit>
|
||||
<LimitExcept POST GET>
|
||||
</LimitExcept>
|
||||
<Location /private1>
|
||||
</Location>
|
||||
<LocationMatch "/(extra|special)/data">
|
||||
</LocationMatch>
|
||||
<Macro LocalAccessPolicy>
|
||||
</Macro>
|
||||
<Proxy "*">
|
||||
</Proxy>
|
||||
<RequireAll>
|
||||
</RequireAll>
|
||||
<RequireAny>
|
||||
</RequireAny>
|
||||
<RequireNone>
|
||||
</RequireNone>
|
||||
<VirtualHost [2001:db8::a00:20ff:fea7:ccea]:80>
|
||||
</VirtualHost>
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"AuthnProviderAlias"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" file file2"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"AuthnProviderAlias"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"AuthzProviderAlias"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" ldap-group ldap-group-alias1 ",
|
||||
["string", [
|
||||
"\"cn=my-group,o=ctx\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"AuthzProviderAlias"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"Directory"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
["string", [
|
||||
"\"/webpages/secure\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"Directory"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"DirectoryMatch"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
["string", [
|
||||
"\"^/www/(.+/)?[0-9]{3}\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"DirectoryMatch"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"Else"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"Else"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"ElseIf"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
["string", [
|
||||
"\"-R '10.0.0.0/8'\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"ElseIf"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"Files"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" ~ ",
|
||||
["string", [
|
||||
"\"\\.(gif|jpe?g|png)$\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"Files"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"FilesMatch"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
["string", [
|
||||
"\".+\\.(gif|jpe?g|png)$\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"FilesMatch"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"If"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
["string", [
|
||||
"\"-z req('Host')\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"If"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"IfDefine"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" !MemCache"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"IfDefine"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"IfModule"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" mod_rewrite.c"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"IfModule"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"IfVersion"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" 2.1.0"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"IfVersion"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"Limit"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" POST PUT DELETE"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"Limit"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"LimitExcept"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" POST GET"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"LimitExcept"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"Location"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" /private1"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"Location"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"LocationMatch"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
["string", [
|
||||
"\"/(extra|special)/data\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"LocationMatch"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"Macro"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" LocalAccessPolicy"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"Macro"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"Proxy"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
["string", [
|
||||
"\"*\""
|
||||
]]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"Proxy"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"RequireAll"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"RequireAll"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"RequireAny"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"RequireAny"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"RequireNone"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"RequireNone"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "<"],
|
||||
"VirtualHost"
|
||||
]],
|
||||
["directive-block-parameter", [
|
||||
" [2001",
|
||||
["punctuation", ":"],
|
||||
"db8",
|
||||
["punctuation", ":"],
|
||||
["punctuation", ":"],
|
||||
"a00",
|
||||
["punctuation", ":"],
|
||||
"20ff",
|
||||
["punctuation", ":"],
|
||||
"fea7",
|
||||
["punctuation", ":"],
|
||||
"ccea]",
|
||||
["punctuation", ":"],
|
||||
"80"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]],
|
||||
["directive-block", [
|
||||
["directive-block", [
|
||||
["punctuation", "</"],
|
||||
"VirtualHost"
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for directive blocks.
|
13
dashboard-ui/bower_components/prism/tests/languages/apacheconf/directive-flags_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/apacheconf/directive-flags_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
[OR]
|
||||
[L,QSA]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["directive-flags", "[OR]"],
|
||||
["directive-flags", "[L,QSA]"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for directive flags.
|
1163
dashboard-ui/bower_components/prism/tests/languages/apacheconf/directive-inline_feature.test
vendored
Normal file
1163
dashboard-ui/bower_components/prism/tests/languages/apacheconf/directive-inline_feature.test
vendored
Normal file
File diff suppressed because it is too large
Load diff
15
dashboard-ui/bower_components/prism/tests/languages/apacheconf/regex_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/apacheconf/regex_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
^(.*)$
|
||||
^foo
|
||||
bar$
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["regex", "^(.*)$"],
|
||||
["regex", "^foo"],
|
||||
["regex", "bar$"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for regex.
|
24
dashboard-ui/bower_components/prism/tests/languages/apacheconf/string_feature.test
vendored
Normal file
24
dashboard-ui/bower_components/prism/tests/languages/apacheconf/string_feature.test
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
"foo bar"
|
||||
'foo bar'
|
||||
"%{REMOTE_HOST}"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", [
|
||||
"\"foo bar\""
|
||||
]],
|
||||
["string", [
|
||||
"'foo bar'"
|
||||
]],
|
||||
["string", [
|
||||
"\"",
|
||||
["variable", "%{REMOTE_HOST}"],
|
||||
"\""
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
||||
Also checks for variables inside strings.
|
15
dashboard-ui/bower_components/prism/tests/languages/apacheconf/variable_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/apacheconf/variable_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
$port
|
||||
${docroot}
|
||||
%{REMOTE_HOST}
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", "$port"],
|
||||
["variable", "${docroot}"],
|
||||
["variable", "%{REMOTE_HOST}"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for variables.
|
13
dashboard-ui/bower_components/prism/tests/languages/apl/assignment_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/apl/assignment_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
a←1 2 3
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"a",
|
||||
["assignment", "←"],
|
||||
["number", "1"], ["number", "2"], ["number", "3"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for assignment.
|
15
dashboard-ui/bower_components/prism/tests/languages/apl/comment_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/apl/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
⍝
|
||||
⍝ Foobar
|
||||
#!/usr/bin/env runapl
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "⍝"],
|
||||
["comment", "⍝ Foobar"],
|
||||
["comment", "#!/usr/bin/env runapl"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
19
dashboard-ui/bower_components/prism/tests/languages/apl/constant_feature.test
vendored
Normal file
19
dashboard-ui/bower_components/prism/tests/languages/apl/constant_feature.test
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
⍬
|
||||
⌾
|
||||
#
|
||||
⎕
|
||||
⍞
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["constant", "⍬"],
|
||||
["constant", "⌾"],
|
||||
["constant", "#"],
|
||||
["constant", "⎕"],
|
||||
["constant", "⍞"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for constants.
|
23
dashboard-ui/bower_components/prism/tests/languages/apl/dfn_feature.test
vendored
Normal file
23
dashboard-ui/bower_components/prism/tests/languages/apl/dfn_feature.test
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{0=⍴⍴⍺:'hello' ⋄ ∇¨⍵}
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["dfn", "{"],
|
||||
["number", "0"],
|
||||
["function", "="],
|
||||
["function", "⍴"],
|
||||
["function", "⍴"],
|
||||
["dfn", "⍺"],
|
||||
["dfn", ":"],
|
||||
["string", "'hello'"],
|
||||
["punctuation", "⋄"],
|
||||
["dfn", "∇"],
|
||||
["monadic-operator", "¨"],
|
||||
["dfn", "⍵"],
|
||||
["dfn", "}"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for Dfns.
|
13
dashboard-ui/bower_components/prism/tests/languages/apl/dyadic-operator_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/apl/dyadic-operator_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
. ⍣ ⍠
|
||||
⍤ ∘ ⌸
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["dyadic-operator", "."], ["dyadic-operator", "⍣"], ["dyadic-operator", "⍠"],
|
||||
["dyadic-operator", "⍤"], ["dyadic-operator", "∘"], ["dyadic-operator", "⌸"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for dyadic operators.
|
41
dashboard-ui/bower_components/prism/tests/languages/apl/function_feature.test
vendored
Normal file
41
dashboard-ui/bower_components/prism/tests/languages/apl/function_feature.test
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
- + × ÷
|
||||
⌈ ⌊ ∣ |
|
||||
⍳ ? *
|
||||
⍟ ○ ! ⌹
|
||||
< ≤ = >
|
||||
≥ ≠ ≡ ≢
|
||||
∊ ⍷ ∪ ∩
|
||||
~ ∨ ∧ ⍱
|
||||
⍲ ⍴ , ⍪
|
||||
⌽ ⊖ ⍉
|
||||
↑ ↓ ⊂ ⊃
|
||||
⌷ ⍋ ⍒
|
||||
⊤ ⊥ ⍕ ⍎
|
||||
⊣ ⊢ ⍁ ⍂
|
||||
≈ ⍯
|
||||
↗ ¤ →
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["function", "-"], ["function", "+"], ["function", "×"], ["function", "÷"],
|
||||
["function", "⌈"], ["function", "⌊"], ["function", "∣"], ["function", "|"],
|
||||
["function", "⍳"], ["function", "?"], ["function", "*"],
|
||||
["function", "⍟"], ["function", "○"], ["function", "!"], ["function", "⌹"],
|
||||
["function", "<"], ["function", "≤"], ["function", "="], ["function", ">"],
|
||||
["function", "≥"], ["function", "≠"], ["function", "≡"], ["function", "≢"],
|
||||
["function", "∊"], ["function", "⍷"], ["function", "∪"], ["function", "∩"],
|
||||
["function", "~"], ["function", "∨"], ["function", "∧"], ["function", "⍱"],
|
||||
["function", "⍲"], ["function", "⍴"], ["function", ","], ["function", "⍪"],
|
||||
["function", "⌽"], ["function", "⊖"], ["function", "⍉"],
|
||||
["function", "↑"], ["function", "↓"], ["function", "⊂"], ["function", "⊃"],
|
||||
["function", "⌷"], ["function", "⍋"], ["function", "⍒"],
|
||||
["function", "⊤"], ["function", "⊥"], ["function", "⍕"], ["function", "⍎"],
|
||||
["function", "⊣"], ["function", "⊢"], ["function", "⍁"], ["function", "⍂"],
|
||||
["function", "≈"], ["function", "⍯"],
|
||||
["function", "↗"], ["function", "¤"], ["function", "→"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for functions.
|
15
dashboard-ui/bower_components/prism/tests/languages/apl/monadic-operator_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/apl/monadic-operator_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
\ / ⌿ ⍀
|
||||
¨ ⍨ ⌶
|
||||
& ∥
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["monadic-operator", "\\"], ["monadic-operator", "/"], ["monadic-operator", "⌿"], ["monadic-operator", "⍀"],
|
||||
["monadic-operator", "¨"], ["monadic-operator", "⍨"], ["monadic-operator", "⌶"],
|
||||
["monadic-operator", "&"], ["monadic-operator", "∥"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for monadic operators.
|
27
dashboard-ui/bower_components/prism/tests/languages/apl/number_feature.test
vendored
Normal file
27
dashboard-ui/bower_components/prism/tests/languages/apl/number_feature.test
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
42
|
||||
3.14159
|
||||
¯2
|
||||
∞
|
||||
3E12
|
||||
2.8e¯4
|
||||
0.1e+7
|
||||
2j3
|
||||
¯4.3e2J1.9e¯4
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "42"],
|
||||
["number", "3.14159"],
|
||||
["number", "¯2"],
|
||||
["number", "∞"],
|
||||
["number", "3E12"],
|
||||
["number", "2.8e¯4"],
|
||||
["number", "0.1e+7"],
|
||||
["number", "2j3"],
|
||||
["number", "¯4.3e2J1.9e¯4"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
13
dashboard-ui/bower_components/prism/tests/languages/apl/statement_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/apl/statement_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
:Ab
|
||||
:FooBar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["statement", ":Ab"],
|
||||
["statement", ":FooBar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for statements.
|
15
dashboard-ui/bower_components/prism/tests/languages/apl/string_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/apl/string_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
''
|
||||
'foobar'
|
||||
'fo''obar'
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "''"],
|
||||
["string", "'foobar'"],
|
||||
["string", "'fo''obar'"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
17
dashboard-ui/bower_components/prism/tests/languages/apl/system-function_feature.test
vendored
Normal file
17
dashboard-ui/bower_components/prism/tests/languages/apl/system-function_feature.test
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
⎕IO
|
||||
⎕WA
|
||||
⎕CR
|
||||
⎕TCNL
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["system-function", "⎕IO"],
|
||||
["system-function", "⎕WA"],
|
||||
["system-function", "⎕CR"],
|
||||
["system-function", "⎕TCNL"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for system functions.
|
39
dashboard-ui/bower_components/prism/tests/languages/applescript/class_feature.test
vendored
Normal file
39
dashboard-ui/bower_components/prism/tests/languages/applescript/class_feature.test
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
alias application boolean class constant
|
||||
date file integer list number
|
||||
POSIX file
|
||||
real record reference
|
||||
RGB color
|
||||
script text centimetres centimeters feet
|
||||
inches kilometres kilometers metres meters
|
||||
miles yards
|
||||
square feet square kilometres square kilometers square metres
|
||||
square meters square miles square yards
|
||||
cubic centimetres cubic centimeters cubic feet cubic inches
|
||||
cubic metres cubic meters cubic yards
|
||||
gallons litres liters quarts grams
|
||||
kilograms ounces pounds
|
||||
degrees Celsius degrees Fahrenheit degrees Kelvin
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["class", "alias"], ["class", "application"], ["class", "boolean"], ["class", "class"], ["class", "constant"],
|
||||
["class", "date"], ["class", "file"], ["class", "integer"], ["class", "list"], ["class", "number"],
|
||||
["class", "POSIX file"],
|
||||
["class", "real"], ["class", "record"], ["class", "reference"],
|
||||
["class", "RGB color"],
|
||||
["class", "script"], ["class", "text"], ["class", "centimetres"], ["class", "centimeters"], ["class", "feet"],
|
||||
["class", "inches"], ["class", "kilometres"], ["class", "kilometers"], ["class", "metres"], ["class", "meters"],
|
||||
["class", "miles"], ["class", "yards"],
|
||||
["class", "square feet"], ["class", "square kilometres"], ["class", "square kilometers"], ["class", "square metres"],
|
||||
["class", "square meters"], ["class", "square miles"], ["class", "square yards"],
|
||||
["class", "cubic centimetres"], ["class", "cubic centimeters"], ["class", "cubic feet"], ["class", "cubic inches"],
|
||||
["class", "cubic metres"], ["class", "cubic meters"], ["class", "cubic yards"],
|
||||
["class", "gallons"], ["class", "litres"], ["class", "liters"], ["class", "quarts"], ["class", "grams"],
|
||||
["class", "kilograms"], ["class", "ounces"], ["class", "pounds"],
|
||||
["class", "degrees Celsius"], ["class", "degrees Fahrenheit"], ["class", "degrees Kelvin"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all classes.
|
21
dashboard-ui/bower_components/prism/tests/languages/applescript/comment_feature.test
vendored
Normal file
21
dashboard-ui/bower_components/prism/tests/languages/applescript/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
-- foo bar
|
||||
# foo bar
|
||||
(* foo
|
||||
bar *)
|
||||
(* foo
|
||||
(* bar *)
|
||||
*)
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "-- foo bar"],
|
||||
["comment", "# foo bar"],
|
||||
["comment", "(* foo\r\nbar *)"],
|
||||
["comment", "(* foo\r\n(* bar *)\r\n*)"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for single-line and multi-line comments.
|
||||
Also checks for one level of nesting.
|
59
dashboard-ui/bower_components/prism/tests/languages/applescript/keyword_feature.test
vendored
Normal file
59
dashboard-ui/bower_components/prism/tests/languages/applescript/keyword_feature.test
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
about above after against
|
||||
apart from
|
||||
around
|
||||
aside from
|
||||
at back before beginning behind below
|
||||
beneath beside between but by
|
||||
considering continue copy
|
||||
does eighth else end
|
||||
equal error every exit
|
||||
false fifth first for fourth
|
||||
from front get given global
|
||||
if ignoring in
|
||||
instead of
|
||||
into is it its last
|
||||
local me middle my
|
||||
ninth of on onto
|
||||
out of
|
||||
over prop property put
|
||||
repeat return returning
|
||||
second set seventh since sixth
|
||||
some tell tenth that the
|
||||
then third through thru timeout
|
||||
times to transaction true try
|
||||
until where while whose with
|
||||
without
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "about"], ["keyword", "above"], ["keyword", "after"], ["keyword", "against"],
|
||||
["keyword", "apart from"],
|
||||
["keyword", "around"],
|
||||
["keyword", "aside from"],
|
||||
["keyword", "at"], ["keyword", "back"], ["keyword", "before"], ["keyword", "beginning"], ["keyword", "behind"], ["keyword", "below"],
|
||||
["keyword", "beneath"], ["keyword", "beside"], ["keyword", "between"], ["keyword", "but"], ["keyword", "by"],
|
||||
["keyword", "considering"], ["keyword", "continue"], ["keyword", "copy"],
|
||||
["keyword", "does"], ["keyword", "eighth"], ["keyword", "else"], ["keyword", "end"],
|
||||
["keyword", "equal"], ["keyword", "error"], ["keyword", "every"], ["keyword", "exit"],
|
||||
["keyword", "false"], ["keyword", "fifth"], ["keyword", "first"], ["keyword", "for"], ["keyword", "fourth"],
|
||||
["keyword", "from"], ["keyword", "front"], ["keyword", "get"], ["keyword", "given"], ["keyword", "global"],
|
||||
["keyword", "if"], ["keyword", "ignoring"], ["keyword", "in"],
|
||||
["keyword", "instead of"],
|
||||
["keyword", "into"], ["keyword", "is"], ["keyword", "it"], ["keyword", "its"], ["keyword", "last"],
|
||||
["keyword", "local"], ["keyword", "me"], ["keyword", "middle"], ["keyword", "my"],
|
||||
["keyword", "ninth"], ["keyword", "of"], ["keyword", "on"], ["keyword", "onto"],
|
||||
["keyword", "out of"],
|
||||
["keyword", "over"], ["keyword", "prop"], ["keyword", "property"], ["keyword", "put"],
|
||||
["keyword", "repeat"], ["keyword", "return"], ["keyword", "returning"],
|
||||
["keyword", "second"], ["keyword", "set"], ["keyword", "seventh"], ["keyword", "since"], ["keyword", "sixth"],
|
||||
["keyword", "some"], ["keyword", "tell"], ["keyword", "tenth"], ["keyword", "that"], ["keyword", "the"],
|
||||
["keyword", "then"], ["keyword", "third"], ["keyword", "through"], ["keyword", "thru"], ["keyword", "timeout"],
|
||||
["keyword", "times"], ["keyword", "to"], ["keyword", "transaction"], ["keyword", "true"], ["keyword", "try"],
|
||||
["keyword", "until"], ["keyword", "where"], ["keyword", "while"], ["keyword", "whose"], ["keyword", "with"],
|
||||
["keyword", "without"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all keywords.
|
17
dashboard-ui/bower_components/prism/tests/languages/applescript/number_feature.test
vendored
Normal file
17
dashboard-ui/bower_components/prism/tests/languages/applescript/number_feature.test
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
42
|
||||
3.14159
|
||||
3e10
|
||||
4.2E-5
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "42"],
|
||||
["number", "3.14159"],
|
||||
["number", "3e10"],
|
||||
["number", "4.2E-5"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
48
dashboard-ui/bower_components/prism/tests/languages/applescript/operator_feature.test
vendored
Normal file
48
dashboard-ui/bower_components/prism/tests/languages/applescript/operator_feature.test
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
& = ≠ ≤ ≥
|
||||
* + - / ÷ ^
|
||||
< <= > >=
|
||||
|
||||
start with begin with end with
|
||||
starts with begins with ends with
|
||||
does not contain doesn't contain
|
||||
contain contains
|
||||
is in isn't in is not in
|
||||
is contained by isn't contained by is not contained by
|
||||
greater than greater than or equal greater than or equal to
|
||||
less than less than or equal less than or equal to
|
||||
does not come before doesn't come before comes before
|
||||
does not come after doesn't come after comes after
|
||||
is equal isn't equal is not equal
|
||||
is equal to isn't equal to is not equal to
|
||||
does not equal doesn't equal equals
|
||||
isn't is not
|
||||
ref a ref to a reference to
|
||||
and or div mod as not
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["operator", "&"], ["operator", "="], ["operator", "≠"], ["operator", "≤"], ["operator", "≥"],
|
||||
["operator", "*"], ["operator", "+"], ["operator", "-"], ["operator", "/"], ["operator", "÷"], ["operator", "^"],
|
||||
["operator", "<"], ["operator", "<="], ["operator", ">"], ["operator", ">="],
|
||||
["operator", "start with"], ["operator", "begin with"], ["operator", "end with"],
|
||||
["operator", "starts with"], ["operator", "begins with"], ["operator", "ends with"],
|
||||
["operator", "does not contain"], ["operator", "doesn't contain"],
|
||||
["operator", "contain"], ["operator", "contains"],
|
||||
["operator", "is in"], ["operator", "isn't in"], ["operator", "is not in"],
|
||||
["operator", "is contained by"], ["operator", "isn't contained by"], ["operator", "is not contained by"],
|
||||
["operator", "greater than"], ["operator", "greater than or equal"], ["operator", "greater than or equal to"],
|
||||
["operator", "less than"], ["operator", "less than or equal"], ["operator", "less than or equal to"],
|
||||
["operator", "does not come before"], ["operator", "doesn't come before"], ["operator", "comes before"],
|
||||
["operator", "does not come after"], ["operator", "doesn't come after"], ["operator", "comes after"],
|
||||
["operator", "is equal"], ["operator", "isn't equal"], ["operator", "is not equal"],
|
||||
["operator", "is equal to"], ["operator", "isn't equal to"], ["operator", "is not equal to"],
|
||||
["operator", "does not equal"], ["operator", "doesn't equal"], ["operator", "equals"],
|
||||
["operator", "isn't"], ["operator", "is not"],
|
||||
["operator", "ref"], ["operator", "a ref to"], ["operator", "a reference to"],
|
||||
["operator", "and"], ["operator", "or"], ["operator", "div"], ["operator", "mod"], ["operator", "as"], ["operator", "not"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for most of the operators.
|
13
dashboard-ui/bower_components/prism/tests/languages/applescript/string_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/applescript/string_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
""
|
||||
"foo bar"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "\"\""],
|
||||
["string", "\"foo bar\""]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
19
dashboard-ui/bower_components/prism/tests/languages/asciidoc/admonition_feature.test
vendored
Normal file
19
dashboard-ui/bower_components/prism/tests/languages/asciidoc/admonition_feature.test
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
TIP: Foobar
|
||||
NOTE: Foo bar baz
|
||||
IMPORTANT: Foobar
|
||||
WARNING: Foo bar baz
|
||||
CAUTION: Foobar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["admonition", "TIP:"], " Foobar\r\n",
|
||||
["admonition", "NOTE:"], " Foo bar baz\r\n",
|
||||
["admonition", "IMPORTANT:"], " Foobar\r\n",
|
||||
["admonition", "WARNING:"], " Foo bar baz\r\n",
|
||||
["admonition", "CAUTION:"], " Foobar"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for admonitions.
|
58
dashboard-ui/bower_components/prism/tests/languages/asciidoc/attribute-entry_feature.test
vendored
Normal file
58
dashboard-ui/bower_components/prism/tests/languages/asciidoc/attribute-entry_feature.test
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
:Foo bar: baz
|
||||
|
||||
:Foobar: Foo +
|
||||
bar +
|
||||
baz
|
||||
|
||||
:Foo bar!:
|
||||
:Foobar!:
|
||||
|
||||
=====
|
||||
:Foo bar: baz
|
||||
|
||||
:Foobar: Foo +
|
||||
bar +
|
||||
baz
|
||||
|
||||
:Foo bar!:
|
||||
:Foobar!:
|
||||
=====
|
||||
|
||||
|=====
|
||||
|
|
||||
:Foo bar: baz
|
||||
|
||||
:Foobar: Foo +
|
||||
bar +
|
||||
baz
|
||||
|=====
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["attribute-entry", ":Foo bar: baz"],
|
||||
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
|
||||
["attribute-entry", ":Foo bar!:"],
|
||||
["attribute-entry", ":Foobar!:"],
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "====="],
|
||||
["attribute-entry", ":Foo bar: baz"],
|
||||
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
|
||||
["attribute-entry", ":Foo bar!:"],
|
||||
["attribute-entry", ":Foobar!:"],
|
||||
["punctuation", "====="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|====="],
|
||||
["punctuation", "|"],
|
||||
["attribute-entry", ":Foo bar: baz"],
|
||||
["attribute-entry", ":Foobar: Foo +\r\nbar +\r\nbaz"],
|
||||
["punctuation", "|====="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for attribute entries.
|
403
dashboard-ui/bower_components/prism/tests/languages/asciidoc/attributes_feature.test
vendored
Normal file
403
dashboard-ui/bower_components/prism/tests/languages/asciidoc/attributes_feature.test
vendored
Normal file
|
@ -0,0 +1,403 @@
|
|||
Foo [big red yellow-background]#obvious#
|
||||
|
||||
[float]
|
||||
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
|
||||
[quote,'"with *an* image" image:foo.png[] (TM)']
|
||||
|
||||
[NOTE]
|
||||
[icon="./images/icons/wink.png"]
|
||||
[icons=None, caption="My Special Note"]
|
||||
[start=7]
|
||||
|
||||
[cols="e,m,^,>s",width="25%"]
|
||||
|
||||
=====
|
||||
Foo [big red yellow-background]#obvious#
|
||||
|
||||
[float]
|
||||
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
|
||||
[quote,'"with *an* image" image:foo.png[] (TM)']
|
||||
|
||||
[NOTE]
|
||||
[icon="./images/icons/wink.png"]
|
||||
[icons=None, caption="My Special Note"]
|
||||
[start=7]
|
||||
|
||||
[cols="e,m,^,>s",width="25%"]
|
||||
=====
|
||||
|
||||
|=====
|
||||
|
|
||||
Foo [big red yellow-background]#obvious#
|
||||
|
||||
[float]
|
||||
[quote,'http://en.wikipedia.org/wiki/Samuel_Johnson[Samuel Johnson]']
|
||||
[quote,'"with *an* image" image:foo.png[] (TM)']
|
||||
|
||||
[NOTE]
|
||||
[icon="./images/icons/wink.png"]
|
||||
[icons=None, caption="My Special Note"]
|
||||
[start=7]
|
||||
|
||||
[cols="e,m,^,>s",width="25%"]
|
||||
|=====
|
||||
|
||||
|
||||
latexmath:[$C = \alpha + \beta Y^{\gamma} + \epsilon$]
|
||||
asciimath:[`x/x={(1,if x!=0),(text{undefined},if x=0):}`]
|
||||
latexmath:[$\sum_{n=1}^\infty \frac{1}{2^n}$]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"Foo ",
|
||||
["inline", [
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "big red yellow-background"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["punctuation", "#"], "obvious", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//en.wikipedia.org/wiki/Samuel_Johnson",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Samuel Johnson"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["entity", """],
|
||||
"with ",
|
||||
["inline", [
|
||||
["bold", [
|
||||
["punctuation", "*"], "an", ["punctuation", "*"]
|
||||
]]
|
||||
]],
|
||||
" image",
|
||||
["entity", """],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"foo.png",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["replacement", "(TM)"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icon"],
|
||||
["operator", "="],
|
||||
["string", "\"./images/icons/wink.png\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icons"],
|
||||
["operator", "="],
|
||||
["attr-value", "None"],
|
||||
["punctuation", ","],
|
||||
["variable", "caption"],
|
||||
["operator", "="],
|
||||
["string", "\"My Special Note\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "start"],
|
||||
["operator", "="],
|
||||
["attr-value", "7"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "cols"],
|
||||
["operator", "="],
|
||||
["string", "\"e,m,^,>s\""],
|
||||
["punctuation", ","],
|
||||
["variable", "width"],
|
||||
["operator", "="],
|
||||
["string", "\"25%\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "====="],
|
||||
|
||||
"\r\nFoo ",
|
||||
["inline", [
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "big red yellow-background"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["punctuation", "#"], "obvious", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//en.wikipedia.org/wiki/Samuel_Johnson",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Samuel Johnson"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["entity", """],
|
||||
"with ",
|
||||
["inline", [
|
||||
["bold", [
|
||||
["punctuation", "*"], "an", ["punctuation", "*"]
|
||||
]]
|
||||
]],
|
||||
" image",
|
||||
["entity", """],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"foo.png",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["replacement", "(TM)"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icon"],
|
||||
["operator", "="],
|
||||
["string", "\"./images/icons/wink.png\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icons"],
|
||||
["operator", "="],
|
||||
["attr-value", "None"],
|
||||
["punctuation", ","],
|
||||
["variable", "caption"],
|
||||
["operator", "="],
|
||||
["string", "\"My Special Note\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "start"],
|
||||
["operator", "="],
|
||||
["attr-value", "7"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "cols"],
|
||||
["operator", "="],
|
||||
["string", "\"e,m,^,>s\""],
|
||||
["punctuation", ","],
|
||||
["variable", "width"],
|
||||
["operator", "="],
|
||||
["string", "\"25%\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["punctuation", "====="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|====="],
|
||||
["punctuation", "|"],
|
||||
|
||||
"\r\nFoo ",
|
||||
["inline", [
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "big red yellow-background"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["punctuation", "#"], "obvious", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "float"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//en.wikipedia.org/wiki/Samuel_Johnson",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Samuel Johnson"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "quote"], ["punctuation", ","],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["entity", """],
|
||||
"with ",
|
||||
["inline", [
|
||||
["bold", [
|
||||
["punctuation", "*"], "an", ["punctuation", "*"]
|
||||
]]
|
||||
]],
|
||||
" image",
|
||||
["entity", """],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"foo.png",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["replacement", "(TM)"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["], ["attr-value", "NOTE"], ["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icon"],
|
||||
["operator", "="],
|
||||
["string", "\"./images/icons/wink.png\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "icons"],
|
||||
["operator", "="],
|
||||
["attr-value", "None"],
|
||||
["punctuation", ","],
|
||||
["variable", "caption"],
|
||||
["operator", "="],
|
||||
["string", "\"My Special Note\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "start"],
|
||||
["operator", "="],
|
||||
["attr-value", "7"],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "cols"],
|
||||
["operator", "="],
|
||||
["string", "\"e,m,^,>s\""],
|
||||
["punctuation", ","],
|
||||
["variable", "width"],
|
||||
["operator", "="],
|
||||
["string", "\"25%\""],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["punctuation", "|====="]
|
||||
]],
|
||||
|
||||
["macro", [
|
||||
["function", "latexmath"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["quoted", [
|
||||
["punctuation", "$"],
|
||||
"C = \\alpha + \\beta Y^{\\gamma} + \\epsilon",
|
||||
["punctuation", "$"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "asciimath"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["quoted", [
|
||||
["punctuation", "`"],
|
||||
"x/x={(1,if x!=0),(text{undefined},if x=0):}",
|
||||
["punctuation", "`"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "latexmath"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["quoted", [
|
||||
["punctuation", "$"],
|
||||
"\\sum_{n=1}^\\infty \\frac{1}{2^n}",
|
||||
["punctuation", "$"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for attributes.
|
34
dashboard-ui/bower_components/prism/tests/languages/asciidoc/callout_feature.test
vendored
Normal file
34
dashboard-ui/bower_components/prism/tests/languages/asciidoc/callout_feature.test
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
Foobar <1>
|
||||
<1> Foo
|
||||
1> Bar
|
||||
> Baz
|
||||
|
||||
|====
|
||||
| Foobar <1>
|
||||
<1> Foo
|
||||
1> Bar
|
||||
> Baz
|
||||
|====
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"Foobar ", ["callout", "<1>"],
|
||||
["callout", "<1>"], " Foo\r\n",
|
||||
["callout", "1>"], " Bar\r\n",
|
||||
["callout", ">"], " Baz\r\n\r\n",
|
||||
|
||||
["table", [
|
||||
["punctuation", "|===="],
|
||||
["punctuation", "|"],
|
||||
" Foobar ", ["callout", "<1>"],
|
||||
["callout", "<1>"], " Foo\r\n",
|
||||
["callout", "1>"], " Bar\r\n",
|
||||
["callout", ">"], " Baz\r\n",
|
||||
["punctuation", "|===="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for callouts.
|
19
dashboard-ui/bower_components/prism/tests/languages/asciidoc/comment-block_feature.test
vendored
Normal file
19
dashboard-ui/bower_components/prism/tests/languages/asciidoc/comment-block_feature.test
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
////
|
||||
////
|
||||
|
||||
////
|
||||
Foobar
|
||||
|
||||
Baz
|
||||
////
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment-block", "////\r\n////"],
|
||||
["comment-block", "////\r\nFoobar\r\n\r\nBaz\r\n////"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comment blocks.
|
41
dashboard-ui/bower_components/prism/tests/languages/asciidoc/comment_feature.test
vendored
Normal file
41
dashboard-ui/bower_components/prism/tests/languages/asciidoc/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
//
|
||||
// Foobar
|
||||
|
||||
******
|
||||
//
|
||||
// Foobar
|
||||
******
|
||||
|
||||
|======
|
||||
|
|
||||
//
|
||||
|
|
||||
// Foobar
|
||||
|======
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "//"],
|
||||
["comment", "// Foobar"],
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "******"],
|
||||
["comment", "//"],
|
||||
["comment", "// Foobar"],
|
||||
["punctuation", "******"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|======"],
|
||||
["punctuation", "|"],
|
||||
["comment", "//"],
|
||||
["punctuation", "|"],
|
||||
["comment", "// Foobar"],
|
||||
["punctuation", "|======"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
48
dashboard-ui/bower_components/prism/tests/languages/asciidoc/entity_feature.test
vendored
Normal file
48
dashboard-ui/bower_components/prism/tests/languages/asciidoc/entity_feature.test
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
➊ ¶
|
||||
|
||||
➊ ¶
|
||||
============
|
||||
|
||||
['➊ ¶']
|
||||
|
||||
--
|
||||
➊ ¶
|
||||
--
|
||||
|
||||
|======
|
||||
| ➊ ¶
|
||||
|======
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["title", [
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["punctuation", "============"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "--"],
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["punctuation", "--"]
|
||||
]],
|
||||
["table", [
|
||||
["punctuation", "|======"],
|
||||
["punctuation", "|"],
|
||||
["entity", "➊"], ["entity", "¶"],
|
||||
["punctuation", "|======"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for entities.
|
14
dashboard-ui/bower_components/prism/tests/languages/asciidoc/hr_feature.test
vendored
Normal file
14
dashboard-ui/bower_components/prism/tests/languages/asciidoc/hr_feature.test
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
'''
|
||||
|
||||
''''''''''
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["hr", "'''"],
|
||||
["hr", "''''''''''"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for hr.
|
28
dashboard-ui/bower_components/prism/tests/languages/asciidoc/indented-block_feature.test
vendored
Normal file
28
dashboard-ui/bower_components/prism/tests/languages/asciidoc/indented-block_feature.test
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
.
|
||||
|
||||
(TM) __foobar__
|
||||
:bar: baz
|
||||
|
||||
Foo *bar* baz
|
||||
// Foobar
|
||||
== Foobar ==
|
||||
|
||||
Title
|
||||
~~~~~
|
||||
.....
|
||||
.....
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
".\r\n\r\n",
|
||||
["indented-block", "\t(TM) __foobar__\r\n\t:bar: baz"],
|
||||
["indented-block", " Foo *bar* baz\r\n // Foobar\r\n == Foobar =="],
|
||||
["indented-block", " Title\r\n ~~~~~\r\n .....\r\n ....."]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for indented blocks.
|
||||
Also checks that nothing gets highlighted inside.
|
||||
The initial dot is required because tests are trimmed.
|
521
dashboard-ui/bower_components/prism/tests/languages/asciidoc/inline_feature.test
vendored
Normal file
521
dashboard-ui/bower_components/prism/tests/languages/asciidoc/inline_feature.test
vendored
Normal file
|
@ -0,0 +1,521 @@
|
|||
_emphasis_
|
||||
``double quotes''
|
||||
`single quotes'
|
||||
`monospace`
|
||||
'emphasis'
|
||||
*strong*
|
||||
+monospace+
|
||||
#unquoted#
|
||||
|
||||
_foo _ bar baz_
|
||||
`foo ' bar baz'
|
||||
`foo ` bar baz`
|
||||
'foo ' bar baz'
|
||||
*foo * bar baz*
|
||||
+foo + bar baz+
|
||||
#foo # bar baz#
|
||||
|
||||
_foo
|
||||
bar_
|
||||
``foo
|
||||
bar''
|
||||
`foo
|
||||
bar'
|
||||
`foo
|
||||
bar`
|
||||
'foo
|
||||
bar'
|
||||
*foo
|
||||
bar*
|
||||
+foo
|
||||
bar+
|
||||
#foo
|
||||
bar#
|
||||
|
||||
foo__emphasis__bar
|
||||
foo**strong**bar
|
||||
foo++monospace++bar
|
||||
foo+++passthrough+++bar
|
||||
foo##unquoted##bar
|
||||
foo$$passthrough$$bar
|
||||
foo~subscript~bar
|
||||
foo^superscript^bar
|
||||
foo{attribute-reference}bar
|
||||
foo[[anchor]]bar
|
||||
foo[[[bibliography anchor]]]bar
|
||||
foo<<xref>>bar
|
||||
foo(((indexes)))bar
|
||||
foo((indexes))bar
|
||||
|
||||
====
|
||||
_emphasis_
|
||||
``double quotes''
|
||||
`single quotes'
|
||||
`monospace`
|
||||
'emphasis'
|
||||
*strong*
|
||||
+monospace+
|
||||
#unquoted#
|
||||
__emphasis__
|
||||
**strong**
|
||||
++monospace++
|
||||
+++passthrough+++
|
||||
##unquoted##
|
||||
$$passthrough$$
|
||||
~subscript~
|
||||
^superscript^
|
||||
{attribute-reference}
|
||||
[[anchor]]
|
||||
[[[bibliography anchor]]]
|
||||
<<xref>>
|
||||
(((indexes)))
|
||||
((indexes))
|
||||
====
|
||||
|
||||
|====
|
||||
|
|
||||
_emphasis_
|
||||
``double quotes''
|
||||
`single quotes'
|
||||
`monospace`
|
||||
'emphasis'
|
||||
*strong*
|
||||
+monospace+
|
||||
#unquoted#
|
||||
__emphasis__
|
||||
**strong**
|
||||
++monospace++
|
||||
+++passthrough+++
|
||||
##unquoted##
|
||||
$$passthrough$$
|
||||
~subscript~
|
||||
^superscript^
|
||||
{attribute-reference}
|
||||
[[anchor]]
|
||||
[[[bibliography anchor]]]
|
||||
<<xref>>
|
||||
(((indexes)))
|
||||
((indexes))
|
||||
|====
|
||||
|
||||
['foo *bar* baz']
|
||||
|
||||
== foo *bar* baz ==
|
||||
|
||||
{names=value}
|
||||
{names?value}
|
||||
{names!value}
|
||||
{names#value}
|
||||
{names%value}
|
||||
{names@regexp:value1:value2}
|
||||
{names$regexp:value1:value2}
|
||||
{names$regexp::value}
|
||||
{foo,bar=foobar}
|
||||
{foo+bar=foobar}
|
||||
{counter:attrname}
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], "double quotes", ["punctuation", "''"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "single quotes", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "monospace", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "monospace", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "unquoted", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "foo _ bar baz", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "foo ' bar baz", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "foo ` bar baz", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "foo ' bar baz", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "foo * bar baz", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "foo + bar baz", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "foo # bar baz", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "foo\r\nbar", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], "foo\r\nbar", ["punctuation", "''"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "foo\r\nbar", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "foo\r\nbar", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "foo\r\nbar", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "foo\r\nbar", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "foo\r\nbar", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "foo\r\nbar", ["punctuation", "#"]
|
||||
]],
|
||||
|
||||
"\r\n\r\nfoo",
|
||||
["inline", [
|
||||
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "++"], "monospace", ["punctuation", "++"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "##"], "unquoted", ["punctuation", "##"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "~"], "subscript", ["punctuation", "~"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "^"], "superscript", ["punctuation", "^"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "((("], "indexes", ["punctuation", ")))"]
|
||||
]],
|
||||
"bar\r\nfoo",
|
||||
["inline", [
|
||||
["punctuation", "(("], "indexes", ["punctuation", "))"]
|
||||
]],
|
||||
"bar\r\n\r\n",
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "===="],
|
||||
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], "double quotes", ["punctuation", "''"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "single quotes", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "monospace", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "monospace", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "unquoted", ["punctuation", "#"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "++"], "monospace", ["punctuation", "++"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "##"], "unquoted", ["punctuation", "##"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "~"], "subscript", ["punctuation", "~"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "^"], "superscript", ["punctuation", "^"]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "((("], "indexes", ["punctuation", ")))"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "(("], "indexes", ["punctuation", "))"]
|
||||
]],
|
||||
|
||||
["punctuation", "===="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|===="],
|
||||
["punctuation", "|"],
|
||||
|
||||
["inline", [
|
||||
["italic", [["punctuation", "_"], "emphasis", ["punctuation", "_"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "``"], "double quotes", ["punctuation", "''"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "single quotes", ["punctuation", "'"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "`"], "monospace", ["punctuation", "`"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "'"], "emphasis", ["punctuation", "'"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "*"], "strong", ["punctuation", "*"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+"], "monospace", ["punctuation", "+"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "#"], "unquoted", ["punctuation", "#"]
|
||||
]],
|
||||
["inline", [
|
||||
["italic", [["punctuation", "__"], "emphasis", ["punctuation", "__"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["bold", [["punctuation", "**"], "strong", ["punctuation", "**"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "++"], "monospace", ["punctuation", "++"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "+++"], "passthrough", ["punctuation", "+++"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "##"], "unquoted", ["punctuation", "##"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "$$"], "passthrough", ["punctuation", "$$"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "~"], "subscript", ["punctuation", "~"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "^"], "superscript", ["punctuation", "^"]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [["punctuation", "{"], ["variable", "attribute-reference"], ["punctuation", "}"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "[["], "anchor", ["punctuation", "]]"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "[[["], "bibliography anchor", ["punctuation", "]]]"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["url", [["punctuation", "<<"], "xref", ["punctuation", ">>"]]]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "((("], "indexes", ["punctuation", ")))"]
|
||||
]],
|
||||
["inline", [
|
||||
["punctuation", "(("], "indexes", ["punctuation", "))"]
|
||||
]],
|
||||
|
||||
["punctuation", "|===="]
|
||||
]],
|
||||
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
"foo ", ["inline", [["bold", [["punctuation", "*"], "bar", ["punctuation", "*"]]]]], " baz",
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "=="],
|
||||
" foo ", ["inline", [["bold", [["punctuation", "*"], "bar", ["punctuation", "*"]]]]], " baz ",
|
||||
["punctuation", "=="]
|
||||
]],
|
||||
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "="],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "?"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "!"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "#"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "%"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "@"],
|
||||
"regexp", ["punctuation", ":"],
|
||||
"value1", ["punctuation", ":"],
|
||||
"value2",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "$"],
|
||||
"regexp", ["punctuation", ":"],
|
||||
"value1", ["punctuation", ":"],
|
||||
"value2",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "names"],
|
||||
["operator", "$"],
|
||||
"regexp", ["punctuation", "::"],
|
||||
"value",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "foo,bar"],
|
||||
["operator", "="],
|
||||
"foobar",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "foo+bar"],
|
||||
["operator", "="],
|
||||
"foobar",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]],
|
||||
["inline", [
|
||||
["attribute-ref", [
|
||||
["punctuation", "{"],
|
||||
["variable", "counter"],
|
||||
["punctuation", ":"],
|
||||
"attrname",
|
||||
["punctuation", "}"]
|
||||
]]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all kinds of inline quoted text.
|
18
dashboard-ui/bower_components/prism/tests/languages/asciidoc/line-continuation_feature.test
vendored
Normal file
18
dashboard-ui/bower_components/prism/tests/languages/asciidoc/line-continuation_feature.test
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
Foo +
|
||||
bar
|
||||
|
||||
* Foo
|
||||
+
|
||||
bar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
"Foo ", ["line-continuation", "+"], "\r\nbar\r\n\r\n",
|
||||
["list-punctuation", "*"], " Foo\r\n",
|
||||
["line-continuation", "+"], "\r\nbar"
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for line continuations.
|
73
dashboard-ui/bower_components/prism/tests/languages/asciidoc/list-label_feature.test
vendored
Normal file
73
dashboard-ui/bower_components/prism/tests/languages/asciidoc/list-label_feature.test
vendored
Normal file
|
@ -0,0 +1,73 @@
|
|||
In::
|
||||
Lorem::
|
||||
Foo bar baz
|
||||
Dolor:::
|
||||
Ipsum::::
|
||||
Donec;;
|
||||
Foobar
|
||||
|
||||
____
|
||||
In::
|
||||
Lorem::
|
||||
Foo bar baz
|
||||
Dolor:::
|
||||
Ipsum::::
|
||||
Donec;;
|
||||
Foobar
|
||||
____
|
||||
|
||||
|========
|
||||
|
|
||||
In::
|
||||
Lorem::
|
||||
Foo bar baz
|
||||
Dolor:::
|
||||
Ipsum::::
|
||||
Donec;;
|
||||
Foobar
|
||||
|========
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["list-label", "In::"],
|
||||
["list-label", "Lorem::"],
|
||||
"\r\n Foo bar baz\r\n",
|
||||
["list-label", "Dolor:::"],
|
||||
["list-label", "Ipsum::::"],
|
||||
["list-label", "Donec;;"],
|
||||
"\r\n Foobar\r\n\r\n",
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "____"],
|
||||
|
||||
["list-label", "In::"],
|
||||
["list-label", "Lorem::"],
|
||||
"\r\n Foo bar baz\r\n",
|
||||
["list-label", "Dolor:::"],
|
||||
["list-label", "Ipsum::::"],
|
||||
["list-label", "Donec;;"],
|
||||
"\r\n Foobar\r\n",
|
||||
|
||||
["punctuation", "____"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|========"],
|
||||
["punctuation", "|"],
|
||||
|
||||
["list-label", "In::"],
|
||||
["list-label", "Lorem::"],
|
||||
"\r\n Foo bar baz\r\n",
|
||||
["list-label", "Dolor:::"],
|
||||
["list-label", "Ipsum::::"],
|
||||
["list-label", "Donec;;"],
|
||||
"\r\n Foobar\r\n",
|
||||
|
||||
["punctuation", "|========"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for list labels.
|
77
dashboard-ui/bower_components/prism/tests/languages/asciidoc/list-punctuation_feature.test
vendored
Normal file
77
dashboard-ui/bower_components/prism/tests/languages/asciidoc/list-punctuation_feature.test
vendored
Normal file
|
@ -0,0 +1,77 @@
|
|||
- Foo
|
||||
* Foo
|
||||
** Foo bar
|
||||
*** Foo
|
||||
1. Foo
|
||||
2. Foo bar
|
||||
42. Foo
|
||||
**** Foo
|
||||
***** Foo bar
|
||||
|
||||
. Foo
|
||||
.. Foo
|
||||
a. Foo
|
||||
b. Foo
|
||||
z. Foo
|
||||
... Foo bar
|
||||
.... Foo
|
||||
i) Foo
|
||||
vi) Bar
|
||||
xxvii) Baz
|
||||
..... Foo
|
||||
|
||||
____
|
||||
. 1
|
||||
.. 2
|
||||
____
|
||||
|
||||
|===
|
||||
|
|
||||
xi) a
|
||||
xii) b
|
||||
|===
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["list-punctuation", "-"], " Foo\r\n",
|
||||
["list-punctuation", "*"], " Foo\r\n",
|
||||
["list-punctuation", "**"], " Foo bar\r\n",
|
||||
["list-punctuation", "***"], " Foo\r\n\t",
|
||||
["list-punctuation", "1."], " Foo\r\n\t",
|
||||
["list-punctuation", "2."], " Foo bar\r\n\t",
|
||||
["list-punctuation", "42."], " Foo\r\n",
|
||||
["list-punctuation", "****"], " Foo\r\n",
|
||||
["list-punctuation", "*****"], " Foo bar\r\n\r\n",
|
||||
|
||||
["list-punctuation", "."], " Foo\r\n",
|
||||
["list-punctuation", ".."], " Foo\r\n ",
|
||||
["list-punctuation", "a."], " Foo\r\n ",
|
||||
["list-punctuation", "b."], " Foo\r\n ",
|
||||
["list-punctuation", "z."], " Foo\r\n",
|
||||
["list-punctuation", "..."], " Foo bar\r\n",
|
||||
["list-punctuation", "...."], " Foo\r\n\t",
|
||||
["list-punctuation", "i)"], " Foo\r\n\t",
|
||||
["list-punctuation", "vi)"], " Bar\r\n\t",
|
||||
["list-punctuation", "xxvii)"], " Baz\r\n",
|
||||
["list-punctuation", "....."], " Foo\r\n\r\n",
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "____"],
|
||||
["list-punctuation", "."], " 1\r\n",
|
||||
["list-punctuation", ".."], " 2\r\n",
|
||||
["punctuation", "____"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|==="],
|
||||
["punctuation", "|"],
|
||||
["list-punctuation", "xi)"], " a\r\n",
|
||||
["list-punctuation", "xii)"], " b\r\n",
|
||||
["punctuation", "|==="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for list punctuation.
|
46
dashboard-ui/bower_components/prism/tests/languages/asciidoc/literal-block_feature.test
vendored
Normal file
46
dashboard-ui/bower_components/prism/tests/languages/asciidoc/literal-block_feature.test
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
----
|
||||
== Foobar ==
|
||||
Bar _baz_ (TM) <1>
|
||||
* Foo <2>
|
||||
<1> Foobar
|
||||
2> Baz
|
||||
----
|
||||
|
||||
.......
|
||||
.Foo
|
||||
. Foobar <1>
|
||||
include::addendum.txt <2>
|
||||
> Foo
|
||||
> Bar
|
||||
__Foo__**bar**{baz}
|
||||
.......
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["literal-block", [
|
||||
["punctuation", "----"],
|
||||
"\r\n== Foobar ==\r\nBar _baz_ (TM) ",
|
||||
["callout", "<1>"],
|
||||
"\r\n* Foo ",
|
||||
["callout", "<2>"],
|
||||
["callout", "<1>"], " Foobar\r\n",
|
||||
["callout", "2>"], " Baz\r\n",
|
||||
["punctuation", "----"]
|
||||
]],
|
||||
["literal-block", [
|
||||
["punctuation", "......."],
|
||||
"\r\n.Foo\r\n. Foobar ",
|
||||
["callout", "<1>"],
|
||||
"\r\ninclude::addendum.txt ",
|
||||
["callout", "<2>"],
|
||||
["callout", ">"], " Foo\r\n",
|
||||
["callout", ">"], " Bar\r\n__Foo__**bar**{baz}\r\n",
|
||||
["punctuation", "......."]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for literal blocks and listing blocks.
|
||||
Also checks that nothing gets highlighted inside expect callouts.
|
250
dashboard-ui/bower_components/prism/tests/languages/asciidoc/macro_feature.test
vendored
Normal file
250
dashboard-ui/bower_components/prism/tests/languages/asciidoc/macro_feature.test
vendored
Normal file
|
@ -0,0 +1,250 @@
|
|||
footnote:[An example footnote.]
|
||||
indexterm:[Tigers,Big cats]
|
||||
|
||||
http://www.docbook.org/[DocBook.org]
|
||||
include::chapt1.txt[tabsize=2]
|
||||
mailto:srackham@gmail.com[]
|
||||
|
||||
image:screen-thumbnail.png[height=32,link="screen.png"]
|
||||
|
||||
== Foo image:foo.jpg[] ==
|
||||
|
||||
--
|
||||
footnote:[An example footnote.]
|
||||
indexterm:[Tigers,Big cats]
|
||||
|
||||
http://www.docbook.org/[DocBook.org]
|
||||
include::chapt1.txt[tabsize=2]
|
||||
mailto:srackham@gmail.com[]
|
||||
|
||||
image:screen-thumbnail.png[height=32,link="screen.png"]
|
||||
--
|
||||
|
||||
|====
|
||||
|
|
||||
footnote:[An example footnote.]
|
||||
indexterm:[Tigers,Big cats]
|
||||
|
||||
http://www.docbook.org/[DocBook.org]
|
||||
include::chapt1.txt[tabsize=2]
|
||||
mailto:srackham@gmail.com[]
|
||||
|
||||
image:screen-thumbnail.png[height=32,link="screen.png"]
|
||||
|====
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["macro", [
|
||||
["function", "footnote"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "An example footnote."],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "indexterm"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Tigers"],
|
||||
["punctuation", ","],
|
||||
["attr-value", "Big cats"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//www.docbook.org/",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "DocBook.org"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "include"], ["punctuation", "::"],
|
||||
"chapt1.txt",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "tabsize"],
|
||||
["operator", "="],
|
||||
["attr-value", "2"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "mailto"], ["punctuation", ":"],
|
||||
"srackham@gmail.com",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"screen-thumbnail.png",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "height"],
|
||||
["operator", "="],
|
||||
["attr-value", "32"],
|
||||
["punctuation", ","],
|
||||
["variable", "link"],
|
||||
["operator", "="],
|
||||
["string", "\"screen.png\""],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "=="],
|
||||
" Foo ",
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"foo.jpg",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "=="]
|
||||
]],
|
||||
|
||||
["other-block", [
|
||||
["punctuation", "--"],
|
||||
|
||||
["macro", [
|
||||
["function", "footnote"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "An example footnote."],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "indexterm"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Tigers"],
|
||||
["punctuation", ","],
|
||||
["attr-value", "Big cats"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//www.docbook.org/",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "DocBook.org"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "include"], ["punctuation", "::"],
|
||||
"chapt1.txt",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "tabsize"],
|
||||
["operator", "="],
|
||||
["attr-value", "2"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "mailto"], ["punctuation", ":"],
|
||||
"srackham@gmail.com",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"screen-thumbnail.png",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "height"],
|
||||
["operator", "="],
|
||||
["attr-value", "32"],
|
||||
["punctuation", ","],
|
||||
["variable", "link"],
|
||||
["operator", "="],
|
||||
["string", "\"screen.png\""],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["punctuation", "--"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|===="],
|
||||
["punctuation", "|"],
|
||||
|
||||
["macro", [
|
||||
["function", "footnote"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "An example footnote."],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "indexterm"], ["punctuation", ":"],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "Tigers"],
|
||||
["punctuation", ","],
|
||||
["attr-value", "Big cats"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "http"], ["punctuation", ":"],
|
||||
"//www.docbook.org/",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["attr-value", "DocBook.org"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "include"], ["punctuation", "::"],
|
||||
"chapt1.txt",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "tabsize"],
|
||||
["operator", "="],
|
||||
["attr-value", "2"],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "mailto"], ["punctuation", ":"],
|
||||
"srackham@gmail.com",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["macro", [
|
||||
["function", "image"], ["punctuation", ":"],
|
||||
"screen-thumbnail.png",
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["variable", "height"],
|
||||
["operator", "="],
|
||||
["attr-value", "32"],
|
||||
["punctuation", ","],
|
||||
["variable", "link"],
|
||||
["operator", "="],
|
||||
["string", "\"screen.png\""],
|
||||
["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
|
||||
["punctuation", "|===="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for macros.
|
45
dashboard-ui/bower_components/prism/tests/languages/asciidoc/other-block_feature.test
vendored
Normal file
45
dashboard-ui/bower_components/prism/tests/languages/asciidoc/other-block_feature.test
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
****
|
||||
Sidebar block <1>
|
||||
****
|
||||
|
||||
______
|
||||
Quote block <2>
|
||||
______
|
||||
|
||||
========
|
||||
Example block <3>
|
||||
========
|
||||
|
||||
--
|
||||
Open block <4>
|
||||
--
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["other-block", [
|
||||
["punctuation", "****"],
|
||||
"\r\nSidebar block <1>\r\n",
|
||||
["punctuation", "****"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "______"],
|
||||
"\r\nQuote block <2>\r\n",
|
||||
["punctuation", "______"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "========"],
|
||||
"\r\nExample block <3>\r\n",
|
||||
["punctuation", "========"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "--"],
|
||||
"\r\nOpen block <4>\r\n",
|
||||
["punctuation", "--"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for sidebar blocks, quote blocks, example blocks and open blocks.
|
||||
Also checks that callouts are not highlighted.
|
14
dashboard-ui/bower_components/prism/tests/languages/asciidoc/page-break_feature.test
vendored
Normal file
14
dashboard-ui/bower_components/prism/tests/languages/asciidoc/page-break_feature.test
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
<<<
|
||||
|
||||
<<<<<<<<<<<<<
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["page-break", "<<<"],
|
||||
["page-break", "<<<<<<<<<<<<<"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for page breaks.
|
29
dashboard-ui/bower_components/prism/tests/languages/asciidoc/passthrough-block_feature.test
vendored
Normal file
29
dashboard-ui/bower_components/prism/tests/languages/asciidoc/passthrough-block_feature.test
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
++++
|
||||
.Fo__o__bar *baz*
|
||||
Fo(((o)))bar baz
|
||||
* Foobar baz
|
||||
include::addendum.txt[]
|
||||
++++
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["passthrough-block", [
|
||||
["punctuation", "++++"],
|
||||
"\r\n.Fo__o__bar *baz*\r\nFo(((o)))bar baz\r\n* Foobar baz\r\n",
|
||||
["macro", [
|
||||
["function", "include"],
|
||||
["punctuation", "::"],
|
||||
"addendum.txt",
|
||||
["attributes", [
|
||||
["punctuation", "["], ["punctuation", "]"]
|
||||
]]
|
||||
]],
|
||||
["punctuation", "++++"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for passthrough blocks.
|
||||
Also checks that nothing gets highlighted inside expect macros.
|
48
dashboard-ui/bower_components/prism/tests/languages/asciidoc/replacement_feature.test
vendored
Normal file
48
dashboard-ui/bower_components/prism/tests/languages/asciidoc/replacement_feature.test
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
(C) (TM) (R)
|
||||
|
||||
(C) (TM) (R)
|
||||
============
|
||||
|
||||
['(C) (TM) (R)']
|
||||
|
||||
--
|
||||
(C) (TM) (R)
|
||||
--
|
||||
|
||||
|======
|
||||
| (C) (TM) (R)
|
||||
|======
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["title", [
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["punctuation", "============"]
|
||||
]],
|
||||
["attributes", [
|
||||
["punctuation", "["],
|
||||
["interpreted", [
|
||||
["punctuation", "'"],
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["punctuation", "'"]
|
||||
]],
|
||||
["punctuation", "]"]
|
||||
]],
|
||||
["other-block", [
|
||||
["punctuation", "--"],
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["punctuation", "--"]
|
||||
]],
|
||||
["table", [
|
||||
["punctuation", "|======"],
|
||||
["punctuation", "|"],
|
||||
["replacement", "(C)"], ["replacement", "(TM)"], ["replacement", "(R)"],
|
||||
["punctuation", "|======"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for replacements.
|
61
dashboard-ui/bower_components/prism/tests/languages/asciidoc/table_feature.test
vendored
Normal file
61
dashboard-ui/bower_components/prism/tests/languages/asciidoc/table_feature.test
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
|===
|
||||
|1
|
||||
|===
|
||||
|
||||
|============================
|
||||
|1 >s|2 |3 |4
|
||||
^|5 2.2+^.^|6 .3+<.>m|7
|
||||
2*^|8
|
||||
|9 2+>|10
|
||||
|============================
|
||||
|
||||
|==============================================
|
||||
|Normal cell
|
||||
|
||||
|Cell with nested table
|
||||
|
||||
!==============================================
|
||||
!Nested table cell 1 !Nested table cell 2
|
||||
!==============================================
|
||||
|
||||
|==============================================
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["table", [
|
||||
["punctuation", "|==="],
|
||||
["punctuation", "|"], "1\r\n",
|
||||
["punctuation", "|==="]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|============================"],
|
||||
["punctuation", "|"], "1 ",
|
||||
["specifiers", ">s"], ["punctuation", "|"], "2 ",
|
||||
["punctuation", "|"], "3 ",
|
||||
["punctuation", "|"], "4\r\n",
|
||||
["specifiers", "^"], ["punctuation", "|"], "5 ",
|
||||
["specifiers", "2.2+^.^"], ["punctuation", "|"], "6 ",
|
||||
["specifiers", ".3+<.>m"], ["punctuation", "|"], "7\r\n",
|
||||
["specifiers", "2*^"], ["punctuation", "|"], "8\r\n",
|
||||
["punctuation", "|"], "9 ",
|
||||
["specifiers", "2+>"], ["punctuation", "|"], "10\r\n",
|
||||
["punctuation", "|============================"]
|
||||
]],
|
||||
|
||||
["table", [
|
||||
["punctuation", "|=============================================="],
|
||||
["punctuation", "|"], "Normal cell\r\n\r\n",
|
||||
["punctuation", "|"], "Cell with nested table\r\n\r\n",
|
||||
["punctuation", "!=============================================="],
|
||||
["punctuation", "!"], "Nested table cell 1 ",
|
||||
["punctuation", "!"], "Nested table cell 2\r\n",
|
||||
["punctuation", "!=============================================="],
|
||||
["punctuation", "|=============================================="]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for tables.
|
80
dashboard-ui/bower_components/prism/tests/languages/asciidoc/title_feature.test
vendored
Normal file
80
dashboard-ui/bower_components/prism/tests/languages/asciidoc/title_feature.test
vendored
Normal file
|
@ -0,0 +1,80 @@
|
|||
Foobar
|
||||
======
|
||||
|
||||
Foobar
|
||||
------
|
||||
|
||||
Foobar
|
||||
~~~~~~
|
||||
|
||||
Foobar
|
||||
^^^^^^
|
||||
|
||||
Foo
|
||||
+++
|
||||
|
||||
= Foo bar baz =
|
||||
== Foo bar baz
|
||||
=== Foo bar baz ===
|
||||
==== Foo bar baz
|
||||
===== Foo bar baz =====
|
||||
|
||||
.Foo bar baz
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["title", [
|
||||
"Foobar\r\n",
|
||||
["punctuation", "======"]
|
||||
]],
|
||||
["title", [
|
||||
"Foobar\r\n",
|
||||
["punctuation", "------"]
|
||||
]],
|
||||
["title", [
|
||||
"Foobar\r\n",
|
||||
["punctuation", "~~~~~~"]
|
||||
]],
|
||||
["title", [
|
||||
"Foobar\r\n",
|
||||
["punctuation", "^^^^^^"]
|
||||
]],
|
||||
["title", [
|
||||
"Foo\r\n",
|
||||
["punctuation", "+++"]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "="],
|
||||
" Foo bar baz ",
|
||||
["punctuation", "="]
|
||||
]],
|
||||
["title", [
|
||||
["punctuation", "=="],
|
||||
" Foo bar baz"
|
||||
]],
|
||||
["title", [
|
||||
["punctuation", "==="],
|
||||
" Foo bar baz ",
|
||||
["punctuation", "==="]
|
||||
]],
|
||||
["title", [
|
||||
["punctuation", "===="],
|
||||
" Foo bar baz"
|
||||
]],
|
||||
["title", [
|
||||
["punctuation", "====="],
|
||||
" Foo bar baz ",
|
||||
["punctuation", "====="]
|
||||
]],
|
||||
|
||||
["title", [
|
||||
["punctuation", "."],
|
||||
"Foo bar baz"
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for titles.
|
16
dashboard-ui/bower_components/prism/tests/languages/aspnet/comment_feature.test
vendored
Normal file
16
dashboard-ui/bower_components/prism/tests/languages/aspnet/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
<%----%>
|
||||
<%--foo--%>
|
||||
<%-- foo
|
||||
bar --%>
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["asp comment", "<%----%>"],
|
||||
["asp comment", "<%--foo--%>"],
|
||||
["asp comment", "<%-- foo\r\nbar --%>"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
92
dashboard-ui/bower_components/prism/tests/languages/aspnet/page-directive_feature.test
vendored
Normal file
92
dashboard-ui/bower_components/prism/tests/languages/aspnet/page-directive_feature.test
vendored
Normal file
|
@ -0,0 +1,92 @@
|
|||
<%@Assembly foo="bar"%>
|
||||
<% @Control foo="bar" %>
|
||||
<%@ Implements%>
|
||||
<%@Import%>
|
||||
<%@Master%>
|
||||
<%@MasterType%>
|
||||
<%@OutputCache%>
|
||||
<%@Page%>
|
||||
<%@PreviousPageType%>
|
||||
<%@Reference%>
|
||||
<%@Register%>
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@Assembly"],
|
||||
["attr-name", [
|
||||
"foo"
|
||||
]],
|
||||
["attr-value", [
|
||||
["punctuation", "="],
|
||||
["punctuation", "\""],
|
||||
"bar",
|
||||
["punctuation", "\""]
|
||||
]],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<% @Control"],
|
||||
["attr-name", [
|
||||
"foo"
|
||||
]],
|
||||
["attr-value", [
|
||||
["punctuation", "="],
|
||||
["punctuation", "\""],
|
||||
"bar",
|
||||
["punctuation", "\""]
|
||||
]],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@ Implements"],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@Import"],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@Master"],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@MasterType"],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@OutputCache"],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@Page"],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@PreviousPageType"],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@Reference"],
|
||||
["page-directive tag", "%>"]
|
||||
]],
|
||||
|
||||
["page-directive tag", [
|
||||
["page-directive tag", "<%@Register"],
|
||||
["page-directive tag", "%>"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all page directives.
|
13
dashboard-ui/bower_components/prism/tests/languages/autohotkey/boolean_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/autohotkey/boolean_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
true
|
||||
false
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["boolean", "true"],
|
||||
["boolean", "false"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for booleans
|
147
dashboard-ui/bower_components/prism/tests/languages/autohotkey/builtin_feature.test
vendored
Normal file
147
dashboard-ui/bower_components/prism/tests/languages/autohotkey/builtin_feature.test
vendored
Normal file
|
@ -0,0 +1,147 @@
|
|||
abs
|
||||
acos
|
||||
asc
|
||||
asin
|
||||
atan
|
||||
ceil
|
||||
chr
|
||||
class
|
||||
cos
|
||||
dllcall
|
||||
exp
|
||||
fileexist
|
||||
Fileopen
|
||||
floor
|
||||
il_add
|
||||
il_create
|
||||
il_destroy
|
||||
instr
|
||||
substr
|
||||
isfunc
|
||||
islabel
|
||||
IsObject
|
||||
ln
|
||||
log
|
||||
lv_add
|
||||
lv_delete
|
||||
lv_deletecol
|
||||
lv_getcount
|
||||
lv_getnext
|
||||
lv_gettext
|
||||
lv_insert
|
||||
lv_insertcol
|
||||
lv_modify
|
||||
lv_modifycol
|
||||
lv_setimagelist
|
||||
mod
|
||||
onmessage
|
||||
numget
|
||||
numput
|
||||
registercallback
|
||||
regexmatch
|
||||
regexreplace
|
||||
round
|
||||
sin
|
||||
tan
|
||||
sqrt
|
||||
strlen
|
||||
sb_seticon
|
||||
sb_setparts
|
||||
sb_settext
|
||||
strsplit
|
||||
tv_add
|
||||
tv_delete
|
||||
tv_getchild
|
||||
tv_getcount
|
||||
tv_getnext
|
||||
tv_get
|
||||
tv_getparent
|
||||
tv_getprev
|
||||
tv_getselection
|
||||
tv_gettext
|
||||
tv_modify
|
||||
varsetcapacity
|
||||
winactive
|
||||
winexist
|
||||
__New
|
||||
__Call
|
||||
__Get
|
||||
__Set
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["builtin", "abs"],
|
||||
["builtin", "acos"],
|
||||
["builtin", "asc"],
|
||||
["builtin", "asin"],
|
||||
["builtin", "atan"],
|
||||
["builtin", "ceil"],
|
||||
["builtin", "chr"],
|
||||
["builtin", "class"],
|
||||
["builtin", "cos"],
|
||||
["builtin", "dllcall"],
|
||||
["builtin", "exp"],
|
||||
["builtin", "fileexist"],
|
||||
["builtin", "Fileopen"],
|
||||
["builtin", "floor"],
|
||||
["builtin", "il_add"],
|
||||
["builtin", "il_create"],
|
||||
["builtin", "il_destroy"],
|
||||
["builtin", "instr"],
|
||||
["builtin", "substr"],
|
||||
["builtin", "isfunc"],
|
||||
["builtin", "islabel"],
|
||||
["builtin", "IsObject"],
|
||||
["builtin", "ln"],
|
||||
["builtin", "log"],
|
||||
["builtin", "lv_add"],
|
||||
["builtin", "lv_delete"],
|
||||
["builtin", "lv_deletecol"],
|
||||
["builtin", "lv_getcount"],
|
||||
["builtin", "lv_getnext"],
|
||||
["builtin", "lv_gettext"],
|
||||
["builtin", "lv_insert"],
|
||||
["builtin", "lv_insertcol"],
|
||||
["builtin", "lv_modify"],
|
||||
["builtin", "lv_modifycol"],
|
||||
["builtin", "lv_setimagelist"],
|
||||
["builtin", "mod"],
|
||||
["builtin", "onmessage"],
|
||||
["builtin", "numget"],
|
||||
["builtin", "numput"],
|
||||
["builtin", "registercallback"],
|
||||
["builtin", "regexmatch"],
|
||||
["builtin", "regexreplace"],
|
||||
["builtin", "round"],
|
||||
["builtin", "sin"],
|
||||
["builtin", "tan"],
|
||||
["builtin", "sqrt"],
|
||||
["builtin", "strlen"],
|
||||
["builtin", "sb_seticon"],
|
||||
["builtin", "sb_setparts"],
|
||||
["builtin", "sb_settext"],
|
||||
["builtin", "strsplit"],
|
||||
["builtin", "tv_add"],
|
||||
["builtin", "tv_delete"],
|
||||
["builtin", "tv_getchild"],
|
||||
["builtin", "tv_getcount"],
|
||||
["builtin", "tv_getnext"],
|
||||
["builtin", "tv_get"],
|
||||
["builtin", "tv_getparent"],
|
||||
["builtin", "tv_getprev"],
|
||||
["builtin", "tv_getselection"],
|
||||
["builtin", "tv_gettext"],
|
||||
["builtin", "tv_modify"],
|
||||
["builtin", "varsetcapacity"],
|
||||
["builtin", "winactive"],
|
||||
["builtin", "winexist"],
|
||||
["builtin", "__New"],
|
||||
["builtin", "__Call"],
|
||||
["builtin", "__Get"],
|
||||
["builtin", "__Set"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all builtins.
|
13
dashboard-ui/bower_components/prism/tests/languages/autohotkey/comment_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/autohotkey/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
;foo
|
||||
; bar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", ";foo"],
|
||||
["comment", "; bar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
275
dashboard-ui/bower_components/prism/tests/languages/autohotkey/constant_feature.test
vendored
Normal file
275
dashboard-ui/bower_components/prism/tests/languages/autohotkey/constant_feature.test
vendored
Normal file
|
@ -0,0 +1,275 @@
|
|||
a_ahkpath
|
||||
a_ahkversion
|
||||
a_appdata
|
||||
a_appdatacommon
|
||||
a_autotrim
|
||||
a_batchlines
|
||||
a_caretx
|
||||
a_carety
|
||||
a_computername
|
||||
a_controldelay
|
||||
a_cursor
|
||||
a_dd
|
||||
a_ddd
|
||||
a_dddd
|
||||
a_defaultmousespeed
|
||||
a_desktop
|
||||
a_desktopcommon
|
||||
a_detecthiddentext
|
||||
a_detecthiddenwindows
|
||||
a_endchar
|
||||
a_eventinfo
|
||||
a_exitreason
|
||||
a_formatfloat
|
||||
a_formatinteger
|
||||
a_gui
|
||||
a_guievent
|
||||
a_guicontrol
|
||||
a_guicontrolevent
|
||||
a_guiheight
|
||||
a_guiwidth
|
||||
a_guix
|
||||
a_guiy
|
||||
a_hour
|
||||
a_iconfile
|
||||
a_iconhidden
|
||||
a_iconnumber
|
||||
a_icontip
|
||||
a_index
|
||||
a_ipaddress1
|
||||
a_ipaddress2
|
||||
a_ipaddress3
|
||||
a_ipaddress4
|
||||
a_isadmin
|
||||
a_iscompiled
|
||||
a_iscritical
|
||||
a_ispaused
|
||||
a_issuspended
|
||||
a_isunicode
|
||||
a_keydelay
|
||||
a_language
|
||||
a_lasterror
|
||||
a_linefile
|
||||
a_linenumber
|
||||
a_loopfield
|
||||
a_loopfileattrib
|
||||
a_loopfiledir
|
||||
a_loopfileext
|
||||
a_loopfilefullpath
|
||||
a_loopfilelongpath
|
||||
a_loopfilename
|
||||
a_loopfileshortname
|
||||
a_loopfileshortpath
|
||||
a_loopfilesize
|
||||
a_loopfilesizekb
|
||||
a_loopfilesizemb
|
||||
a_loopfiletimeaccessed
|
||||
a_loopfiletimecreated
|
||||
a_loopfiletimemodified
|
||||
a_loopreadline
|
||||
a_loopregkey
|
||||
a_loopregname
|
||||
a_loopregsubkey
|
||||
a_loopregtimemodified
|
||||
a_loopregtype
|
||||
a_mday
|
||||
a_min
|
||||
a_mm
|
||||
a_mmm
|
||||
a_mmmm
|
||||
a_mon
|
||||
a_mousedelay
|
||||
a_msec
|
||||
a_mydocuments
|
||||
a_now
|
||||
a_nowutc
|
||||
a_numbatchlines
|
||||
a_ostype
|
||||
a_osversion
|
||||
a_priorhotkey
|
||||
programfiles
|
||||
a_programfiles
|
||||
a_programs
|
||||
a_programscommon
|
||||
a_screenheight
|
||||
a_screenwidth
|
||||
a_scriptdir
|
||||
a_scriptfullpath
|
||||
a_scriptname
|
||||
a_sec
|
||||
a_space
|
||||
a_startmenu
|
||||
a_startmenucommon
|
||||
a_startup
|
||||
a_startupcommon
|
||||
a_stringcasesense
|
||||
a_tab
|
||||
a_temp
|
||||
a_thisfunc
|
||||
a_thishotkey
|
||||
a_thislabel
|
||||
a_thismenu
|
||||
a_thismenuitem
|
||||
a_thismenuitempos
|
||||
a_tickcount
|
||||
a_timeidle
|
||||
a_timeidlephysical
|
||||
a_timesincepriorhotkey
|
||||
a_timesincethishotkey
|
||||
a_titlematchmode
|
||||
a_titlematchmodespeed
|
||||
a_username
|
||||
a_wday
|
||||
a_windelay
|
||||
a_windir
|
||||
a_workingdir
|
||||
a_yday
|
||||
a_year
|
||||
a_yweek
|
||||
a_yyyy
|
||||
clipboard
|
||||
clipboardall
|
||||
comspec
|
||||
errorlevel
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["constant", "a_ahkpath"],
|
||||
["constant", "a_ahkversion"],
|
||||
["constant", "a_appdata"],
|
||||
["constant", "a_appdatacommon"],
|
||||
["constant", "a_autotrim"],
|
||||
["constant", "a_batchlines"],
|
||||
["constant", "a_caretx"],
|
||||
["constant", "a_carety"],
|
||||
["constant", "a_computername"],
|
||||
["constant", "a_controldelay"],
|
||||
["constant", "a_cursor"],
|
||||
["constant", "a_dd"],
|
||||
["constant", "a_ddd"],
|
||||
["constant", "a_dddd"],
|
||||
["constant", "a_defaultmousespeed"],
|
||||
["constant", "a_desktop"],
|
||||
["constant", "a_desktopcommon"],
|
||||
["constant", "a_detecthiddentext"],
|
||||
["constant", "a_detecthiddenwindows"],
|
||||
["constant", "a_endchar"],
|
||||
["constant", "a_eventinfo"],
|
||||
["constant", "a_exitreason"],
|
||||
["constant", "a_formatfloat"],
|
||||
["constant", "a_formatinteger"],
|
||||
["constant", "a_gui"],
|
||||
["constant", "a_guievent"],
|
||||
["constant", "a_guicontrol"],
|
||||
["constant", "a_guicontrolevent"],
|
||||
["constant", "a_guiheight"],
|
||||
["constant", "a_guiwidth"],
|
||||
["constant", "a_guix"],
|
||||
["constant", "a_guiy"],
|
||||
["constant", "a_hour"],
|
||||
["constant", "a_iconfile"],
|
||||
["constant", "a_iconhidden"],
|
||||
["constant", "a_iconnumber"],
|
||||
["constant", "a_icontip"],
|
||||
["constant", "a_index"],
|
||||
["constant", "a_ipaddress1"],
|
||||
["constant", "a_ipaddress2"],
|
||||
["constant", "a_ipaddress3"],
|
||||
["constant", "a_ipaddress4"],
|
||||
["constant", "a_isadmin"],
|
||||
["constant", "a_iscompiled"],
|
||||
["constant", "a_iscritical"],
|
||||
["constant", "a_ispaused"],
|
||||
["constant", "a_issuspended"],
|
||||
["constant", "a_isunicode"],
|
||||
["constant", "a_keydelay"],
|
||||
["constant", "a_language"],
|
||||
["constant", "a_lasterror"],
|
||||
["constant", "a_linefile"],
|
||||
["constant", "a_linenumber"],
|
||||
["constant", "a_loopfield"],
|
||||
["constant", "a_loopfileattrib"],
|
||||
["constant", "a_loopfiledir"],
|
||||
["constant", "a_loopfileext"],
|
||||
["constant", "a_loopfilefullpath"],
|
||||
["constant", "a_loopfilelongpath"],
|
||||
["constant", "a_loopfilename"],
|
||||
["constant", "a_loopfileshortname"],
|
||||
["constant", "a_loopfileshortpath"],
|
||||
["constant", "a_loopfilesize"],
|
||||
["constant", "a_loopfilesizekb"],
|
||||
["constant", "a_loopfilesizemb"],
|
||||
["constant", "a_loopfiletimeaccessed"],
|
||||
["constant", "a_loopfiletimecreated"],
|
||||
["constant", "a_loopfiletimemodified"],
|
||||
["constant", "a_loopreadline"],
|
||||
["constant", "a_loopregkey"],
|
||||
["constant", "a_loopregname"],
|
||||
["constant", "a_loopregsubkey"],
|
||||
["constant", "a_loopregtimemodified"],
|
||||
["constant", "a_loopregtype"],
|
||||
["constant", "a_mday"],
|
||||
["constant", "a_min"],
|
||||
["constant", "a_mm"],
|
||||
["constant", "a_mmm"],
|
||||
["constant", "a_mmmm"],
|
||||
["constant", "a_mon"],
|
||||
["constant", "a_mousedelay"],
|
||||
["constant", "a_msec"],
|
||||
["constant", "a_mydocuments"],
|
||||
["constant", "a_now"],
|
||||
["constant", "a_nowutc"],
|
||||
["constant", "a_numbatchlines"],
|
||||
["constant", "a_ostype"],
|
||||
["constant", "a_osversion"],
|
||||
["constant", "a_priorhotkey"],
|
||||
["constant", "programfiles"],
|
||||
["constant", "a_programfiles"],
|
||||
["constant", "a_programs"],
|
||||
["constant", "a_programscommon"],
|
||||
["constant", "a_screenheight"],
|
||||
["constant", "a_screenwidth"],
|
||||
["constant", "a_scriptdir"],
|
||||
["constant", "a_scriptfullpath"],
|
||||
["constant", "a_scriptname"],
|
||||
["constant", "a_sec"],
|
||||
["constant", "a_space"],
|
||||
["constant", "a_startmenu"],
|
||||
["constant", "a_startmenucommon"],
|
||||
["constant", "a_startup"],
|
||||
["constant", "a_startupcommon"],
|
||||
["constant", "a_stringcasesense"],
|
||||
["constant", "a_tab"],
|
||||
["constant", "a_temp"],
|
||||
["constant", "a_thisfunc"],
|
||||
["constant", "a_thishotkey"],
|
||||
["constant", "a_thislabel"],
|
||||
["constant", "a_thismenu"],
|
||||
["constant", "a_thismenuitem"],
|
||||
["constant", "a_thismenuitempos"],
|
||||
["constant", "a_tickcount"],
|
||||
["constant", "a_timeidle"],
|
||||
["constant", "a_timeidlephysical"],
|
||||
["constant", "a_timesincepriorhotkey"],
|
||||
["constant", "a_timesincethishotkey"],
|
||||
["constant", "a_titlematchmode"],
|
||||
["constant", "a_titlematchmodespeed"],
|
||||
["constant", "a_username"],
|
||||
["constant", "a_wday"],
|
||||
["constant", "a_windelay"],
|
||||
["constant", "a_windir"],
|
||||
["constant", "a_workingdir"],
|
||||
["constant", "a_yday"],
|
||||
["constant", "a_year"],
|
||||
["constant", "a_yweek"],
|
||||
["constant", "a_yyyy"],
|
||||
["constant", "clipboard"],
|
||||
["constant", "clipboardall"],
|
||||
["constant", "comspec"],
|
||||
["constant", "errorlevel"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all constants.
|
15
dashboard-ui/bower_components/prism/tests/languages/autohotkey/function_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/autohotkey/function_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
foo(
|
||||
foo_bar(
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["function", "foo"],
|
||||
["punctuation", "("],
|
||||
["function", "foo_bar"],
|
||||
["punctuation", "("]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for functions.
|
67
dashboard-ui/bower_components/prism/tests/languages/autohotkey/important_feature.test
vendored
Normal file
67
dashboard-ui/bower_components/prism/tests/languages/autohotkey/important_feature.test
vendored
Normal file
|
@ -0,0 +1,67 @@
|
|||
#AllowSameLineComments
|
||||
#ClipboardTimeout
|
||||
#CommentFlag
|
||||
#ErrorStdOut
|
||||
#EscapeChar
|
||||
#HotkeyInterval
|
||||
#HotkeyModifierTimeout
|
||||
#Hotstring
|
||||
#IfWinActive
|
||||
#IfWinExist
|
||||
#IfWinNotActive
|
||||
#IfWinNotExist
|
||||
#Include
|
||||
#IncludeAgain
|
||||
#InstallKeybdHook
|
||||
#InstallMouseHook
|
||||
#KeyHistory
|
||||
#LTrim
|
||||
#MaxHotkeysPerInterval
|
||||
#MaxMem
|
||||
#MaxThreads
|
||||
#MaxThreadsBuffer
|
||||
#MaxThreadsPerHotkey
|
||||
#NoEnv
|
||||
#NoTrayIcon
|
||||
#Persistent
|
||||
#SingleInstance
|
||||
#UseHook
|
||||
#WinActivateForce
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["important", "#AllowSameLineComments"],
|
||||
["important", "#ClipboardTimeout"],
|
||||
["important", "#CommentFlag"],
|
||||
["important", "#ErrorStdOut"],
|
||||
["important", "#EscapeChar"],
|
||||
["important", "#HotkeyInterval"],
|
||||
["important", "#HotkeyModifierTimeout"],
|
||||
["important", "#Hotstring"],
|
||||
["important", "#IfWinActive"],
|
||||
["important", "#IfWinExist"],
|
||||
["important", "#IfWinNotActive"],
|
||||
["important", "#IfWinNotExist"],
|
||||
["important", "#Include"],
|
||||
["important", "#IncludeAgain"],
|
||||
["important", "#InstallKeybdHook"],
|
||||
["important", "#InstallMouseHook"],
|
||||
["important", "#KeyHistory"],
|
||||
["important", "#LTrim"],
|
||||
["important", "#MaxHotkeysPerInterval"],
|
||||
["important", "#MaxMem"],
|
||||
["important", "#MaxThreads"],
|
||||
["important", "#MaxThreadsBuffer"],
|
||||
["important", "#MaxThreadsPerHotkey"],
|
||||
["important", "#NoEnv"],
|
||||
["important", "#NoTrayIcon"],
|
||||
["important", "#Persistent"],
|
||||
["important", "#SingleInstance"],
|
||||
["important", "#UseHook"],
|
||||
["important", "#WinActivateForce"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all important keywords.
|
537
dashboard-ui/bower_components/prism/tests/languages/autohotkey/keyword_feature.test
vendored
Normal file
537
dashboard-ui/bower_components/prism/tests/languages/autohotkey/keyword_feature.test
vendored
Normal file
|
@ -0,0 +1,537 @@
|
|||
Abort
|
||||
AboveNormal
|
||||
Add
|
||||
ahk_class
|
||||
ahk_group
|
||||
ahk_id
|
||||
ahk_pid
|
||||
All
|
||||
Alnum
|
||||
Alpha
|
||||
AltSubmit
|
||||
AltTab
|
||||
AltTabAndMenu
|
||||
AltTabMenu
|
||||
AltTabMenuDismiss
|
||||
AlwaysOnTop
|
||||
AutoSize
|
||||
Background
|
||||
BackgroundTrans
|
||||
BelowNormal
|
||||
between
|
||||
BitAnd
|
||||
BitNot
|
||||
BitOr
|
||||
BitShiftLeft
|
||||
BitShiftRight
|
||||
BitXOr
|
||||
Bold
|
||||
Border
|
||||
Button
|
||||
ByRef
|
||||
Checkbox
|
||||
Checked
|
||||
CheckedGray
|
||||
Choose
|
||||
ChooseString
|
||||
Close
|
||||
Color
|
||||
ComboBox
|
||||
Contains
|
||||
ControlList
|
||||
Count
|
||||
Date
|
||||
DateTime
|
||||
Days
|
||||
DDL
|
||||
Default
|
||||
DeleteAll
|
||||
Delimiter
|
||||
Deref
|
||||
Destroy
|
||||
Digit
|
||||
Disable
|
||||
Disabled
|
||||
DropDownList
|
||||
Edit
|
||||
Eject
|
||||
Else
|
||||
Enable
|
||||
Enabled
|
||||
Error
|
||||
Exist
|
||||
Expand
|
||||
ExStyle
|
||||
FileSystem
|
||||
First
|
||||
Flash
|
||||
Float
|
||||
FloatFast
|
||||
Focus
|
||||
Font
|
||||
for
|
||||
global
|
||||
Grid
|
||||
Group
|
||||
GroupBox
|
||||
GuiClose
|
||||
GuiContextMenu
|
||||
GuiDropFiles
|
||||
GuiEscape
|
||||
GuiSize
|
||||
Hdr
|
||||
Hidden
|
||||
Hide
|
||||
High
|
||||
HKCC
|
||||
HKCR
|
||||
HKCU
|
||||
HKEY_CLASSES_ROOT
|
||||
HKEY_CURRENT_CONFIG
|
||||
HKEY_CURRENT_USER
|
||||
HKEY_LOCAL_MACHINE
|
||||
HKEY_USERS
|
||||
HKLM
|
||||
HKU
|
||||
Hours
|
||||
HScroll
|
||||
Icon
|
||||
IconSmall
|
||||
ID
|
||||
IDLast
|
||||
If
|
||||
IfEqual
|
||||
IfExist
|
||||
IfGreater
|
||||
IfGreaterOrEqual
|
||||
IfInString
|
||||
IfLess
|
||||
IfLessOrEqual
|
||||
IfMsgBox
|
||||
IfNotEqual
|
||||
IfNotExist
|
||||
IfNotInString
|
||||
IfWinActive
|
||||
IfWinExist
|
||||
IfWinNotActive
|
||||
IfWinNotExist
|
||||
Ignore
|
||||
ImageList
|
||||
in
|
||||
Integer
|
||||
IntegerFast
|
||||
Interrupt
|
||||
is
|
||||
italic
|
||||
Join
|
||||
Label
|
||||
LastFound
|
||||
LastFoundExist
|
||||
Limit
|
||||
Lines
|
||||
List
|
||||
ListBox
|
||||
ListView
|
||||
local
|
||||
Lock
|
||||
Logoff
|
||||
Low
|
||||
Lower
|
||||
Lowercase
|
||||
MainWindow
|
||||
Margin
|
||||
Maximize
|
||||
MaximizeBox
|
||||
MaxSize
|
||||
Minimize
|
||||
MinimizeBox
|
||||
MinMax
|
||||
MinSize
|
||||
Minutes
|
||||
MonthCal
|
||||
Mouse
|
||||
Move
|
||||
Multi
|
||||
NA
|
||||
No
|
||||
NoActivate
|
||||
NoDefault
|
||||
NoHide
|
||||
NoIcon
|
||||
NoMainWindow
|
||||
norm
|
||||
Normal
|
||||
NoSort
|
||||
NoSortHdr
|
||||
NoStandard
|
||||
Not
|
||||
NoTab
|
||||
NoTimers
|
||||
Number
|
||||
Off
|
||||
Ok
|
||||
On
|
||||
OwnDialogs
|
||||
Owner
|
||||
Parse
|
||||
Password
|
||||
Picture
|
||||
Pixel
|
||||
Pos
|
||||
Pow
|
||||
Priority
|
||||
ProcessName
|
||||
Radio
|
||||
Range
|
||||
Read
|
||||
ReadOnly
|
||||
Realtime
|
||||
Redraw
|
||||
REG_BINARY
|
||||
REG_DWORD
|
||||
REG_EXPAND_SZ
|
||||
REG_MULTI_SZ
|
||||
REG_SZ
|
||||
Region
|
||||
Relative
|
||||
Rename
|
||||
Report
|
||||
Resize
|
||||
Restore
|
||||
Retry
|
||||
RGB
|
||||
Screen
|
||||
Seconds
|
||||
Section
|
||||
Serial
|
||||
SetLabel
|
||||
ShiftAltTab
|
||||
Show
|
||||
Single
|
||||
Slider
|
||||
SortDesc
|
||||
Standard
|
||||
static
|
||||
Status
|
||||
StatusBar
|
||||
StatusCD
|
||||
strike
|
||||
Style
|
||||
Submit
|
||||
SysMenu
|
||||
Tab2
|
||||
TabStop
|
||||
Text
|
||||
Theme
|
||||
Tile
|
||||
ToggleCheck
|
||||
ToggleEnable
|
||||
ToolWindow
|
||||
Top
|
||||
Topmost
|
||||
TransColor
|
||||
Transparent
|
||||
Tray
|
||||
TreeView
|
||||
TryAgain
|
||||
Type
|
||||
UnCheck
|
||||
underline
|
||||
Unicode
|
||||
Unlock
|
||||
UpDown
|
||||
Upper
|
||||
Uppercase
|
||||
UseErrorLevel
|
||||
Vis
|
||||
VisFirst
|
||||
Visible
|
||||
VScroll
|
||||
Wait
|
||||
WaitClose
|
||||
WantCtrlA
|
||||
WantF2
|
||||
WantReturn
|
||||
While
|
||||
Wrap
|
||||
Xdigit
|
||||
xm
|
||||
xp
|
||||
xs
|
||||
Yes
|
||||
ym
|
||||
yp
|
||||
ys
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "Abort"],
|
||||
["keyword", "AboveNormal"],
|
||||
["keyword", "Add"],
|
||||
["keyword", "ahk_class"],
|
||||
["keyword", "ahk_group"],
|
||||
["keyword", "ahk_id"],
|
||||
["keyword", "ahk_pid"],
|
||||
["keyword", "All"],
|
||||
["keyword", "Alnum"],
|
||||
["keyword", "Alpha"],
|
||||
["keyword", "AltSubmit"],
|
||||
["keyword", "AltTab"],
|
||||
["keyword", "AltTabAndMenu"],
|
||||
["keyword", "AltTabMenu"],
|
||||
["keyword", "AltTabMenuDismiss"],
|
||||
["keyword", "AlwaysOnTop"],
|
||||
["keyword", "AutoSize"],
|
||||
["keyword", "Background"],
|
||||
["keyword", "BackgroundTrans"],
|
||||
["keyword", "BelowNormal"],
|
||||
["keyword", "between"],
|
||||
["keyword", "BitAnd"],
|
||||
["keyword", "BitNot"],
|
||||
["keyword", "BitOr"],
|
||||
["keyword", "BitShiftLeft"],
|
||||
["keyword", "BitShiftRight"],
|
||||
["keyword", "BitXOr"],
|
||||
["keyword", "Bold"],
|
||||
["keyword", "Border"],
|
||||
["keyword", "Button"],
|
||||
["keyword", "ByRef"],
|
||||
["keyword", "Checkbox"],
|
||||
["keyword", "Checked"],
|
||||
["keyword", "CheckedGray"],
|
||||
["keyword", "Choose"],
|
||||
["keyword", "ChooseString"],
|
||||
["keyword", "Close"],
|
||||
["keyword", "Color"],
|
||||
["keyword", "ComboBox"],
|
||||
["keyword", "Contains"],
|
||||
["keyword", "ControlList"],
|
||||
["keyword", "Count"],
|
||||
["keyword", "Date"],
|
||||
["keyword", "DateTime"],
|
||||
["keyword", "Days"],
|
||||
["keyword", "DDL"],
|
||||
["keyword", "Default"],
|
||||
["keyword", "DeleteAll"],
|
||||
["keyword", "Delimiter"],
|
||||
["keyword", "Deref"],
|
||||
["keyword", "Destroy"],
|
||||
["keyword", "Digit"],
|
||||
["keyword", "Disable"],
|
||||
["keyword", "Disabled"],
|
||||
["keyword", "DropDownList"],
|
||||
["keyword", "Edit"],
|
||||
["keyword", "Eject"],
|
||||
["keyword", "Else"],
|
||||
["keyword", "Enable"],
|
||||
["keyword", "Enabled"],
|
||||
["keyword", "Error"],
|
||||
["keyword", "Exist"],
|
||||
["keyword", "Expand"],
|
||||
["keyword", "ExStyle"],
|
||||
["keyword", "FileSystem"],
|
||||
["keyword", "First"],
|
||||
["keyword", "Flash"],
|
||||
["keyword", "Float"],
|
||||
["keyword", "FloatFast"],
|
||||
["keyword", "Focus"],
|
||||
["keyword", "Font"],
|
||||
["keyword", "for"],
|
||||
["keyword", "global"],
|
||||
["keyword", "Grid"],
|
||||
["keyword", "Group"],
|
||||
["keyword", "GroupBox"],
|
||||
["keyword", "GuiClose"],
|
||||
["keyword", "GuiContextMenu"],
|
||||
["keyword", "GuiDropFiles"],
|
||||
["keyword", "GuiEscape"],
|
||||
["keyword", "GuiSize"],
|
||||
["keyword", "Hdr"],
|
||||
["keyword", "Hidden"],
|
||||
["keyword", "Hide"],
|
||||
["keyword", "High"],
|
||||
["keyword", "HKCC"],
|
||||
["keyword", "HKCR"],
|
||||
["keyword", "HKCU"],
|
||||
["keyword", "HKEY_CLASSES_ROOT"],
|
||||
["keyword", "HKEY_CURRENT_CONFIG"],
|
||||
["keyword", "HKEY_CURRENT_USER"],
|
||||
["keyword", "HKEY_LOCAL_MACHINE"],
|
||||
["keyword", "HKEY_USERS"],
|
||||
["keyword", "HKLM"],
|
||||
["keyword", "HKU"],
|
||||
["keyword", "Hours"],
|
||||
["keyword", "HScroll"],
|
||||
["keyword", "Icon"],
|
||||
["keyword", "IconSmall"],
|
||||
["keyword", "ID"],
|
||||
["keyword", "IDLast"],
|
||||
["keyword", "If"],
|
||||
["keyword", "IfEqual"],
|
||||
["keyword", "IfExist"],
|
||||
["keyword", "IfGreater"],
|
||||
["keyword", "IfGreaterOrEqual"],
|
||||
["keyword", "IfInString"],
|
||||
["keyword", "IfLess"],
|
||||
["keyword", "IfLessOrEqual"],
|
||||
["keyword", "IfMsgBox"],
|
||||
["keyword", "IfNotEqual"],
|
||||
["keyword", "IfNotExist"],
|
||||
["keyword", "IfNotInString"],
|
||||
["keyword", "IfWinActive"],
|
||||
["keyword", "IfWinExist"],
|
||||
["keyword", "IfWinNotActive"],
|
||||
["keyword", "IfWinNotExist"],
|
||||
["keyword", "Ignore"],
|
||||
["keyword", "ImageList"],
|
||||
["keyword", "in"],
|
||||
["keyword", "Integer"],
|
||||
["keyword", "IntegerFast"],
|
||||
["keyword", "Interrupt"],
|
||||
["keyword", "is"],
|
||||
["keyword", "italic"],
|
||||
["keyword", "Join"],
|
||||
["keyword", "Label"],
|
||||
["keyword", "LastFound"],
|
||||
["keyword", "LastFoundExist"],
|
||||
["keyword", "Limit"],
|
||||
["keyword", "Lines"],
|
||||
["keyword", "List"],
|
||||
["keyword", "ListBox"],
|
||||
["keyword", "ListView"],
|
||||
["keyword", "local"],
|
||||
["keyword", "Lock"],
|
||||
["keyword", "Logoff"],
|
||||
["keyword", "Low"],
|
||||
["keyword", "Lower"],
|
||||
["keyword", "Lowercase"],
|
||||
["keyword", "MainWindow"],
|
||||
["keyword", "Margin"],
|
||||
["keyword", "Maximize"],
|
||||
["keyword", "MaximizeBox"],
|
||||
["keyword", "MaxSize"],
|
||||
["keyword", "Minimize"],
|
||||
["keyword", "MinimizeBox"],
|
||||
["keyword", "MinMax"],
|
||||
["keyword", "MinSize"],
|
||||
["keyword", "Minutes"],
|
||||
["keyword", "MonthCal"],
|
||||
["keyword", "Mouse"],
|
||||
["keyword", "Move"],
|
||||
["keyword", "Multi"],
|
||||
["keyword", "NA"],
|
||||
["keyword", "No"],
|
||||
["keyword", "NoActivate"],
|
||||
["keyword", "NoDefault"],
|
||||
["keyword", "NoHide"],
|
||||
["keyword", "NoIcon"],
|
||||
["keyword", "NoMainWindow"],
|
||||
["keyword", "norm"],
|
||||
["keyword", "Normal"],
|
||||
["keyword", "NoSort"],
|
||||
["keyword", "NoSortHdr"],
|
||||
["keyword", "NoStandard"],
|
||||
["keyword", "Not"],
|
||||
["keyword", "NoTab"],
|
||||
["keyword", "NoTimers"],
|
||||
["keyword", "Number"],
|
||||
["keyword", "Off"],
|
||||
["keyword", "Ok"],
|
||||
["keyword", "On"],
|
||||
["keyword", "OwnDialogs"],
|
||||
["keyword", "Owner"],
|
||||
["keyword", "Parse"],
|
||||
["keyword", "Password"],
|
||||
["keyword", "Picture"],
|
||||
["keyword", "Pixel"],
|
||||
["keyword", "Pos"],
|
||||
["keyword", "Pow"],
|
||||
["keyword", "Priority"],
|
||||
["keyword", "ProcessName"],
|
||||
["keyword", "Radio"],
|
||||
["keyword", "Range"],
|
||||
["keyword", "Read"],
|
||||
["keyword", "ReadOnly"],
|
||||
["keyword", "Realtime"],
|
||||
["keyword", "Redraw"],
|
||||
["keyword", "REG_BINARY"],
|
||||
["keyword", "REG_DWORD"],
|
||||
["keyword", "REG_EXPAND_SZ"],
|
||||
["keyword", "REG_MULTI_SZ"],
|
||||
["keyword", "REG_SZ"],
|
||||
["keyword", "Region"],
|
||||
["keyword", "Relative"],
|
||||
["keyword", "Rename"],
|
||||
["keyword", "Report"],
|
||||
["keyword", "Resize"],
|
||||
["keyword", "Restore"],
|
||||
["keyword", "Retry"],
|
||||
["keyword", "RGB"],
|
||||
["keyword", "Screen"],
|
||||
["keyword", "Seconds"],
|
||||
["keyword", "Section"],
|
||||
["keyword", "Serial"],
|
||||
["keyword", "SetLabel"],
|
||||
["keyword", "ShiftAltTab"],
|
||||
["keyword", "Show"],
|
||||
["keyword", "Single"],
|
||||
["keyword", "Slider"],
|
||||
["keyword", "SortDesc"],
|
||||
["keyword", "Standard"],
|
||||
["keyword", "static"],
|
||||
["keyword", "Status"],
|
||||
["keyword", "StatusBar"],
|
||||
["keyword", "StatusCD"],
|
||||
["keyword", "strike"],
|
||||
["keyword", "Style"],
|
||||
["keyword", "Submit"],
|
||||
["keyword", "SysMenu"],
|
||||
["keyword", "Tab2"],
|
||||
["keyword", "TabStop"],
|
||||
["keyword", "Text"],
|
||||
["keyword", "Theme"],
|
||||
["keyword", "Tile"],
|
||||
["keyword", "ToggleCheck"],
|
||||
["keyword", "ToggleEnable"],
|
||||
["keyword", "ToolWindow"],
|
||||
["keyword", "Top"],
|
||||
["keyword", "Topmost"],
|
||||
["keyword", "TransColor"],
|
||||
["keyword", "Transparent"],
|
||||
["keyword", "Tray"],
|
||||
["keyword", "TreeView"],
|
||||
["keyword", "TryAgain"],
|
||||
["keyword", "Type"],
|
||||
["keyword", "UnCheck"],
|
||||
["keyword", "underline"],
|
||||
["keyword", "Unicode"],
|
||||
["keyword", "Unlock"],
|
||||
["keyword", "UpDown"],
|
||||
["keyword", "Upper"],
|
||||
["keyword", "Uppercase"],
|
||||
["keyword", "UseErrorLevel"],
|
||||
["keyword", "Vis"],
|
||||
["keyword", "VisFirst"],
|
||||
["keyword", "Visible"],
|
||||
["keyword", "VScroll"],
|
||||
["keyword", "Wait"],
|
||||
["keyword", "WaitClose"],
|
||||
["keyword", "WantCtrlA"],
|
||||
["keyword", "WantF2"],
|
||||
["keyword", "WantReturn"],
|
||||
["keyword", "While"],
|
||||
["keyword", "Wrap"],
|
||||
["keyword", "Xdigit"],
|
||||
["keyword", "xm"],
|
||||
["keyword", "xp"],
|
||||
["keyword", "xs"],
|
||||
["keyword", "Yes"],
|
||||
["keyword", "ym"],
|
||||
["keyword", "yp"],
|
||||
["keyword", "ys"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all keywords.
|
21
dashboard-ui/bower_components/prism/tests/languages/autohotkey/number_feature.test
vendored
Normal file
21
dashboard-ui/bower_components/prism/tests/languages/autohotkey/number_feature.test
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
42
|
||||
3.14159
|
||||
3.2e10
|
||||
2.9E-7
|
||||
0xbabe
|
||||
0xBABE
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "42"],
|
||||
["number", "3.14159"],
|
||||
["number", "3.2e10"],
|
||||
["number", "2.9E-7"],
|
||||
["number", "0xbabe"],
|
||||
["number", "0xBABE"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
33
dashboard-ui/bower_components/prism/tests/languages/autohotkey/operator_feature.test
vendored
Normal file
33
dashboard-ui/bower_components/prism/tests/languages/autohotkey/operator_feature.test
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
+ - * /
|
||||
= ? & |
|
||||
< >
|
||||
++ -- ** //
|
||||
! ~ ^ .
|
||||
<< >> <= >=
|
||||
~= == <> !=
|
||||
NOT AND && OR ||
|
||||
:= += -= *=
|
||||
/= //= .=
|
||||
|= &= ^=
|
||||
>>= <<=
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["operator", "+"], ["operator", "-"], ["operator", "*"], ["operator", "/"],
|
||||
["operator", "="], ["operator", "?"], ["operator", "&"], ["operator", "|"],
|
||||
["operator", "<"], ["operator", ">"],
|
||||
["operator", "++"], ["operator", "--"], ["operator", "**"], ["operator", "//"],
|
||||
["operator", "!"], ["operator", "~"], ["operator", "^"], ["operator", "."],
|
||||
["operator", "<<"], ["operator", ">>"], ["operator", "<="], ["operator", ">="],
|
||||
["operator", "~="], ["operator", "=="], ["operator", "<>"], ["operator", "!="],
|
||||
["operator", "NOT"], ["operator", "AND"], ["operator", "&&"], ["operator", "OR"], ["operator", "||"],
|
||||
["operator", ":="], ["operator", "+="], ["operator", "-="], ["operator", "*="],
|
||||
["operator", "/="], ["operator", "//="], ["operator", ".="],
|
||||
["operator", "|="], ["operator", "&="], ["operator", "^="],
|
||||
["operator", ">>="], ["operator", "<<="]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all operators.
|
381
dashboard-ui/bower_components/prism/tests/languages/autohotkey/selector_feature.test
vendored
Normal file
381
dashboard-ui/bower_components/prism/tests/languages/autohotkey/selector_feature.test
vendored
Normal file
|
@ -0,0 +1,381 @@
|
|||
AutoTrim
|
||||
BlockInput
|
||||
Break
|
||||
Click
|
||||
ClipWait
|
||||
Continue
|
||||
Control
|
||||
ControlClick
|
||||
ControlFocus
|
||||
ControlGet
|
||||
ControlGetFocus
|
||||
ControlGetPos
|
||||
ControlGetText
|
||||
ControlMove
|
||||
ControlSend
|
||||
ControlSendRaw
|
||||
ControlSetText
|
||||
CoordMode
|
||||
Critical
|
||||
DetectHiddenText
|
||||
DetectHiddenWindows
|
||||
Drive
|
||||
DriveGet
|
||||
DriveSpaceFree
|
||||
EnvAdd
|
||||
EnvDiv
|
||||
EnvGet
|
||||
EnvMult
|
||||
EnvSet
|
||||
EnvSub
|
||||
EnvUpdate
|
||||
Exit
|
||||
ExitApp
|
||||
FileAppend
|
||||
FileCopy
|
||||
FileCopyDir
|
||||
FileCreateDir
|
||||
FileCreateShortcut
|
||||
FileDelete
|
||||
FileEncoding
|
||||
FileGetAttrib
|
||||
FileGetShortcut
|
||||
FileGetSize
|
||||
FileGetTime
|
||||
FileGetVersion
|
||||
FileInstall
|
||||
FileMove
|
||||
FileMoveDir
|
||||
FileRead
|
||||
FileReadLine
|
||||
FileRecycle
|
||||
FileRecycleEmpty
|
||||
FileRemoveDir
|
||||
FileSelectFile
|
||||
FileSelectFolder
|
||||
FileSetAttrib
|
||||
FileSetTime
|
||||
FormatTime
|
||||
GetKeyState
|
||||
Gosub
|
||||
Goto
|
||||
GroupActivate
|
||||
GroupAdd
|
||||
GroupClose
|
||||
GroupDeactivate
|
||||
Gui
|
||||
GuiControl
|
||||
GuiControlGet
|
||||
Hotkey
|
||||
ImageSearch
|
||||
IniDelete
|
||||
IniRead
|
||||
IniWrite
|
||||
Input
|
||||
InputBox
|
||||
KeyWait
|
||||
ListHotkeys
|
||||
ListLines
|
||||
ListVars
|
||||
Loop
|
||||
Menu
|
||||
MouseClick
|
||||
MouseClickDrag
|
||||
MouseGetPos
|
||||
MouseMove
|
||||
MsgBox
|
||||
OnExit
|
||||
OutputDebug
|
||||
Pause
|
||||
PixelGetColor
|
||||
PixelSearch
|
||||
PostMessage
|
||||
Process
|
||||
Progress
|
||||
Random
|
||||
RegDelete
|
||||
RegRead
|
||||
RegWrite
|
||||
Reload
|
||||
Repeat
|
||||
Return
|
||||
Run
|
||||
RunAs
|
||||
RunWait
|
||||
Send
|
||||
SendEvent
|
||||
SendInput
|
||||
SendMessage
|
||||
SendMode
|
||||
SendPlay
|
||||
SendRaw
|
||||
SetBatchLines
|
||||
SetCapslockState
|
||||
SetControlDelay
|
||||
SetDefaultMouseSpeed
|
||||
SetEnv
|
||||
SetFormat
|
||||
SetKeyDelay
|
||||
SetMouseDelay
|
||||
SetNumlockState
|
||||
SetScrollLockState
|
||||
SetStoreCapslockMode
|
||||
SetTimer
|
||||
SetTitleMatchMode
|
||||
SetWinDelay
|
||||
SetWorkingDir
|
||||
Shutdown
|
||||
Sleep
|
||||
Sort
|
||||
SoundBeep
|
||||
SoundGet
|
||||
SoundGetWaveVolume
|
||||
SoundPlay
|
||||
SoundSet
|
||||
SoundSetWaveVolume
|
||||
SplashImage
|
||||
SplashTextOff
|
||||
SplashTextOn
|
||||
SplitPath
|
||||
StatusBarGetText
|
||||
StatusBarWait
|
||||
StringCaseSense
|
||||
StringGetPos
|
||||
StringLeft
|
||||
StringLen
|
||||
StringLower
|
||||
StringMid
|
||||
StringReplace
|
||||
StringRight
|
||||
StringSplit
|
||||
StringTrimLeft
|
||||
StringTrimRight
|
||||
StringUpper
|
||||
Suspend
|
||||
SysGet
|
||||
Thread
|
||||
ToolTip
|
||||
Transform
|
||||
TrayTip
|
||||
URLDownloadToFile
|
||||
WinActivate
|
||||
WinActivateBottom
|
||||
WinClose
|
||||
WinGet
|
||||
WinGetActiveStats
|
||||
WinGetActiveTitle
|
||||
WinGetClass
|
||||
WinGetPos
|
||||
WinGetText
|
||||
WinGetTitle
|
||||
WinHide
|
||||
WinKill
|
||||
WinMaximize
|
||||
WinMenuSelectItem
|
||||
WinMinimize
|
||||
WinMinimizeAll
|
||||
WinMinimizeAllUndo
|
||||
WinMove
|
||||
WinRestore
|
||||
WinSet
|
||||
WinSetTitle
|
||||
WinShow
|
||||
WinWait
|
||||
WinWaitActive
|
||||
WinWaitClose
|
||||
WinWaitNotActive
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["selector", "AutoTrim"],
|
||||
["selector", "BlockInput"],
|
||||
["selector", "Break"],
|
||||
["selector", "Click"],
|
||||
["selector", "ClipWait"],
|
||||
["selector", "Continue"],
|
||||
["selector", "Control"],
|
||||
["selector", "ControlClick"],
|
||||
["selector", "ControlFocus"],
|
||||
["selector", "ControlGet"],
|
||||
["selector", "ControlGetFocus"],
|
||||
["selector", "ControlGetPos"],
|
||||
["selector", "ControlGetText"],
|
||||
["selector", "ControlMove"],
|
||||
["selector", "ControlSend"],
|
||||
["selector", "ControlSendRaw"],
|
||||
["selector", "ControlSetText"],
|
||||
["selector", "CoordMode"],
|
||||
["selector", "Critical"],
|
||||
["selector", "DetectHiddenText"],
|
||||
["selector", "DetectHiddenWindows"],
|
||||
["selector", "Drive"],
|
||||
["selector", "DriveGet"],
|
||||
["selector", "DriveSpaceFree"],
|
||||
["selector", "EnvAdd"],
|
||||
["selector", "EnvDiv"],
|
||||
["selector", "EnvGet"],
|
||||
["selector", "EnvMult"],
|
||||
["selector", "EnvSet"],
|
||||
["selector", "EnvSub"],
|
||||
["selector", "EnvUpdate"],
|
||||
["selector", "Exit"],
|
||||
["selector", "ExitApp"],
|
||||
["selector", "FileAppend"],
|
||||
["selector", "FileCopy"],
|
||||
["selector", "FileCopyDir"],
|
||||
["selector", "FileCreateDir"],
|
||||
["selector", "FileCreateShortcut"],
|
||||
["selector", "FileDelete"],
|
||||
["selector", "FileEncoding"],
|
||||
["selector", "FileGetAttrib"],
|
||||
["selector", "FileGetShortcut"],
|
||||
["selector", "FileGetSize"],
|
||||
["selector", "FileGetTime"],
|
||||
["selector", "FileGetVersion"],
|
||||
["selector", "FileInstall"],
|
||||
["selector", "FileMove"],
|
||||
["selector", "FileMoveDir"],
|
||||
["selector", "FileRead"],
|
||||
["selector", "FileReadLine"],
|
||||
["selector", "FileRecycle"],
|
||||
["selector", "FileRecycleEmpty"],
|
||||
["selector", "FileRemoveDir"],
|
||||
["selector", "FileSelectFile"],
|
||||
["selector", "FileSelectFolder"],
|
||||
["selector", "FileSetAttrib"],
|
||||
["selector", "FileSetTime"],
|
||||
["selector", "FormatTime"],
|
||||
["selector", "GetKeyState"],
|
||||
["selector", "Gosub"],
|
||||
["selector", "Goto"],
|
||||
["selector", "GroupActivate"],
|
||||
["selector", "GroupAdd"],
|
||||
["selector", "GroupClose"],
|
||||
["selector", "GroupDeactivate"],
|
||||
["selector", "Gui"],
|
||||
["selector", "GuiControl"],
|
||||
["selector", "GuiControlGet"],
|
||||
["selector", "Hotkey"],
|
||||
["selector", "ImageSearch"],
|
||||
["selector", "IniDelete"],
|
||||
["selector", "IniRead"],
|
||||
["selector", "IniWrite"],
|
||||
["selector", "Input"],
|
||||
["selector", "InputBox"],
|
||||
["selector", "KeyWait"],
|
||||
["selector", "ListHotkeys"],
|
||||
["selector", "ListLines"],
|
||||
["selector", "ListVars"],
|
||||
["selector", "Loop"],
|
||||
["selector", "Menu"],
|
||||
["selector", "MouseClick"],
|
||||
["selector", "MouseClickDrag"],
|
||||
["selector", "MouseGetPos"],
|
||||
["selector", "MouseMove"],
|
||||
["selector", "MsgBox"],
|
||||
["selector", "OnExit"],
|
||||
["selector", "OutputDebug"],
|
||||
["selector", "Pause"],
|
||||
["selector", "PixelGetColor"],
|
||||
["selector", "PixelSearch"],
|
||||
["selector", "PostMessage"],
|
||||
["selector", "Process"],
|
||||
["selector", "Progress"],
|
||||
["selector", "Random"],
|
||||
["selector", "RegDelete"],
|
||||
["selector", "RegRead"],
|
||||
["selector", "RegWrite"],
|
||||
["selector", "Reload"],
|
||||
["selector", "Repeat"],
|
||||
["selector", "Return"],
|
||||
["selector", "Run"],
|
||||
["selector", "RunAs"],
|
||||
["selector", "RunWait"],
|
||||
["selector", "Send"],
|
||||
["selector", "SendEvent"],
|
||||
["selector", "SendInput"],
|
||||
["selector", "SendMessage"],
|
||||
["selector", "SendMode"],
|
||||
["selector", "SendPlay"],
|
||||
["selector", "SendRaw"],
|
||||
["selector", "SetBatchLines"],
|
||||
["selector", "SetCapslockState"],
|
||||
["selector", "SetControlDelay"],
|
||||
["selector", "SetDefaultMouseSpeed"],
|
||||
["selector", "SetEnv"],
|
||||
["selector", "SetFormat"],
|
||||
["selector", "SetKeyDelay"],
|
||||
["selector", "SetMouseDelay"],
|
||||
["selector", "SetNumlockState"],
|
||||
["selector", "SetScrollLockState"],
|
||||
["selector", "SetStoreCapslockMode"],
|
||||
["selector", "SetTimer"],
|
||||
["selector", "SetTitleMatchMode"],
|
||||
["selector", "SetWinDelay"],
|
||||
["selector", "SetWorkingDir"],
|
||||
["selector", "Shutdown"],
|
||||
["selector", "Sleep"],
|
||||
["selector", "Sort"],
|
||||
["selector", "SoundBeep"],
|
||||
["selector", "SoundGet"],
|
||||
["selector", "SoundGetWaveVolume"],
|
||||
["selector", "SoundPlay"],
|
||||
["selector", "SoundSet"],
|
||||
["selector", "SoundSetWaveVolume"],
|
||||
["selector", "SplashImage"],
|
||||
["selector", "SplashTextOff"],
|
||||
["selector", "SplashTextOn"],
|
||||
["selector", "SplitPath"],
|
||||
["selector", "StatusBarGetText"],
|
||||
["selector", "StatusBarWait"],
|
||||
["selector", "StringCaseSense"],
|
||||
["selector", "StringGetPos"],
|
||||
["selector", "StringLeft"],
|
||||
["selector", "StringLen"],
|
||||
["selector", "StringLower"],
|
||||
["selector", "StringMid"],
|
||||
["selector", "StringReplace"],
|
||||
["selector", "StringRight"],
|
||||
["selector", "StringSplit"],
|
||||
["selector", "StringTrimLeft"],
|
||||
["selector", "StringTrimRight"],
|
||||
["selector", "StringUpper"],
|
||||
["selector", "Suspend"],
|
||||
["selector", "SysGet"],
|
||||
["selector", "Thread"],
|
||||
["selector", "ToolTip"],
|
||||
["selector", "Transform"],
|
||||
["selector", "TrayTip"],
|
||||
["selector", "URLDownloadToFile"],
|
||||
["selector", "WinActivate"],
|
||||
["selector", "WinActivateBottom"],
|
||||
["selector", "WinClose"],
|
||||
["selector", "WinGet"],
|
||||
["selector", "WinGetActiveStats"],
|
||||
["selector", "WinGetActiveTitle"],
|
||||
["selector", "WinGetClass"],
|
||||
["selector", "WinGetPos"],
|
||||
["selector", "WinGetText"],
|
||||
["selector", "WinGetTitle"],
|
||||
["selector", "WinHide"],
|
||||
["selector", "WinKill"],
|
||||
["selector", "WinMaximize"],
|
||||
["selector", "WinMenuSelectItem"],
|
||||
["selector", "WinMinimize"],
|
||||
["selector", "WinMinimizeAll"],
|
||||
["selector", "WinMinimizeAllUndo"],
|
||||
["selector", "WinMove"],
|
||||
["selector", "WinRestore"],
|
||||
["selector", "WinSet"],
|
||||
["selector", "WinSetTitle"],
|
||||
["selector", "WinShow"],
|
||||
["selector", "WinWait"],
|
||||
["selector", "WinWaitActive"],
|
||||
["selector", "WinWaitClose"],
|
||||
["selector", "WinWaitNotActive"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all selectors.
|
15
dashboard-ui/bower_components/prism/tests/languages/autohotkey/string_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/autohotkey/string_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
""
|
||||
"foo"
|
||||
"foo""bar"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "\"\""],
|
||||
["string", "\"foo\""],
|
||||
["string", "\"foo\"\"bar\""]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
347
dashboard-ui/bower_components/prism/tests/languages/autohotkey/symbol_feature.test
vendored
Normal file
347
dashboard-ui/bower_components/prism/tests/languages/autohotkey/symbol_feature.test
vendored
Normal file
|
@ -0,0 +1,347 @@
|
|||
alt
|
||||
altdown
|
||||
altup
|
||||
appskey
|
||||
backspace
|
||||
browser_back
|
||||
browser_favorites
|
||||
browser_forward
|
||||
browser_home
|
||||
browser_refresh
|
||||
browser_search
|
||||
browser_stop
|
||||
bs
|
||||
capslock
|
||||
ctrl
|
||||
ctrlbreak
|
||||
ctrldown
|
||||
ctrlup
|
||||
del
|
||||
delete
|
||||
down
|
||||
end
|
||||
enter
|
||||
esc
|
||||
escape
|
||||
f1
|
||||
f10
|
||||
f11
|
||||
f12
|
||||
f13
|
||||
f14
|
||||
f15
|
||||
f16
|
||||
f17
|
||||
f18
|
||||
f19
|
||||
f2
|
||||
f20
|
||||
f21
|
||||
f22
|
||||
f23
|
||||
f24
|
||||
f3
|
||||
f4
|
||||
f5
|
||||
f6
|
||||
f7
|
||||
f8
|
||||
f9
|
||||
home
|
||||
ins
|
||||
insert
|
||||
joy1
|
||||
joy10
|
||||
joy11
|
||||
joy12
|
||||
joy13
|
||||
joy14
|
||||
joy15
|
||||
joy16
|
||||
joy17
|
||||
joy18
|
||||
joy19
|
||||
joy2
|
||||
joy20
|
||||
joy21
|
||||
joy22
|
||||
joy23
|
||||
joy24
|
||||
joy25
|
||||
joy26
|
||||
joy27
|
||||
joy28
|
||||
joy29
|
||||
joy3
|
||||
joy30
|
||||
joy31
|
||||
joy32
|
||||
joy4
|
||||
joy5
|
||||
joy6
|
||||
joy7
|
||||
joy8
|
||||
joy9
|
||||
joyaxes
|
||||
joybuttons
|
||||
joyinfo
|
||||
joyname
|
||||
joypov
|
||||
joyr
|
||||
joyu
|
||||
joyv
|
||||
joyx
|
||||
joyy
|
||||
joyz
|
||||
lalt
|
||||
launch_app1
|
||||
launch_app2
|
||||
launch_mail
|
||||
launch_media
|
||||
lbutton
|
||||
lcontrol
|
||||
lctrl
|
||||
left
|
||||
lshift
|
||||
lwin
|
||||
lwindown
|
||||
lwinup
|
||||
mbutton
|
||||
media_next
|
||||
media_play_pause
|
||||
media_prev
|
||||
media_stop
|
||||
numlock
|
||||
numpad0
|
||||
numpad1
|
||||
numpad2
|
||||
numpad3
|
||||
numpad4
|
||||
numpad5
|
||||
numpad6
|
||||
numpad7
|
||||
numpad8
|
||||
numpad9
|
||||
numpadadd
|
||||
numpadclear
|
||||
numpaddel
|
||||
numpaddiv
|
||||
numpaddot
|
||||
numpaddown
|
||||
numpadend
|
||||
numpadenter
|
||||
numpadhome
|
||||
numpadins
|
||||
numpadleft
|
||||
numpadmult
|
||||
numpadpgdn
|
||||
numpadpgup
|
||||
numpadright
|
||||
numpadsub
|
||||
numpadup
|
||||
pgdn
|
||||
pgup
|
||||
printscreen
|
||||
ralt
|
||||
rbutton
|
||||
rcontrol
|
||||
rctrl
|
||||
right
|
||||
rshift
|
||||
rwin
|
||||
rwindown
|
||||
rwinup
|
||||
scrolllock
|
||||
shift
|
||||
shiftdown
|
||||
shiftup
|
||||
space
|
||||
tab
|
||||
up
|
||||
volume_down
|
||||
volume_mute
|
||||
volume_up
|
||||
wheeldown
|
||||
wheelleft
|
||||
wheelright
|
||||
wheelup
|
||||
xbutton1
|
||||
xbutton2
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["symbol", "alt"],
|
||||
["symbol", "altdown"],
|
||||
["symbol", "altup"],
|
||||
["symbol", "appskey"],
|
||||
["symbol", "backspace"],
|
||||
["symbol", "browser_back"],
|
||||
["symbol", "browser_favorites"],
|
||||
["symbol", "browser_forward"],
|
||||
["symbol", "browser_home"],
|
||||
["symbol", "browser_refresh"],
|
||||
["symbol", "browser_search"],
|
||||
["symbol", "browser_stop"],
|
||||
["symbol", "bs"],
|
||||
["symbol", "capslock"],
|
||||
["symbol", "ctrl"],
|
||||
["symbol", "ctrlbreak"],
|
||||
["symbol", "ctrldown"],
|
||||
["symbol", "ctrlup"],
|
||||
["symbol", "del"],
|
||||
["symbol", "delete"],
|
||||
["symbol", "down"],
|
||||
["symbol", "end"],
|
||||
["symbol", "enter"],
|
||||
["symbol", "esc"],
|
||||
["symbol", "escape"],
|
||||
["symbol", "f1"],
|
||||
["symbol", "f10"],
|
||||
["symbol", "f11"],
|
||||
["symbol", "f12"],
|
||||
["symbol", "f13"],
|
||||
["symbol", "f14"],
|
||||
["symbol", "f15"],
|
||||
["symbol", "f16"],
|
||||
["symbol", "f17"],
|
||||
["symbol", "f18"],
|
||||
["symbol", "f19"],
|
||||
["symbol", "f2"],
|
||||
["symbol", "f20"],
|
||||
["symbol", "f21"],
|
||||
["symbol", "f22"],
|
||||
["symbol", "f23"],
|
||||
["symbol", "f24"],
|
||||
["symbol", "f3"],
|
||||
["symbol", "f4"],
|
||||
["symbol", "f5"],
|
||||
["symbol", "f6"],
|
||||
["symbol", "f7"],
|
||||
["symbol", "f8"],
|
||||
["symbol", "f9"],
|
||||
["symbol", "home"],
|
||||
["symbol", "ins"],
|
||||
["symbol", "insert"],
|
||||
["symbol", "joy1"],
|
||||
["symbol", "joy10"],
|
||||
["symbol", "joy11"],
|
||||
["symbol", "joy12"],
|
||||
["symbol", "joy13"],
|
||||
["symbol", "joy14"],
|
||||
["symbol", "joy15"],
|
||||
["symbol", "joy16"],
|
||||
["symbol", "joy17"],
|
||||
["symbol", "joy18"],
|
||||
["symbol", "joy19"],
|
||||
["symbol", "joy2"],
|
||||
["symbol", "joy20"],
|
||||
["symbol", "joy21"],
|
||||
["symbol", "joy22"],
|
||||
["symbol", "joy23"],
|
||||
["symbol", "joy24"],
|
||||
["symbol", "joy25"],
|
||||
["symbol", "joy26"],
|
||||
["symbol", "joy27"],
|
||||
["symbol", "joy28"],
|
||||
["symbol", "joy29"],
|
||||
["symbol", "joy3"],
|
||||
["symbol", "joy30"],
|
||||
["symbol", "joy31"],
|
||||
["symbol", "joy32"],
|
||||
["symbol", "joy4"],
|
||||
["symbol", "joy5"],
|
||||
["symbol", "joy6"],
|
||||
["symbol", "joy7"],
|
||||
["symbol", "joy8"],
|
||||
["symbol", "joy9"],
|
||||
["symbol", "joyaxes"],
|
||||
["symbol", "joybuttons"],
|
||||
["symbol", "joyinfo"],
|
||||
["symbol", "joyname"],
|
||||
["symbol", "joypov"],
|
||||
["symbol", "joyr"],
|
||||
["symbol", "joyu"],
|
||||
["symbol", "joyv"],
|
||||
["symbol", "joyx"],
|
||||
["symbol", "joyy"],
|
||||
["symbol", "joyz"],
|
||||
["symbol", "lalt"],
|
||||
["symbol", "launch_app1"],
|
||||
["symbol", "launch_app2"],
|
||||
["symbol", "launch_mail"],
|
||||
["symbol", "launch_media"],
|
||||
["symbol", "lbutton"],
|
||||
["symbol", "lcontrol"],
|
||||
["symbol", "lctrl"],
|
||||
["symbol", "left"],
|
||||
["symbol", "lshift"],
|
||||
["symbol", "lwin"],
|
||||
["symbol", "lwindown"],
|
||||
["symbol", "lwinup"],
|
||||
["symbol", "mbutton"],
|
||||
["symbol", "media_next"],
|
||||
["symbol", "media_play_pause"],
|
||||
["symbol", "media_prev"],
|
||||
["symbol", "media_stop"],
|
||||
["symbol", "numlock"],
|
||||
["symbol", "numpad0"],
|
||||
["symbol", "numpad1"],
|
||||
["symbol", "numpad2"],
|
||||
["symbol", "numpad3"],
|
||||
["symbol", "numpad4"],
|
||||
["symbol", "numpad5"],
|
||||
["symbol", "numpad6"],
|
||||
["symbol", "numpad7"],
|
||||
["symbol", "numpad8"],
|
||||
["symbol", "numpad9"],
|
||||
["symbol", "numpadadd"],
|
||||
["symbol", "numpadclear"],
|
||||
["symbol", "numpaddel"],
|
||||
["symbol", "numpaddiv"],
|
||||
["symbol", "numpaddot"],
|
||||
["symbol", "numpaddown"],
|
||||
["symbol", "numpadend"],
|
||||
["symbol", "numpadenter"],
|
||||
["symbol", "numpadhome"],
|
||||
["symbol", "numpadins"],
|
||||
["symbol", "numpadleft"],
|
||||
["symbol", "numpadmult"],
|
||||
["symbol", "numpadpgdn"],
|
||||
["symbol", "numpadpgup"],
|
||||
["symbol", "numpadright"],
|
||||
["symbol", "numpadsub"],
|
||||
["symbol", "numpadup"],
|
||||
["symbol", "pgdn"],
|
||||
["symbol", "pgup"],
|
||||
["symbol", "printscreen"],
|
||||
["symbol", "ralt"],
|
||||
["symbol", "rbutton"],
|
||||
["symbol", "rcontrol"],
|
||||
["symbol", "rctrl"],
|
||||
["symbol", "right"],
|
||||
["symbol", "rshift"],
|
||||
["symbol", "rwin"],
|
||||
["symbol", "rwindown"],
|
||||
["symbol", "rwinup"],
|
||||
["symbol", "scrolllock"],
|
||||
["symbol", "shift"],
|
||||
["symbol", "shiftdown"],
|
||||
["symbol", "shiftup"],
|
||||
["symbol", "space"],
|
||||
["symbol", "tab"],
|
||||
["symbol", "up"],
|
||||
["symbol", "volume_down"],
|
||||
["symbol", "volume_mute"],
|
||||
["symbol", "volume_up"],
|
||||
["symbol", "wheeldown"],
|
||||
["symbol", "wheelleft"],
|
||||
["symbol", "wheelright"],
|
||||
["symbol", "wheelup"],
|
||||
["symbol", "xbutton1"],
|
||||
["symbol", "xbutton2"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all symbols.
|
15
dashboard-ui/bower_components/prism/tests/languages/autohotkey/tag_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/autohotkey/tag_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
foo:
|
||||
foo_bar:
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["tag", "foo"],
|
||||
["punctuation", ":"],
|
||||
["tag", "foo_bar"],
|
||||
["punctuation", ":"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for tags (labels).
|
13
dashboard-ui/bower_components/prism/tests/languages/autohotkey/variable_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/autohotkey/variable_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
%foo%
|
||||
%foo_bar%
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", "%foo%"],
|
||||
["variable", "%foo_bar%"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for variables.
|
13
dashboard-ui/bower_components/prism/tests/languages/autoit/boolean_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/autoit/boolean_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
True
|
||||
False
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["boolean", "True"],
|
||||
["boolean", "False"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for booleans.
|
33
dashboard-ui/bower_components/prism/tests/languages/autoit/comment_feature.test
vendored
Normal file
33
dashboard-ui/bower_components/prism/tests/languages/autoit/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
;
|
||||
; foo
|
||||
#comments-start
|
||||
foobar()
|
||||
#comments-end
|
||||
#cs
|
||||
foobar()
|
||||
#ce
|
||||
;#comments-start
|
||||
foobar()
|
||||
;#comments-end
|
||||
;#cs
|
||||
foobar()
|
||||
;#ce
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", ";"],
|
||||
["comment", "; foo"],
|
||||
["comment", "#comments-start\r\n\tfoobar()\r\n#comments-end"],
|
||||
["comment", "#cs\r\n\tfoobar()\r\n#ce"],
|
||||
["comment", ";#comments-start"],
|
||||
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
|
||||
["comment", ";#comments-end"],
|
||||
["comment", ";#cs"],
|
||||
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
|
||||
["comment", ";#ce"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
13
dashboard-ui/bower_components/prism/tests/languages/autoit/directive_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/autoit/directive_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
#NoTrayIcon
|
||||
#OnAutoItStartRegister "Example"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["directive", "#NoTrayIcon"],
|
||||
["directive", "#OnAutoItStartRegister"], ["string", ["\"Example\""]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for directives.
|
15
dashboard-ui/bower_components/prism/tests/languages/autoit/function_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/autoit/function_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
foo()
|
||||
foo_bar()
|
||||
foo_bar_42()
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["function", "foo"], ["punctuation", "("], ["punctuation", ")"],
|
||||
["function", "foo_bar"], ["punctuation", "("], ["punctuation", ")"],
|
||||
["function", "foo_bar_42"], ["punctuation", "("], ["punctuation", ")"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for functions.
|
83
dashboard-ui/bower_components/prism/tests/languages/autoit/keyword_feature.test
vendored
Normal file
83
dashboard-ui/bower_components/prism/tests/languages/autoit/keyword_feature.test
vendored
Normal file
|
@ -0,0 +1,83 @@
|
|||
Case
|
||||
Const
|
||||
ContinueCase
|
||||
ContinueLoop
|
||||
Default
|
||||
Dim
|
||||
Do
|
||||
Else
|
||||
ElseIf
|
||||
EndFunc
|
||||
EndIf
|
||||
EndSelect
|
||||
EndSwitch
|
||||
EndWith
|
||||
Enum
|
||||
Exit
|
||||
ExitLoop
|
||||
For
|
||||
Func
|
||||
Global
|
||||
If
|
||||
In
|
||||
Local
|
||||
Next
|
||||
Null
|
||||
ReDim
|
||||
Select
|
||||
Static
|
||||
Step
|
||||
Switch
|
||||
Then
|
||||
To
|
||||
Until
|
||||
Volatile
|
||||
WEnd
|
||||
While
|
||||
With
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "Case"],
|
||||
["keyword", "Const"],
|
||||
["keyword", "ContinueCase"],
|
||||
["keyword", "ContinueLoop"],
|
||||
["keyword", "Default"],
|
||||
["keyword", "Dim"],
|
||||
["keyword", "Do"],
|
||||
["keyword", "Else"],
|
||||
["keyword", "ElseIf"],
|
||||
["keyword", "EndFunc"],
|
||||
["keyword", "EndIf"],
|
||||
["keyword", "EndSelect"],
|
||||
["keyword", "EndSwitch"],
|
||||
["keyword", "EndWith"],
|
||||
["keyword", "Enum"],
|
||||
["keyword", "Exit"],
|
||||
["keyword", "ExitLoop"],
|
||||
["keyword", "For"],
|
||||
["keyword", "Func"],
|
||||
["keyword", "Global"],
|
||||
["keyword", "If"],
|
||||
["keyword", "In"],
|
||||
["keyword", "Local"],
|
||||
["keyword", "Next"],
|
||||
["keyword", "Null"],
|
||||
["keyword", "ReDim"],
|
||||
["keyword", "Select"],
|
||||
["keyword", "Static"],
|
||||
["keyword", "Step"],
|
||||
["keyword", "Switch"],
|
||||
["keyword", "Then"],
|
||||
["keyword", "To"],
|
||||
["keyword", "Until"],
|
||||
["keyword", "Volatile"],
|
||||
["keyword", "WEnd"],
|
||||
["keyword", "While"],
|
||||
["keyword", "With"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for keywords.
|
21
dashboard-ui/bower_components/prism/tests/languages/autoit/number_feature.test
vendored
Normal file
21
dashboard-ui/bower_components/prism/tests/languages/autoit/number_feature.test
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
42
|
||||
3.14159
|
||||
4e8
|
||||
3.5E-9
|
||||
0.7e+12
|
||||
0xBadFace
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "42"],
|
||||
["number", "3.14159"],
|
||||
["number", "4e8"],
|
||||
["number", "3.5E-9"],
|
||||
["number", "0.7e+12"],
|
||||
["number", "0xBadFace"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
23
dashboard-ui/bower_components/prism/tests/languages/autoit/operator_feature.test
vendored
Normal file
23
dashboard-ui/bower_components/prism/tests/languages/autoit/operator_feature.test
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
< <= <>
|
||||
> >=
|
||||
+ += - -=
|
||||
* *= / /=
|
||||
& &=
|
||||
? ^
|
||||
And Or Not
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["operator", "<"], ["operator", "<="], ["operator", "<>"],
|
||||
["operator", ">"], ["operator", ">="],
|
||||
["operator", "+"], ["operator", "+="], ["operator", "-"], ["operator", "-="],
|
||||
["operator", "*"], ["operator", "*="], ["operator", "/"], ["operator", "/="],
|
||||
["operator", "&"], ["operator", "&="],
|
||||
["operator", "?"], ["operator", "^"],
|
||||
["operator", "And"], ["operator", "Or"], ["operator", "Not"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for operators.
|
37
dashboard-ui/bower_components/prism/tests/languages/autoit/string_feature.test
vendored
Normal file
37
dashboard-ui/bower_components/prism/tests/languages/autoit/string_feature.test
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
""
|
||||
"foo""bar"
|
||||
"foo %foo% bar $bar$ baz @baz@"
|
||||
''
|
||||
'foo''bar'
|
||||
'foo %foo% bar $bar$ baz @baz@'
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", ["\"\""]],
|
||||
["string", ["\"foo\"\"bar\""]],
|
||||
["string", [
|
||||
"\"foo ",
|
||||
["variable", "%foo%"],
|
||||
" bar ",
|
||||
["variable", "$bar$"],
|
||||
" baz ",
|
||||
["variable", "@baz@"],
|
||||
"\""
|
||||
]],
|
||||
["string", ["''"]],
|
||||
["string", ["'foo''bar'"]],
|
||||
["string", [
|
||||
"'foo ",
|
||||
["variable", "%foo%"],
|
||||
" bar ",
|
||||
["variable", "$bar$"],
|
||||
" baz ",
|
||||
["variable", "@baz@"],
|
||||
"'"
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings and interpolation.
|
15
dashboard-ui/bower_components/prism/tests/languages/autoit/url_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/autoit/url_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <foo.au3>
|
||||
#include "foo.au3"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["directive", "#include"],
|
||||
["url", "<foo.au3>"],
|
||||
["directive", "#include"],
|
||||
["url", "\"foo.au3\""]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for files in includes.
|
19
dashboard-ui/bower_components/prism/tests/languages/autoit/variable_feature.test
vendored
Normal file
19
dashboard-ui/bower_components/prism/tests/languages/autoit/variable_feature.test
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
$foo
|
||||
$foo_bar_42
|
||||
@ComputerName
|
||||
@CPUArch
|
||||
@TAB
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", "$foo"],
|
||||
["variable", "$foo_bar_42"],
|
||||
["variable", "@ComputerName"],
|
||||
["variable", "@CPUArch"],
|
||||
["variable", "@TAB"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for variables and macros.
|
53
dashboard-ui/bower_components/prism/tests/languages/bash/arithmetic_environment_feature.test
vendored
Normal file
53
dashboard-ui/bower_components/prism/tests/languages/bash/arithmetic_environment_feature.test
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
(( 4 + 5 ))
|
||||
$((5 * 7))
|
||||
"foo $((5 * 7)) bar"
|
||||
for (( NUM=1 ; NUM<=1000 ; NUM++ ))
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", [
|
||||
["punctuation", "(("],
|
||||
["number", "4"],
|
||||
["operator", "+"],
|
||||
["number", "5"],
|
||||
["punctuation", "))"]
|
||||
]],
|
||||
["variable", [
|
||||
["variable", "$(("],
|
||||
["number", "5"],
|
||||
["operator", "*"],
|
||||
["number", "7"],
|
||||
["variable", "))"]
|
||||
]],
|
||||
["string", [
|
||||
"\"foo ",
|
||||
["variable", [
|
||||
["variable", "$(("],
|
||||
["number", "5"],
|
||||
["operator", "*"],
|
||||
["number", "7"],
|
||||
["variable", "))"]
|
||||
]],
|
||||
" bar\""
|
||||
]],
|
||||
["keyword", "for"],
|
||||
["variable", [
|
||||
["punctuation", "(("],
|
||||
" NUM",
|
||||
["operator", "="],
|
||||
["number", "1"],
|
||||
["punctuation", ";"],
|
||||
" NUM",
|
||||
["operator", "<="],
|
||||
["number", "1000"],
|
||||
["punctuation", ";"],
|
||||
" NUM",
|
||||
["operator", "++"],
|
||||
["punctuation", "))"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks arithmetic environments
|
34
dashboard-ui/bower_components/prism/tests/languages/bash/command_substitution_feature.test
vendored
Normal file
34
dashboard-ui/bower_components/prism/tests/languages/bash/command_substitution_feature.test
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
$(echo foo)
|
||||
`echo foo`
|
||||
"$(echo foo) bar"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", [
|
||||
["variable", "$("],
|
||||
["keyword", "echo"],
|
||||
" foo",
|
||||
["variable", ")"]
|
||||
]],
|
||||
["variable", [
|
||||
["variable", "`"],
|
||||
["keyword", "echo"],
|
||||
" foo",
|
||||
["variable", "`"]
|
||||
]],
|
||||
["string", [
|
||||
"\"",
|
||||
["variable", [
|
||||
["variable", "$("],
|
||||
["keyword", "echo"],
|
||||
" foo",
|
||||
["variable", ")"]
|
||||
]],
|
||||
" bar\""
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for command substitution.
|
13
dashboard-ui/bower_components/prism/tests/languages/bash/comment_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/bash/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
#foo
|
||||
# bar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", "#foo"],
|
||||
["comment", "# bar"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
101
dashboard-ui/bower_components/prism/tests/languages/bash/function_feature.test
vendored
Normal file
101
dashboard-ui/bower_components/prism/tests/languages/bash/function_feature.test
vendored
Normal file
|
@ -0,0 +1,101 @@
|
|||
alias apropos apt-get aptitude aspell
|
||||
awk basename bash bc bg
|
||||
builtin bzip2 cal cat cd
|
||||
cfdisk chgrp chmod chown chroot
|
||||
chkconfig cksum clear cmp comm
|
||||
command cp cron crontab csplit
|
||||
cut date dc dd ddrescue
|
||||
df diff diff3 dig dir dircolors
|
||||
dirname dirs dmesg du
|
||||
egrep eject enable env ethtool
|
||||
eval exec expand expect
|
||||
export expr fdformat fdisk
|
||||
fg fgrep file find fmt
|
||||
fold format free fsck ftp
|
||||
fuser gawk getopts git grep
|
||||
groupadd groupdel groupmod groups
|
||||
gzip hash head help hg history
|
||||
hostname htop iconv id ifconfig
|
||||
ifdown ifup import install jobs
|
||||
join kill killall less link ln
|
||||
locate logname logout look lpc lpr
|
||||
lprint lprintd lprintq lprm ls
|
||||
lsof make man mkdir mkfifo
|
||||
mkisofs mknod more most mount
|
||||
mtools mtr mv mmv nano netstat
|
||||
nice nl nohup notify-send nslookup
|
||||
open op passwd paste pathchk ping
|
||||
pkill popd pr printcap printenv
|
||||
printf ps pushd pv pwd quota
|
||||
quotacheck quotactl ram rar rcp
|
||||
read readarray readonly reboot
|
||||
rename renice remsync rev rm
|
||||
rmdir rsync screen scp sdiff sed
|
||||
seq service sftp shift
|
||||
shopt shutdown sleep slocate
|
||||
sort source split ssh stat strace
|
||||
su sudo sum suspend sync tail tar
|
||||
tee test time timeout times
|
||||
touch top traceroute trap tr
|
||||
tsort tty type ulimit umask
|
||||
umount unalias uname unexpand uniq
|
||||
units unrar unshar uptime
|
||||
useradd userdel usermod users uuencode
|
||||
uudecode v vdir vi vmstat wait watch
|
||||
wc wget whereis which who whoami write
|
||||
xargs xdg-open yes zip
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["function", "alias"], ["function", "apropos"], ["function", "apt-get"], ["function", "aptitude"], ["function", "aspell"],
|
||||
["function", "awk"], ["function", "basename"], ["function", "bash"], ["function", "bc"], ["function", "bg"],
|
||||
["function", "builtin"], ["function", "bzip2"], ["function", "cal"], ["function", "cat"], ["function", "cd"],
|
||||
["function", "cfdisk"], ["function", "chgrp"], ["function", "chmod"], ["function", "chown"], ["function", "chroot"],
|
||||
["function", "chkconfig"], ["function", "cksum"], ["function", "clear"], ["function", "cmp"], ["function", "comm"],
|
||||
["function", "command"], ["function", "cp"], ["function", "cron"], ["function", "crontab"], ["function", "csplit"],
|
||||
["function", "cut"], ["function", "date"], ["function", "dc"], ["function", "dd"], ["function", "ddrescue"],
|
||||
["function", "df"], ["function", "diff"], ["function", "diff3"], ["function", "dig"], ["function", "dir"], ["function", "dircolors"],
|
||||
["function", "dirname"], ["function", "dirs"], ["function", "dmesg"], ["function", "du"],
|
||||
["function", "egrep"], ["function", "eject"], ["function", "enable"], ["function", "env"], ["function", "ethtool"],
|
||||
["function", "eval"], ["function", "exec"], ["function", "expand"], ["function", "expect"],
|
||||
["function", "export"], ["function", "expr"], ["function", "fdformat"], ["function", "fdisk"],
|
||||
["function", "fg"], ["function", "fgrep"], ["function", "file"], ["function", "find"], ["function", "fmt"],
|
||||
["function", "fold"], ["function", "format"], ["function", "free"], ["function", "fsck"], ["function", "ftp"],
|
||||
["function", "fuser"], ["function", "gawk"], ["function", "getopts"], ["function", "git"], ["function", "grep"],
|
||||
["function", "groupadd"], ["function", "groupdel"], ["function", "groupmod"], ["function", "groups"],
|
||||
["function", "gzip"], ["function", "hash"], ["function", "head"], ["function", "help"], ["function", "hg"], ["function", "history"],
|
||||
["function", "hostname"], ["function", "htop"], ["function", "iconv"], ["function", "id"], ["function", "ifconfig"],
|
||||
["function", "ifdown"], ["function", "ifup"], ["function", "import"], ["function", "install"], ["function", "jobs"],
|
||||
["function", "join"], ["function", "kill"], ["function", "killall"], ["function", "less"], ["function", "link"], ["function", "ln"],
|
||||
["function", "locate"], ["function", "logname"], ["function", "logout"], ["function", "look"], ["function", "lpc"], ["function", "lpr"],
|
||||
["function", "lprint"], ["function", "lprintd"], ["function", "lprintq"], ["function", "lprm"], ["function", "ls"],
|
||||
["function", "lsof"], ["function", "make"], ["function", "man"], ["function", "mkdir"], ["function", "mkfifo"],
|
||||
["function", "mkisofs"], ["function", "mknod"], ["function", "more"], ["function", "most"], ["function", "mount"],
|
||||
["function", "mtools"], ["function", "mtr"], ["function", "mv"], ["function", "mmv"], ["function", "nano"], ["function", "netstat"],
|
||||
["function", "nice"], ["function", "nl"], ["function", "nohup"], ["function", "notify-send"], ["function", "nslookup"],
|
||||
["function", "open"], ["function", "op"], ["function", "passwd"], ["function", "paste"], ["function", "pathchk"], ["function", "ping"],
|
||||
["function", "pkill"], ["function", "popd"], ["function", "pr"], ["function", "printcap"], ["function", "printenv"],
|
||||
["function", "printf"], ["function", "ps"], ["function", "pushd"], ["function", "pv"], ["function", "pwd"], ["function", "quota"],
|
||||
["function", "quotacheck"], ["function", "quotactl"], ["function", "ram"], ["function", "rar"], ["function", "rcp"],
|
||||
["function", "read"], ["function", "readarray"], ["function", "readonly"], ["function", "reboot"],
|
||||
["function", "rename"], ["function", "renice"], ["function", "remsync"], ["function", "rev"], ["function", "rm"],
|
||||
["function", "rmdir"], ["function", "rsync"], ["function", "screen"], ["function", "scp"], ["function", "sdiff"], ["function", "sed"],
|
||||
["function", "seq"], ["function", "service"], ["function", "sftp"], ["function", "shift"],
|
||||
["function", "shopt"], ["function", "shutdown"], ["function", "sleep"], ["function", "slocate"],
|
||||
["function", "sort"], ["function", "source"], ["function", "split"], ["function", "ssh"], ["function", "stat"], ["function", "strace"],
|
||||
["function", "su"], ["function", "sudo"], ["function", "sum"], ["function", "suspend"], ["function", "sync"], ["function", "tail"], ["function", "tar"],
|
||||
["function", "tee"], ["function", "test"], ["function", "time"], ["function", "timeout"], ["function", "times"],
|
||||
["function", "touch"], ["function", "top"], ["function", "traceroute"], ["function", "trap"], ["function", "tr"],
|
||||
["function", "tsort"], ["function", "tty"], ["function", "type"], ["function", "ulimit"], ["function", "umask"],
|
||||
["function", "umount"], ["function", "unalias"], ["function", "uname"], ["function", "unexpand"], ["function", "uniq"],
|
||||
["function", "units"], ["function", "unrar"], ["function", "unshar"], ["function", "uptime"],
|
||||
["function", "useradd"], ["function", "userdel"], ["function", "usermod"], ["function", "users"], ["function", "uuencode"],
|
||||
["function", "uudecode"], ["function", "v"], ["function", "vdir"], ["function", "vi"], ["function", "vmstat"], ["function", "wait"], ["function", "watch"],
|
||||
["function", "wc"], ["function", "wget"], ["function", "whereis"], ["function", "which"], ["function", "who"], ["function", "whoami"], ["function", "write"],
|
||||
["function", "xargs"], ["function", "xdg-open"], ["function", "yes"], ["function", "zip"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all functions.
|
20
dashboard-ui/bower_components/prism/tests/languages/bash/keyword_feature.test
vendored
Normal file
20
dashboard-ui/bower_components/prism/tests/languages/bash/keyword_feature.test
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
if then else elif fi
|
||||
for break continue while
|
||||
in case function select
|
||||
do done until echo exit
|
||||
return set declare
|
||||
. :
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "if"], ["keyword", "then"], ["keyword", "else"], ["keyword", "elif"], ["keyword", "fi"],
|
||||
["keyword", "for"], ["keyword", "break"], ["keyword", "continue"], ["keyword", "while"],
|
||||
["keyword", "in"], ["keyword", "case"], ["keyword", "function"], ["keyword", "select"],
|
||||
["keyword", "do"], ["keyword", "done"], ["keyword", "until"], ["keyword", "echo"], ["keyword", "exit"],
|
||||
["keyword", "return"], ["keyword", "set"], ["keyword", "declare"],
|
||||
["keyword", "."], ["keyword", ":"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for all keywords.
|
11
dashboard-ui/bower_components/prism/tests/languages/bash/shebang_feature.test
vendored
Normal file
11
dashboard-ui/bower_components/prism/tests/languages/bash/shebang_feature.test
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["shebang", "#!/bin/bash"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for shebang.
|
60
dashboard-ui/bower_components/prism/tests/languages/bash/string_feature.test
vendored
Normal file
60
dashboard-ui/bower_components/prism/tests/languages/bash/string_feature.test
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
""
|
||||
''
|
||||
"foo"
|
||||
'foo'
|
||||
"foo
|
||||
bar"
|
||||
'foo
|
||||
bar'
|
||||
"'foo'"
|
||||
'"bar"'
|
||||
"$@"
|
||||
"${foo}"
|
||||
<< STRING_END
|
||||
foo
|
||||
bar
|
||||
STRING_END
|
||||
<< EOF
|
||||
foo $@
|
||||
bar
|
||||
EOF
|
||||
<< 'EOF'
|
||||
'single quoted string'
|
||||
"double quoted string"
|
||||
EOF
|
||||
<< "EOF"
|
||||
foo
|
||||
bar
|
||||
EOF
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", ["\"\""]],
|
||||
["string", ["''"]],
|
||||
["string", ["\"foo\""]],
|
||||
["string", ["'foo'"]],
|
||||
["string", ["\"foo\r\nbar\""]],
|
||||
["string", ["'foo\r\nbar'"]],
|
||||
["string", ["\"'foo'\""]],
|
||||
["string", ["'\"bar\"'"]],
|
||||
["string", [
|
||||
"\"", ["variable", "$@"], "\""
|
||||
]],
|
||||
["string", [
|
||||
"\"", ["variable", "${foo}"], "\""
|
||||
]],
|
||||
["operator", "<<"],
|
||||
["string", ["STRING_END\r\nfoo\r\nbar\r\nSTRING_END"]],
|
||||
["operator", "<<"],
|
||||
["string", ["EOF\r\nfoo ", ["variable", "$@"], "\r\nbar\r\nEOF"]],
|
||||
["operator", "<<"],
|
||||
["string", ["'EOF'\r\n'single quoted string'\r\n\"double quoted string\"\r\nEOF"]],
|
||||
["operator", "<<"],
|
||||
["string", ["\"EOF\"\r\nfoo\r\nbar\r\nEOF"]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for single-quoted and double-quoted strings.
|
||||
Also checks for variables in strings.
|
15
dashboard-ui/bower_components/prism/tests/languages/bash/variable_feature.test
vendored
Normal file
15
dashboard-ui/bower_components/prism/tests/languages/bash/variable_feature.test
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
$foo
|
||||
$@
|
||||
${foo bar}
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", "$foo"],
|
||||
["variable", "$@"],
|
||||
["variable", "${foo bar}"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for variables.
|
13
dashboard-ui/bower_components/prism/tests/languages/basic/comment_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/basic/comment_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
! Foobar
|
||||
REM Foobar
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["comment", ["! Foobar"]],
|
||||
["comment", [["keyword", "REM"], " Foobar"]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for comments.
|
309
dashboard-ui/bower_components/prism/tests/languages/basic/function_feature.test
vendored
Normal file
309
dashboard-ui/bower_components/prism/tests/languages/basic/function_feature.test
vendored
Normal file
|
@ -0,0 +1,309 @@
|
|||
ABS
|
||||
ACCESS
|
||||
ACOS
|
||||
ANGLE
|
||||
AREA
|
||||
ARITHMETIC
|
||||
ARRAY
|
||||
ASIN
|
||||
ASK
|
||||
AT
|
||||
ATN
|
||||
BASE
|
||||
BEGIN
|
||||
BREAK
|
||||
CAUSE
|
||||
CEIL
|
||||
CHR
|
||||
CLIP
|
||||
COLLATE
|
||||
COLOR
|
||||
CON
|
||||
COS
|
||||
COSH
|
||||
COT
|
||||
CSC
|
||||
DATE
|
||||
DATUM
|
||||
DEBUG
|
||||
DECIMAL
|
||||
DEF
|
||||
DEG
|
||||
DEGREES
|
||||
DELETE
|
||||
DET
|
||||
DEVICE
|
||||
DISPLAY
|
||||
DOT
|
||||
ELAPSED
|
||||
EPS
|
||||
ERASABLE
|
||||
EXLINE
|
||||
EXP
|
||||
EXTERNAL
|
||||
EXTYPE
|
||||
FILETYPE
|
||||
FIXED
|
||||
FP
|
||||
GO
|
||||
GRAPH
|
||||
HANDLER
|
||||
IDN
|
||||
IMAGE
|
||||
IN
|
||||
INT
|
||||
INTERNAL
|
||||
IP
|
||||
IS
|
||||
KEYED
|
||||
LBOUND
|
||||
LCASE
|
||||
LEFT
|
||||
LEN
|
||||
LENGTH
|
||||
LET
|
||||
LINE
|
||||
LINES
|
||||
LOG
|
||||
LOG10
|
||||
LOG2
|
||||
LTRIM
|
||||
MARGIN
|
||||
MAT
|
||||
MAX
|
||||
MAXNUM
|
||||
MID
|
||||
MIN
|
||||
MISSING
|
||||
MOD
|
||||
NATIVE
|
||||
NUL
|
||||
NUMERIC
|
||||
OF
|
||||
OPTION
|
||||
ORD
|
||||
ORGANIZATION
|
||||
OUTIN
|
||||
OUTPUT
|
||||
PI
|
||||
POINT
|
||||
POINTER
|
||||
POINTS
|
||||
POS
|
||||
PRINT
|
||||
PROGRAM
|
||||
PROMPT
|
||||
RAD
|
||||
RADIANS
|
||||
RANDOMIZE
|
||||
RECORD
|
||||
RECSIZE
|
||||
RECTYPE
|
||||
RELATIVE
|
||||
REMAINDER
|
||||
REPEAT
|
||||
REST
|
||||
RETRY
|
||||
REWRITE
|
||||
RIGHT
|
||||
RND
|
||||
ROUND
|
||||
RTRIM
|
||||
SAME
|
||||
SEC
|
||||
SELECT
|
||||
SEQUENTIAL
|
||||
SET
|
||||
SETTER
|
||||
SGN
|
||||
SIN
|
||||
SINH
|
||||
SIZE
|
||||
SKIP
|
||||
SQR
|
||||
STANDARD
|
||||
STATUS
|
||||
STR
|
||||
STREAM
|
||||
STYLE
|
||||
TAB
|
||||
TAN
|
||||
TANH
|
||||
TEMPLATE
|
||||
TEXT
|
||||
THERE
|
||||
TIME
|
||||
TIMEOUT
|
||||
TRACE
|
||||
TRANSFORM
|
||||
TRUNCATE
|
||||
UBOUND
|
||||
UCASE
|
||||
USE
|
||||
VAL
|
||||
VARIABLE
|
||||
VIEWPORT
|
||||
WHEN
|
||||
WINDOW
|
||||
WITH
|
||||
ZER
|
||||
ZONEWIDTH
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["function", "ABS"],
|
||||
["function", "ACCESS"],
|
||||
["function", "ACOS"],
|
||||
["function", "ANGLE"],
|
||||
["function", "AREA"],
|
||||
["function", "ARITHMETIC"],
|
||||
["function", "ARRAY"],
|
||||
["function", "ASIN"],
|
||||
["function", "ASK"],
|
||||
["function", "AT"],
|
||||
["function", "ATN"],
|
||||
["function", "BASE"],
|
||||
["function", "BEGIN"],
|
||||
["function", "BREAK"],
|
||||
["function", "CAUSE"],
|
||||
["function", "CEIL"],
|
||||
["function", "CHR"],
|
||||
["function", "CLIP"],
|
||||
["function", "COLLATE"],
|
||||
["function", "COLOR"],
|
||||
["function", "CON"],
|
||||
["function", "COS"],
|
||||
["function", "COSH"],
|
||||
["function", "COT"],
|
||||
["function", "CSC"],
|
||||
["function", "DATE"],
|
||||
["function", "DATUM"],
|
||||
["function", "DEBUG"],
|
||||
["function", "DECIMAL"],
|
||||
["function", "DEF"],
|
||||
["function", "DEG"],
|
||||
["function", "DEGREES"],
|
||||
["function", "DELETE"],
|
||||
["function", "DET"],
|
||||
["function", "DEVICE"],
|
||||
["function", "DISPLAY"],
|
||||
["function", "DOT"],
|
||||
["function", "ELAPSED"],
|
||||
["function", "EPS"],
|
||||
["function", "ERASABLE"],
|
||||
["function", "EXLINE"],
|
||||
["function", "EXP"],
|
||||
["function", "EXTERNAL"],
|
||||
["function", "EXTYPE"],
|
||||
["function", "FILETYPE"],
|
||||
["function", "FIXED"],
|
||||
["function", "FP"],
|
||||
["function", "GO"],
|
||||
["function", "GRAPH"],
|
||||
["function", "HANDLER"],
|
||||
["function", "IDN"],
|
||||
["function", "IMAGE"],
|
||||
["function", "IN"],
|
||||
["function", "INT"],
|
||||
["function", "INTERNAL"],
|
||||
["function", "IP"],
|
||||
["function", "IS"],
|
||||
["function", "KEYED"],
|
||||
["function", "LBOUND"],
|
||||
["function", "LCASE"],
|
||||
["function", "LEFT"],
|
||||
["function", "LEN"],
|
||||
["function", "LENGTH"],
|
||||
["function", "LET"],
|
||||
["function", "LINE"],
|
||||
["function", "LINES"],
|
||||
["function", "LOG"],
|
||||
["function", "LOG10"],
|
||||
["function", "LOG2"],
|
||||
["function", "LTRIM"],
|
||||
["function", "MARGIN"],
|
||||
["function", "MAT"],
|
||||
["function", "MAX"],
|
||||
["function", "MAXNUM"],
|
||||
["function", "MID"],
|
||||
["function", "MIN"],
|
||||
["function", "MISSING"],
|
||||
["function", "MOD"],
|
||||
["function", "NATIVE"],
|
||||
["function", "NUL"],
|
||||
["function", "NUMERIC"],
|
||||
["function", "OF"],
|
||||
["function", "OPTION"],
|
||||
["function", "ORD"],
|
||||
["function", "ORGANIZATION"],
|
||||
["function", "OUTIN"],
|
||||
["function", "OUTPUT"],
|
||||
["function", "PI"],
|
||||
["function", "POINT"],
|
||||
["function", "POINTER"],
|
||||
["function", "POINTS"],
|
||||
["function", "POS"],
|
||||
["function", "PRINT"],
|
||||
["function", "PROGRAM"],
|
||||
["function", "PROMPT"],
|
||||
["function", "RAD"],
|
||||
["function", "RADIANS"],
|
||||
["function", "RANDOMIZE"],
|
||||
["function", "RECORD"],
|
||||
["function", "RECSIZE"],
|
||||
["function", "RECTYPE"],
|
||||
["function", "RELATIVE"],
|
||||
["function", "REMAINDER"],
|
||||
["function", "REPEAT"],
|
||||
["function", "REST"],
|
||||
["function", "RETRY"],
|
||||
["function", "REWRITE"],
|
||||
["function", "RIGHT"],
|
||||
["function", "RND"],
|
||||
["function", "ROUND"],
|
||||
["function", "RTRIM"],
|
||||
["function", "SAME"],
|
||||
["function", "SEC"],
|
||||
["function", "SELECT"],
|
||||
["function", "SEQUENTIAL"],
|
||||
["function", "SET"],
|
||||
["function", "SETTER"],
|
||||
["function", "SGN"],
|
||||
["function", "SIN"],
|
||||
["function", "SINH"],
|
||||
["function", "SIZE"],
|
||||
["function", "SKIP"],
|
||||
["function", "SQR"],
|
||||
["function", "STANDARD"],
|
||||
["function", "STATUS"],
|
||||
["function", "STR"],
|
||||
["function", "STREAM"],
|
||||
["function", "STYLE"],
|
||||
["function", "TAB"],
|
||||
["function", "TAN"],
|
||||
["function", "TANH"],
|
||||
["function", "TEMPLATE"],
|
||||
["function", "TEXT"],
|
||||
["function", "THERE"],
|
||||
["function", "TIME"],
|
||||
["function", "TIMEOUT"],
|
||||
["function", "TRACE"],
|
||||
["function", "TRANSFORM"],
|
||||
["function", "TRUNCATE"],
|
||||
["function", "UBOUND"],
|
||||
["function", "UCASE"],
|
||||
["function", "USE"],
|
||||
["function", "VAL"],
|
||||
["function", "VARIABLE"],
|
||||
["function", "VIEWPORT"],
|
||||
["function", "WHEN"],
|
||||
["function", "WINDOW"],
|
||||
["function", "WITH"],
|
||||
["function", "ZER"],
|
||||
["function", "ZONEWIDTH"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for functions.
|
213
dashboard-ui/bower_components/prism/tests/languages/basic/keyword_feature.test
vendored
Normal file
213
dashboard-ui/bower_components/prism/tests/languages/basic/keyword_feature.test
vendored
Normal file
|
@ -0,0 +1,213 @@
|
|||
AS
|
||||
BEEP
|
||||
BLOAD
|
||||
BSAVE
|
||||
CALL
|
||||
CALL ABSOLUTE
|
||||
CASE
|
||||
CHAIN
|
||||
CHDIR
|
||||
CLEAR
|
||||
CLOSE
|
||||
CLS
|
||||
COM
|
||||
COMMON
|
||||
CONST
|
||||
DATA
|
||||
DECLARE
|
||||
DEF FN
|
||||
DEF SEG
|
||||
DEFDBL
|
||||
DEFINT
|
||||
DEFLNG
|
||||
DEFSNG
|
||||
DEFSTR
|
||||
DIM
|
||||
DO
|
||||
DOUBLE
|
||||
ELSE
|
||||
ELSEIF
|
||||
END
|
||||
ENVIRON
|
||||
ERASE
|
||||
ERROR
|
||||
EXIT
|
||||
FIELD
|
||||
FILES
|
||||
FOR
|
||||
FUNCTION
|
||||
GET
|
||||
GOSUB
|
||||
GOTO
|
||||
IF
|
||||
INPUT
|
||||
INTEGER
|
||||
IOCTL
|
||||
KEY
|
||||
KILL
|
||||
LINE INPUT
|
||||
LOCATE
|
||||
LOCK
|
||||
LONG
|
||||
LOOP
|
||||
LSET
|
||||
MKDIR
|
||||
NAME
|
||||
NEXT
|
||||
OFF
|
||||
ON
|
||||
ON COM
|
||||
ON ERROR
|
||||
ON KEY
|
||||
ON TIMER
|
||||
OPEN
|
||||
OPTION BASE
|
||||
OUT
|
||||
POKE
|
||||
PUT
|
||||
READ
|
||||
REDIM
|
||||
REM
|
||||
RESTORE
|
||||
RESUME
|
||||
RETURN
|
||||
RMDIR
|
||||
RSET
|
||||
RUN
|
||||
SHARED
|
||||
SINGLE
|
||||
SELECT CASE
|
||||
SHELL
|
||||
SLEEP
|
||||
STATIC
|
||||
STEP
|
||||
STOP
|
||||
STRING
|
||||
SUB
|
||||
SWAP
|
||||
SYSTEM
|
||||
THEN
|
||||
TIMER
|
||||
TO
|
||||
TROFF
|
||||
TRON
|
||||
TYPE
|
||||
UNLOCK
|
||||
UNTIL
|
||||
USING
|
||||
VIEW PRINT
|
||||
WAIT
|
||||
WEND
|
||||
WHILE
|
||||
WRITE
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["keyword", "AS"],
|
||||
["keyword", "BEEP"],
|
||||
["keyword", "BLOAD"],
|
||||
["keyword", "BSAVE"],
|
||||
["keyword", "CALL"],
|
||||
["keyword", "CALL ABSOLUTE"],
|
||||
["keyword", "CASE"],
|
||||
["keyword", "CHAIN"],
|
||||
["keyword", "CHDIR"],
|
||||
["keyword", "CLEAR"],
|
||||
["keyword", "CLOSE"],
|
||||
["keyword", "CLS"],
|
||||
["keyword", "COM"],
|
||||
["keyword", "COMMON"],
|
||||
["keyword", "CONST"],
|
||||
["keyword", "DATA"],
|
||||
["keyword", "DECLARE"],
|
||||
["keyword", "DEF FN"],
|
||||
["keyword", "DEF SEG"],
|
||||
["keyword", "DEFDBL"],
|
||||
["keyword", "DEFINT"],
|
||||
["keyword", "DEFLNG"],
|
||||
["keyword", "DEFSNG"],
|
||||
["keyword", "DEFSTR"],
|
||||
["keyword", "DIM"],
|
||||
["keyword", "DO"],
|
||||
["keyword", "DOUBLE"],
|
||||
["keyword", "ELSE"],
|
||||
["keyword", "ELSEIF"],
|
||||
["keyword", "END"],
|
||||
["keyword", "ENVIRON"],
|
||||
["keyword", "ERASE"],
|
||||
["keyword", "ERROR"],
|
||||
["keyword", "EXIT"],
|
||||
["keyword", "FIELD"],
|
||||
["keyword", "FILES"],
|
||||
["keyword", "FOR"],
|
||||
["keyword", "FUNCTION"],
|
||||
["keyword", "GET"],
|
||||
["keyword", "GOSUB"],
|
||||
["keyword", "GOTO"],
|
||||
["keyword", "IF"],
|
||||
["keyword", "INPUT"],
|
||||
["keyword", "INTEGER"],
|
||||
["keyword", "IOCTL"],
|
||||
["keyword", "KEY"],
|
||||
["keyword", "KILL"],
|
||||
["keyword", "LINE INPUT"],
|
||||
["keyword", "LOCATE"],
|
||||
["keyword", "LOCK"],
|
||||
["keyword", "LONG"],
|
||||
["keyword", "LOOP"],
|
||||
["keyword", "LSET"],
|
||||
["keyword", "MKDIR"],
|
||||
["keyword", "NAME"],
|
||||
["keyword", "NEXT"],
|
||||
["keyword", "OFF"],
|
||||
["keyword", "ON"],
|
||||
["keyword", "ON COM"],
|
||||
["keyword", "ON ERROR"],
|
||||
["keyword", "ON KEY"],
|
||||
["keyword", "ON TIMER"],
|
||||
["keyword", "OPEN"],
|
||||
["keyword", "OPTION BASE"],
|
||||
["keyword", "OUT"],
|
||||
["keyword", "POKE"],
|
||||
["keyword", "PUT"],
|
||||
["keyword", "READ"],
|
||||
["keyword", "REDIM"],
|
||||
["keyword", "REM"],
|
||||
["keyword", "RESTORE"],
|
||||
["keyword", "RESUME"],
|
||||
["keyword", "RETURN"],
|
||||
["keyword", "RMDIR"],
|
||||
["keyword", "RSET"],
|
||||
["keyword", "RUN"],
|
||||
["keyword", "SHARED"],
|
||||
["keyword", "SINGLE"],
|
||||
["keyword", "SELECT CASE"],
|
||||
["keyword", "SHELL"],
|
||||
["keyword", "SLEEP"],
|
||||
["keyword", "STATIC"],
|
||||
["keyword", "STEP"],
|
||||
["keyword", "STOP"],
|
||||
["keyword", "STRING"],
|
||||
["keyword", "SUB"],
|
||||
["keyword", "SWAP"],
|
||||
["keyword", "SYSTEM"],
|
||||
["keyword", "THEN"],
|
||||
["keyword", "TIMER"],
|
||||
["keyword", "TO"],
|
||||
["keyword", "TROFF"],
|
||||
["keyword", "TRON"],
|
||||
["keyword", "TYPE"],
|
||||
["keyword", "UNLOCK"],
|
||||
["keyword", "UNTIL"],
|
||||
["keyword", "USING"],
|
||||
["keyword", "VIEW PRINT"],
|
||||
["keyword", "WAIT"],
|
||||
["keyword", "WEND"],
|
||||
["keyword", "WHILE"],
|
||||
["keyword", "WRITE"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for keywords.
|
19
dashboard-ui/bower_components/prism/tests/languages/basic/number_feature.test
vendored
Normal file
19
dashboard-ui/bower_components/prism/tests/languages/basic/number_feature.test
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
42
|
||||
3.14159
|
||||
2e8
|
||||
3.4E-9
|
||||
0.7E+12
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["number", "42"],
|
||||
["number", "3.14159"],
|
||||
["number", "2e8"],
|
||||
["number", "3.4E-9"],
|
||||
["number", "0.7E+12"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for numbers.
|
21
dashboard-ui/bower_components/prism/tests/languages/basic/operator_feature.test
vendored
Normal file
21
dashboard-ui/bower_components/prism/tests/languages/basic/operator_feature.test
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
< <= <>
|
||||
> >=
|
||||
+ - * /
|
||||
^ = &
|
||||
AND EQV IMP
|
||||
NOT OR XOR
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["operator", "<"], ["operator", "<="], ["operator", "<>"],
|
||||
["operator", ">"], ["operator", ">="],
|
||||
["operator", "+"], ["operator", "-"], ["operator", "*"], ["operator", "/"],
|
||||
["operator", "^"], ["operator", "="], ["operator", "&"],
|
||||
["operator", "AND"], ["operator", "EQV"], ["operator", "IMP"],
|
||||
["operator", "NOT"], ["operator", "OR"], ["operator", "XOR"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for operators.
|
13
dashboard-ui/bower_components/prism/tests/languages/basic/string_feature.test
vendored
Normal file
13
dashboard-ui/bower_components/prism/tests/languages/basic/string_feature.test
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
""
|
||||
"fo""obar"
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["string", "\"\""],
|
||||
["string", "\"fo\"\"obar\""]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for strings.
|
103
dashboard-ui/bower_components/prism/tests/languages/batch/command_feature.test
vendored
Normal file
103
dashboard-ui/bower_components/prism/tests/languages/batch/command_feature.test
vendored
Normal file
|
@ -0,0 +1,103 @@
|
|||
FOR /l %%a in (5,-1,1) do (TITLE %title% -- closing in %%as)
|
||||
SET title=%~n0
|
||||
echo.Hello World
|
||||
@ECHO OFF
|
||||
if not defined ProgressFormat set "ProgressFormat=[PPPP]"
|
||||
EXIT /b
|
||||
set /a ProgressCnt+=1
|
||||
IF "%~1" NEQ "" (SET %~1=%new%) ELSE (echo.%new%)
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["command", [
|
||||
["keyword", "FOR"],
|
||||
["parameter", ["/l"]],
|
||||
["variable", "%%a"],
|
||||
["keyword", "in"],
|
||||
["punctuation", "("],
|
||||
["number", "5"], ["punctuation", ","],
|
||||
["number", "-1"], ["punctuation", ","],
|
||||
["number", "1"], ["punctuation", ")"],
|
||||
["keyword", "do"]
|
||||
]],
|
||||
["punctuation", "("],
|
||||
["command", [
|
||||
["keyword", "TITLE"],
|
||||
["variable", "%title%"],
|
||||
" -- closing in ",
|
||||
["variable", "%%as"]
|
||||
]],
|
||||
["punctuation", ")"],
|
||||
|
||||
["command", [
|
||||
["keyword", "SET"],
|
||||
["variable", "title"],
|
||||
["operator", "="],
|
||||
["variable", "%~n0"]
|
||||
]],
|
||||
|
||||
["command", [
|
||||
["keyword", "echo"],
|
||||
".Hello World"
|
||||
]],
|
||||
|
||||
["operator", "@"],
|
||||
["command", [
|
||||
["keyword", "ECHO"],
|
||||
" OFF"
|
||||
]],
|
||||
|
||||
["command", [
|
||||
["keyword", "if"],
|
||||
["keyword", "not"],
|
||||
["keyword", "defined"],
|
||||
" ProgressFormat"
|
||||
]],
|
||||
["command", [
|
||||
["keyword", "set"],
|
||||
["string", "\"ProgressFormat=[PPPP]\""]
|
||||
]],
|
||||
|
||||
["command", [
|
||||
["keyword", "EXIT"],
|
||||
["parameter", ["/b"]]
|
||||
]],
|
||||
|
||||
["command", [
|
||||
["keyword", "set"],
|
||||
["parameter", ["/a"]],
|
||||
["variable", "ProgressCnt"],
|
||||
["operator", "+="],
|
||||
["number", "1"]
|
||||
]],
|
||||
|
||||
["command", [
|
||||
["keyword", "IF"],
|
||||
["string", "\"%~1\""],
|
||||
["operator", "NEQ"],
|
||||
["string", "\"\""]
|
||||
]],
|
||||
["punctuation", "("],
|
||||
["command", [
|
||||
["keyword", "SET"],
|
||||
["variable", "%~1"],
|
||||
["operator", "="],
|
||||
["variable", "%new%"]
|
||||
]],
|
||||
["punctuation", ")"],
|
||||
["command", [
|
||||
["keyword", "ELSE"]
|
||||
]],
|
||||
["punctuation", "("],
|
||||
["command", [
|
||||
["keyword", "echo"],
|
||||
".",
|
||||
["variable", "%new%"]
|
||||
]],
|
||||
["punctuation", ")"]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for commands.
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue