Skip to content

Commit 4a78ed9

Browse files
committed
Add support for enums
1 parent ba7a6d9 commit 4a78ed9

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/Templates/highlight.php/php.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,18 @@
317317
},
318318
{
319319
"className": "class",
320-
"beginKeywords": "class interface trait enum",
321-
"end": "{",
320+
"variants": [
321+
{
322+
"beginKeywords": "enum",
323+
"illegal": "[($\"]"
324+
},
325+
{
326+
"beginKeywords": "class interface trait",
327+
"illegal": "[:($\"]"
328+
}
329+
],
330+
"end": "\\{",
322331
"excludeEnd": true,
323-
"illegal": "[:\\(\\$\"]",
324332
"contains": [
325333
{
326334
"beginKeywords": "extends implements"

0 commit comments

Comments
 (0)