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.
2 parents febba80 + 2c7f3aa commit 6dbe1b4Copy full SHA for 6dbe1b4
t/t4018/php-enum
@@ -0,0 +1,4 @@
1
+enum RIGHT: string
2
+{
3
+ case Foo = 'ChangeMe';
4
+}
userdiff.c
@@ -228,7 +228,7 @@ PATTERNS("perl",
228
"|<<|<>|<=>|>>"),
229
PATTERNS("php",
230
"^[\t ]*(((public|protected|private|static|abstract|final)[\t ]+)*function.*)$\n"
231
- "^[\t ]*((((final|abstract)[\t ]+)?class|interface|trait).*)$",
+ "^[\t ]*((((final|abstract)[\t ]+)?class|enum|interface|trait).*)$",
232
/* -- */
233
"[a-zA-Z_][a-zA-Z0-9_]*"
234
"|[-+0-9.e]+|0[xXbB]?[0-9a-fA-F]+"
0 commit comments