Remove a few left over TODOs

This commit is contained in:
Alex Dima 2020-08-27 13:08:12 +02:00
parent 87864636a3
commit 776384e14e
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
2 changed files with 4 additions and 4 deletions

View file

@ -468,7 +468,7 @@ testTokenization('scala', [
line: '3_.1415F', line: '3_.1415F',
tokens: [ tokens: [
{ startIndex: 0, type: 'number.scala' }, { startIndex: 0, type: 'number.scala' },
{ startIndex: 1, type: 'keyword.scala' }, // TODO { startIndex: 1, type: 'keyword.scala' },
{ startIndex: 2, type: 'delimiter.scala' }, { startIndex: 2, type: 'delimiter.scala' },
{ startIndex: 3, type: 'number.float.scala' } { startIndex: 3, type: 'number.float.scala' }
] ]
@ -479,7 +479,7 @@ testTokenization('scala', [
tokens: [ tokens: [
{ startIndex: 0, type: 'number.scala' }, { startIndex: 0, type: 'number.scala' },
{ startIndex: 1, type: 'operator.scala' }, { startIndex: 1, type: 'operator.scala' },
{ startIndex: 2, type: 'keyword.flow.scala' } // TODO { startIndex: 2, type: 'identifier.scala' }
] ]
}], }],
@ -495,7 +495,7 @@ testTokenization('scala', [
line: '52_', line: '52_',
tokens: [ tokens: [
{ startIndex: 0, type: 'number.scala' }, { startIndex: 0, type: 'number.scala' },
{ startIndex: 2, type: 'keyword.scala' } // TODO { startIndex: 2, type: 'keyword.scala' }
] ]
}], }],

View file

@ -140,7 +140,7 @@ export const language = <ILanguage>{
[/\bva[lr]\b/, 'keyword', '@vardef'], [/\bva[lr]\b/, 'keyword', '@vardef'],
[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/, ['keyword', 'white', 'identifier']], [/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/, ['keyword', 'white', 'identifier']],
[/@name(?=[ \t]*:(?!:))/, 'variable'], [/@name(?=[ \t]*:(?!:))/, 'variable'],
[/(\.)(@name|@symbols)/, ['operator', {token: 'keyword.flow', next: '@allowMethod'}]], [/(\.)(@name|@symbols)/, ['operator', {token: '@rematch', next: '@allowMethod'}]],
[/([{(])(\s*)(@name(?=\s*=>))/, ['@brackets', 'white', 'variable']], [/([{(])(\s*)(@name(?=\s*=>))/, ['@brackets', 'white', 'variable']],
[/@name/, {cases: { [/@name/, {cases: {
'@keywords': 'keyword', '@keywords': 'keyword',