Selaa lähdekoodia

Highlight function definitions better (#79)

Highlight function definitions better
Alexandru Dima 5 vuotta sitten
vanhempi
commit
d2577bf88c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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'}],
 		]
 	}
 };