Commit a48fdb8f7b80e69839dfa7e30a72a50a56247174

Marco Vito Moscaritolo 2013-12-29T00:25:45

Remove duplicate keywords in PHP There are some duplicate keyword in PHP keywords definition: * extends * static * use

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/components/prism-php.js b/components/prism-php.js
index 1fd2030..9d20b4f 100644
--- a/components/prism-php.js
+++ b/components/prism-php.js
@@ -12,7 +12,7 @@
  */
 
 Prism.languages.php = Prism.languages.extend('clike', {
-	'keyword': /\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|extends|private|protected|parent|static|throw|null|echo|print|trait|namespace|use|final|yield|goto|instanceof|finally|try|catch)\b/ig,
+	'keyword': /\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/ig,
 	'constant': /\b[A-Z0-9_]{2,}\b/g
 });
 
@@ -83,4 +83,4 @@ if (Prism.languages.markup) {
 		},
 		'php': /\{\{\{PHP[0-9]+\}\}\}/g
 	});
-}
\ No newline at end of file
+}