Highlight function definitions better (#79)

Highlight function definitions better
This commit is contained in:
Alexandru Dima 2020-01-28 10:25:12 +01:00 committed by GitHub
commit d2577bf88c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'}],
]
}
};