We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7691a38 commit 0d80398Copy full SHA for 0d80398
src/languages/php.js
@@ -288,14 +288,21 @@ export default function(hljs) {
288
]
289
}
290
),
291
- hljs.COMMENT(
292
- '__halt_compiler.+?;',
293
- null,
294
- {
295
- endsWithParent: true,
296
- keywords: '__halt_compiler'
+ {
+ match: /__halt_compiler\(\);/,
+ keywords: '__halt_compiler',
+ starts: {
+ scope: "comment",
+ end: hljs.MATCH_NOTHING_RE,
297
+ contains: [
298
299
+ match: /\?>/,
300
+ scope: "meta",
301
+ endsParent: true
302
+ }
303
+ ]
304
- ),
305
+ },
306
PREPROCESSOR,
307
{
308
className: 'variable.language',
0 commit comments