1
0
Эх сурвалжийг харах

Highlight function definitions better (#79)

Highlight function definitions better
Alexandru Dima 5 жил өмнө
parent
commit
d2577bf88c
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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'}],
 		]
 	}
 };