mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Fix operators and testcase
This commit is contained in:
parent
575f6764c9
commit
feeaa714aa
2 changed files with 18 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ testTokenization('abap', [
|
||||||
{ startIndex: 6, type: '' },
|
{ startIndex: 6, type: '' },
|
||||||
{ startIndex: 7, type: 'keyword.abap' },
|
{ startIndex: 7, type: 'keyword.abap' },
|
||||||
{ startIndex: 9, type: '' },
|
{ startIndex: 9, type: '' },
|
||||||
{ startIndex: 10, type: 'keyword.abap' },
|
{ startIndex: 10, type: 'operator.abap' },
|
||||||
{ startIndex: 13, type: '' },
|
{ startIndex: 13, type: '' },
|
||||||
{ startIndex: 14, type: 'keyword.abap' },
|
{ startIndex: 14, type: 'keyword.abap' },
|
||||||
{ startIndex: 21, type: 'delimiter.abap' }
|
{ startIndex: 21, type: 'delimiter.abap' }
|
||||||
|
|
|
||||||
|
|
@ -571,7 +571,21 @@ const abapKeywords = [
|
||||||
'perform',
|
'perform',
|
||||||
'performing',
|
'performing',
|
||||||
'person',
|
'person',
|
||||||
'pf',
|
'pf1',
|
||||||
|
'pf10',
|
||||||
|
'pf11',
|
||||||
|
'pf12',
|
||||||
|
'pf13',
|
||||||
|
'pf14',
|
||||||
|
'pf15',
|
||||||
|
'pf2',
|
||||||
|
'pf3',
|
||||||
|
'pf4',
|
||||||
|
'pf5',
|
||||||
|
'pf6',
|
||||||
|
'pf7',
|
||||||
|
'pf8',
|
||||||
|
'pf9',
|
||||||
'pf-status',
|
'pf-status',
|
||||||
'pink',
|
'pink',
|
||||||
'places',
|
'places',
|
||||||
|
|
@ -1078,6 +1092,7 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
cases: {
|
cases: {
|
||||||
'@typeKeywords': 'keyword',
|
'@typeKeywords': 'keyword',
|
||||||
'@keywords': 'keyword',
|
'@keywords': 'keyword',
|
||||||
|
'@operators': 'operator',
|
||||||
'@default': 'identifier'
|
'@default': 'identifier'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1090,6 +1105,7 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
[/[:,.]/, 'delimiter'],
|
[/[:,.]/, 'delimiter'],
|
||||||
|
|
||||||
[/[{}()\[\]]/, '@brackets'],
|
[/[{}()\[\]]/, '@brackets'],
|
||||||
|
|
||||||
[/@symbols/, { cases: { '@operators': 'operator', '@default': '' } }],
|
[/@symbols/, { cases: { '@operators': 'operator', '@default': '' } }],
|
||||||
|
|
||||||
[/'/, { token: 'string', bracket: '@open', next: '@stringquote' }],
|
[/'/, { token: 'string', bracket: '@open', next: '@stringquote' }],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue