Sfoglia il codice sorgente

Separate operators from delimiters

Matt Masson 7 anni fa
parent
commit
a63a94a9af
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/powerquery/powerquery.ts

+ 2 - 1
src/powerquery/powerquery.ts

@@ -96,7 +96,8 @@ export const language = <ILanguage>{
 			{ include: "@strings" },
 
 			[/[{}()\[\]]/, "@brackets"],
-			[/([,;=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/, "punctuator"],
+			[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/, "operator"],
+			[/[,;]/, "delimiter"],
 		],
 
 		whitespace: [