Merge pull request #81 from nrayburn-tech/master

Add _ as a supported character for Python tags/keywords
This commit is contained in:
Alexandru Dima 2020-02-13 10:01:48 +01:00 committed by GitHub
commit 5624ce9124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,8 +202,8 @@ export const language = <ILanguage>{
[/[,:;]/, 'delimiter'],
[/[{}\[\]()]/, '@brackets'],
[/@[a-zA-Z]\w*/, 'tag'],
[/[a-zA-Z]\w*/, {
[/@[a-zA-Z_]\w*/, 'tag'],
[/[a-zA-Z_]\w*/, {
cases: {
'@keywords': 'keyword',
'@default': 'identifier'