Skip to content

Commit

Permalink
chore(php) more correct __halt_compiler();
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Dec 10, 2021
1 parent 5907a60 commit fc6bcc9
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/languages/php.js
Expand Up @@ -288,14 +288,21 @@ export default function(hljs) {
]
}
),
hljs.COMMENT(
'__halt_compiler.+?;',
null,
{
endsWithParent: true,
keywords: '__halt_compiler'
{
match: /__halt_compiler\(\);/,
keywords: '__halt_compiler',
starts: {
scope: "comment",
end: hljs.MATCH_NOTHING_RE,
contains: [
{
match: /\?>/,
scope: "meta",
endsParent: true
}
]
}
),
},
PREPROCESSOR,
{
className: 'variable.language',
Expand Down

0 comments on commit fc6bcc9

Please sign in to comment.