Forráskód Böngészése

Remove a few left over TODOs

Alex Dima 4 éve
szülő
commit
776384e14e
2 módosított fájl, 4 hozzáadás és 4 törlés
  1. 3 3
      src/scala/scala.test.ts
  2. 1 1
      src/scala/scala.ts

+ 3 - 3
src/scala/scala.test.ts

@@ -468,7 +468,7 @@ testTokenization('scala', [
 		line: '3_.1415F',
 		tokens: [
 			{ startIndex: 0, type: 'number.scala' },
-			{ startIndex: 1, type: 'keyword.scala' }, // TODO
+			{ startIndex: 1, type: 'keyword.scala' },
 			{ startIndex: 2, type: 'delimiter.scala' },
 			{ startIndex: 3, type: 'number.float.scala' }
 		]
@@ -479,7 +479,7 @@ testTokenization('scala', [
 		tokens: [
 			{ startIndex: 0, type: 'number.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_',
 		tokens: [
 			{ startIndex: 0, type: 'number.scala' },
-			{ startIndex: 2, type: 'keyword.scala' } // TODO
+			{ startIndex: 2, type: 'keyword.scala' }
 		]
 	}],
 

+ 1 - 1
src/scala/scala.ts

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