summaryrefslogtreecommitdiff
path: root/runtime/doc/indent.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-22 21:41:30 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-22 21:41:30 +0200
commit0b0f0992d46ef02fdfc1240744bef91d4299c1df (patch)
tree98e8b08baf3d88d8dac97161796121044037c0d0 /runtime/doc/indent.txt
parent0b6d911e5de1a1c10a23d4c2ee1b0275c474a2dd (diff)
downloadvim-git-0b0f0992d46ef02fdfc1240744bef91d4299c1df.tar.gz
Update runtime files.
Diffstat (limited to 'runtime/doc/indent.txt')
-rw-r--r--runtime/doc/indent.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt
index ac8bf5380..180d932b3 100644
--- a/runtime/doc/indent.txt
+++ b/runtime/doc/indent.txt
@@ -907,6 +907,25 @@ In PHP braces are not required inside 'case/default' blocks therefore 'case:'
and 'default:' are indented at the same level than the 'switch()' to avoid
meaningless indentation. You can use the above option to return to the
traditional way.
+-------------
+
+ *PHP_noArrowMatching*
+By default the indent script will indent multi-line chained calls by matching
+the position of the '->': >
+
+ $user_name_very_long->name()
+ ->age()
+ ->info();
+
+You can revert to the classic way of indenting by setting this option to 1: >
+ :let g:PHP_noArrowMatching = 1
+
+You will obtain the following result: >
+
+ $user_name_very_long->name()
+ ->age()
+ ->info();
+
PYTHON *ft-python-indent*