comparison runtime/doc/indent.txt @ 14006:665fe1f419b0

Update runtime files. commit https://github.com/vim/vim/commit/0b0f0992d46ef02fdfc1240744bef91d4299c1df Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 22 21:41:30 2018 +0200 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Tue, 22 May 2018 21:45:06 +0200
parents 1174611ad715
children 2f7e67dd088c
comparison
equal deleted inserted replaced
14005:ca2dc95f2417 14006:665fe1f419b0
905 905
906 In PHP braces are not required inside 'case/default' blocks therefore 'case:' 906 In PHP braces are not required inside 'case/default' blocks therefore 'case:'
907 and 'default:' are indented at the same level than the 'switch()' to avoid 907 and 'default:' are indented at the same level than the 'switch()' to avoid
908 meaningless indentation. You can use the above option to return to the 908 meaningless indentation. You can use the above option to return to the
909 traditional way. 909 traditional way.
910 -------------
911
912 *PHP_noArrowMatching*
913 By default the indent script will indent multi-line chained calls by matching
914 the position of the '->': >
915
916 $user_name_very_long->name()
917 ->age()
918 ->info();
919
920 You can revert to the classic way of indenting by setting this option to 1: >
921 :let g:PHP_noArrowMatching = 1
922
923 You will obtain the following result: >
924
925 $user_name_very_long->name()
926 ->age()
927 ->info();
928
910 929
911 930
912 PYTHON *ft-python-indent* 931 PYTHON *ft-python-indent*
913 932
914 The amount of indent can be set for the following situations. The examples 933 The amount of indent can be set for the following situations. The examples