Ver código fonte

Highlight function definitions better

alan.invents 5 anos atrás
pai
commit
ff60b4a68d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/tcl/tcl.ts

+ 1 - 1
src/tcl/tcl.ts

@@ -153,7 +153,7 @@ export const language = <ILanguage>{
 		specialFunc: [
 			[/"/, {token: 'string', next: '@dstring'}],
 			[/'/, {token: 'string', next: '@sstring'}],
-			[/(?:(?:\:\:?)?[a-zA-Z_]\w*)+/, {token: 'type', next: '@pop'}],
+			[/\S+/, {token: 'type', next: '@pop'}],
 		]
 	}
 };