mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
44 lines
No EOL
1.2 KiB
TypeScript
44 lines
No EOL
1.2 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
|
|
import {testTokenization} from './testRunner';
|
|
|
|
testTokenization('markdown', [
|
|
|
|
[{
|
|
line: '# Some header',
|
|
tokens: [
|
|
{ startIndex: 0, type: 'entity.name.tag.md' }
|
|
]
|
|
}],
|
|
|
|
[{
|
|
line: '* Some list item',
|
|
tokens: [
|
|
{ startIndex: 0, type: 'keyword.md' },
|
|
{ startIndex: 2, type: '' }
|
|
]
|
|
}],
|
|
|
|
[{
|
|
line: 'some `code`',
|
|
tokens: [
|
|
{ startIndex: 0, type: '' },
|
|
{ startIndex: 5, type: 'variable.md' }
|
|
]
|
|
}],
|
|
|
|
[{
|
|
line: 'some ',
|
|
tokens: [
|
|
{ startIndex: 0, type: '' },
|
|
{ startIndex: 5, type: 'string.link.md' },
|
|
{ startIndex: 7, type: '' },
|
|
{ startIndex: 11, type: 'string.link.md' }
|
|
]
|
|
}]
|
|
]); |