mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Create julia.test.ts
This commit is contained in:
parent
1e47fbb52a
commit
39003d4b56
1 changed files with 36 additions and 0 deletions
36
src/julia/julia.test.ts
Normal file
36
src/julia/julia.test.ts
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* 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 '../test/testRunner';
|
||||
|
||||
testTokenization('julia', [
|
||||
[{
|
||||
line: "a = 1",
|
||||
tokens: [
|
||||
{startIndex: 0, type: "identifier.julia"},
|
||||
{startIndex: 1, type: ""},
|
||||
{startIndex: 2, type: "source.julia"},
|
||||
{startIndex: 3, type: ""},
|
||||
{startIndex: 4, type: "number.julia"}
|
||||
]
|
||||
}],
|
||||
|
||||
[{
|
||||
line: "b(c) = 2c"
|
||||
tokens: [
|
||||
{startIndex: 0, type: "keyword.flow.julia"},
|
||||
{startIndex: 1, type: "delimiter.parenthesis.julia"},
|
||||
{startIndex: 2, type: "identifier.julia"},
|
||||
{startIndex: 3, type: "delimiter.parenthesis.julia"},
|
||||
{startIndex: 4, type: ""},
|
||||
{startIndex: 5, type: "source.julia"},
|
||||
{startIndex: 6, type: ""},
|
||||
{startIndex: 7, type: "number.julia"},
|
||||
{startIndex: 8, type: "identifer.julia"}
|
||||
]
|
||||
}]
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue