Skip to content

Commit 39bbd69

Browse files
committed
rebase
1 parent 9a61d81 commit 39bbd69

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

components/prism-php.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
alias: 'static-context',
5757
greedy: true
5858
},
59-
/\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i
59+
/\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|finally|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i
6060
],
6161
'class-name': [
6262
{

components/prism-php.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/languages/php/keyword_feature.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ interface;
4545
isset
4646
list
4747
namespace;
48+
match
4849
new;
4950
or
5051
parent
@@ -122,6 +123,7 @@ yield
122123
["keyword", "isset"],
123124
["keyword", "list"],
124125
["keyword", "namespace"], ["punctuation", ";"],
126+
["keyword", "match"],
125127
["keyword", "new"], ["punctuation", ";"],
126128
["keyword", "or"],
127129
["keyword", "parent"],

0 commit comments

Comments
 (0)