Highlight function definitions better

This commit is contained in:
alan.invents 2020-01-26 17:14:43 -05:00 committed by GitHub
parent 48bed9874a
commit ff60b4a68d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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