mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
[ABAP] Language fixes
This commit is contained in:
parent
77e39dbd1e
commit
ce6687e23b
2 changed files with 113 additions and 14 deletions
|
|
@ -92,4 +92,93 @@ testTokenization('abap', [
|
|||
{ startIndex: 0, type: 'string.abap' },
|
||||
]
|
||||
}],
|
||||
[{
|
||||
line: 'FIELD-SYMBOLS <foo>.',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'keyword.abap' },
|
||||
{ startIndex: 13, type: '' },
|
||||
{ startIndex: 14, type: 'identifier.abap' },
|
||||
{ startIndex: 19, type: 'delimiter.abap' },
|
||||
]
|
||||
}],
|
||||
[{
|
||||
line: 'IF foo IS NOT INITIAL.',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'keyword.abap' },
|
||||
{ startIndex: 2, type: '' },
|
||||
{ startIndex: 3, type: 'identifier.abap' },
|
||||
{ startIndex: 6, type: '' },
|
||||
{ startIndex: 7, type: 'keyword.abap' },
|
||||
{ startIndex: 9, type: '' },
|
||||
{ startIndex: 10, type: 'keyword.abap' },
|
||||
{ startIndex: 13, type: '' },
|
||||
{ startIndex: 14, type: 'keyword.abap' },
|
||||
{ startIndex: 21, type: 'delimiter.abap' },
|
||||
]
|
||||
}],
|
||||
[{
|
||||
line: 'WRITE `moo`.',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'keyword.abap' },
|
||||
{ startIndex: 5, type: '' },
|
||||
{ startIndex: 6, type: 'string.abap' },
|
||||
{ startIndex: 11, type: 'delimiter.abap' },
|
||||
]
|
||||
}],
|
||||
[{
|
||||
line: 'FORM foo.',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'keyword.abap' },
|
||||
{ startIndex: 4, type: '' },
|
||||
{ startIndex: 5, type: 'identifier.abap' },
|
||||
{ startIndex: 8, type: 'delimiter.abap' },
|
||||
]
|
||||
}],
|
||||
[{
|
||||
line: 'moo = CONV #( 1 ).',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'identifier.abap' },
|
||||
{ startIndex: 3, type: '' },
|
||||
{ startIndex: 4, type: 'operator.abap' },
|
||||
{ startIndex: 5, type: '' },
|
||||
{ startIndex: 6, type: 'keyword.abap' },
|
||||
{ startIndex: 10, type: '' },
|
||||
{ startIndex: 11, type: 'operator.abap' },
|
||||
{ startIndex: 12, type: "delimiter.parenthesis.abap" },
|
||||
{ startIndex: 13, type: "" },
|
||||
{ startIndex: 14, type: "number.abap" },
|
||||
{ startIndex: 15, type: "" },
|
||||
{ startIndex: 16, type: "delimiter.parenthesis.abap" },
|
||||
{ startIndex: 17, type: "delimiter.abap" }
|
||||
]
|
||||
}],
|
||||
[{
|
||||
line: 'WRITE foo ##pragma.',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'keyword.abap' },
|
||||
{ startIndex: 5, type: '' },
|
||||
{ startIndex: 6, type: 'identifier.abap' },
|
||||
{ startIndex: 9, type: '' },
|
||||
{ startIndex: 12, type: 'identifier.abap' },
|
||||
{ startIndex: 18, type: 'delimiter.abap' },
|
||||
]
|
||||
}],
|
||||
[{
|
||||
line: 'SELECT * FROM foo02 INTO @foo.',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'keyword.abap' },
|
||||
{ startIndex: 6, type: '' },
|
||||
{ startIndex: 7, type: 'operator.abap' },
|
||||
{ startIndex: 8, type: '' },
|
||||
{ startIndex: 9, type: 'keyword.abap' },
|
||||
{ startIndex: 13, type: '' },
|
||||
{ startIndex: 14, type: 'identifier.abap' },
|
||||
{ startIndex: 19, type: '' },
|
||||
{ startIndex: 20, type: 'keyword.abap' },
|
||||
{ startIndex: 24, type: '' },
|
||||
{ startIndex: 25, type: 'operator.abap' },
|
||||
{ startIndex: 26, type: 'identifier.abap' },
|
||||
{ startIndex: 29, type: 'delimiter.abap' },
|
||||
]
|
||||
}],
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue