summaryrefslogtreecommitdiff
path: root/tests/indent/php/example.php
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-01-24 20:39:18 +0100
committerChristian Clason <christian.clason@uni-due.de>2022-01-24 22:33:41 +0100
commitae4c982f94b3b780041b16d6b5df247a67102d92 (patch)
tree953bd1229ae9507243d29d87dc8cf6f9a30aa9e6 /tests/indent/php/example.php
parent77d247b3003759da7dfd2dba8145a0ba1bbe6c8d (diff)
indents(php): align with C indentation
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2357
Diffstat (limited to 'tests/indent/php/example.php')
-rw-r--r--tests/indent/php/example.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/indent/php/example.php b/tests/indent/php/example.php
new file mode 100644
index 00000000..6b0ec56b
--- /dev/null
+++ b/tests/indent/php/example.php
@@ -0,0 +1,12 @@
+<?php
+
+class example
+{
+ public int $variable;
+ // indentation works correctly here
+
+ public function foo()
+ {
+ // indentation works correctly here
+ }
+}