Browse Source

Separated quote-like operators from other keywords

Matthew D. Miller 6 years ago
parent
commit
80e9270d80
1 changed files with 1 additions and 9 deletions
  1. 1 9
      src/perl/perl.ts

+ 1 - 9
src/perl/perl.ts

@@ -48,15 +48,11 @@ export const language = <ILanguage>{
 		'__DATA__',
 		'__DATA__',
 		'else',
 		'else',
 		'lock',
 		'lock',
-		'qw',
 		'__END__',
 		'__END__',
 		'elsif',
 		'elsif',
 		'lt',
 		'lt',
-		'qx',
 		'__FILE__',
 		'__FILE__',
 		'eq',
 		'eq',
-		'm',
-		's',
 		'__LINE__',
 		'__LINE__',
 		'exp',
 		'exp',
 		'ne',
 		'ne',
@@ -64,7 +60,6 @@ export const language = <ILanguage>{
 		'__PACKAGE__',
 		'__PACKAGE__',
 		'for',
 		'for',
 		'no',
 		'no',
-		'tr',
 		'and',
 		'and',
 		'foreach',
 		'foreach',
 		'or',
 		'or',
@@ -75,16 +70,12 @@ export const language = <ILanguage>{
 		'until',
 		'until',
 		'continue',
 		'continue',
 		'gt',
 		'gt',
-		'q',
 		'while',
 		'while',
 		'CORE',
 		'CORE',
 		'if',
 		'if',
-		'qq',
 		'xor',
 		'xor',
 		'do',
 		'do',
 		'le',
 		'le',
-		'qr',
-		'y',
 
 
 		'__DIE__',
 		'__DIE__',
 		'__WARN__',
 		'__WARN__',
@@ -468,6 +459,7 @@ export const language = <ILanguage>{
 
 
 	// operators
 	// operators
 	symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/,
 	symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/,
+	quoteLikeOps: ['qr', 'm', 's', 'q', 'qq', 'qx', 'qw', 'tr', 'y'],
 
 
 	escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
 	escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,