mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Add php
This commit is contained in:
parent
712fb631b5
commit
f1f3088632
9 changed files with 2351 additions and 4 deletions
|
|
@ -35,6 +35,7 @@ requirejs([
|
|||
'out/test/lua.test',
|
||||
'out/test/markdown.test',
|
||||
'out/test/objective-c.test',
|
||||
'out/test/php.test',
|
||||
'out/test/postiats.test',
|
||||
'out/test/powershell.test',
|
||||
'out/test/python.test',
|
||||
|
|
|
|||
1882
test/php.test.ts
Normal file
1882
test/php.test.ts
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -19,11 +19,18 @@ export interface ITestItem {
|
|||
tokens: IRelaxedToken[];
|
||||
}
|
||||
|
||||
export function testTokenization(languageId:string, tests:ITestItem[][]): void {
|
||||
suite(languageId + ' tokenization', () => {
|
||||
export function testTokenization(_language:string|string[], tests:ITestItem[][]): void {
|
||||
let languages:string[];
|
||||
if (typeof _language === 'string') {
|
||||
languages = [_language];
|
||||
} else {
|
||||
languages = _language;
|
||||
}
|
||||
let mainLanguage = languages[0];
|
||||
suite(mainLanguage + ' tokenization', () => {
|
||||
test('', (done) => {
|
||||
loadLanguage(languageId).then(() => {
|
||||
runTests(languageId, tests);
|
||||
_monaco.Promise.join(languages.map(l => loadLanguage(l))).then(() => {
|
||||
runTests(mainLanguage, tests);
|
||||
done();
|
||||
}).then(null, done);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue