Browse Source

Add _ as a supported item for tags and keywords

nrayburn 5 years ago
parent
commit
9deb43ba53
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/python/python.ts

+ 2 - 2
src/python/python.ts

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