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 225bc32 commit 2c7f3aaCopy full SHA for 2c7f3aa
t/t4018/php-enum
@@ -0,0 +1,4 @@
1
+enum RIGHT: string
2
+{
3
+ case Foo = 'ChangeMe';
4
+}
userdiff.c
@@ -214,7 +214,7 @@ PATTERNS("perl",
214
"|<<|<>|<=>|>>"),
215
PATTERNS("php",
216
"^[\t ]*(((public|protected|private|static|abstract|final)[\t ]+)*function.*)$\n"
217
- "^[\t ]*((((final|abstract)[\t ]+)?class|interface|trait).*)$",
+ "^[\t ]*((((final|abstract)[\t ]+)?class|enum|interface|trait).*)$",
218
/* -- */
219
"[a-zA-Z_][a-zA-Z0-9_]*"
220
"|[-+0-9.e]+|0[xXbB]?[0-9a-fA-F]+"
0 commit comments