rust/src/etc
Chris Morgan 879ac43689 Fix Vim section movements for standard Rust style.
(Expressed another way: make `[[` et al. work with the curly brace at
the end of a line as is standard Rust style, not just at the start is it
is by default in Vim, from K&R style.)

This came out of #11492, where a simpler but less effective technique
was initially proposed; some discussion of the techniques, ways and
means can be found there.

There are still a few caveats:

- Operator-pending mode behaves differently to the standard behaviour:
  if inside curly braces, it should delete up to and including the
  closing of the outermost curly brace (that doesn't seem to me
  consistent with documented behaviour, but it's what it does). Actual
  behaviour (the more logical and consistent, in my opinion): up to the
  start of the next outermost curly brace.

- With folding enabled (`set fdm=syntax`), `[[` and `]]` do not behave
  as they should: the default behaviour treats an entire closed fold as
  one line for these purposes while this code does not (I explicitly
  `set nofoldenable` in the function—the side-effects are worse with
  folds enabled), leading to unexpected behaviour, the worst of which is
  `[[` and/or `]]` not working in visual mode on a closed fold (visual
  mode keeps it at the extreme end of the region line of the folded
  region, so it's always going back to the opening line of that fold and
  immediately being shoved back to the end by visual mode).

- `[[` and `]]` are operating inside comments, whereas the standard
  behaviour skips comments.

- The viewport position is sometimes changed when it should not be
  necessary.
2014-02-27 21:04:04 -08:00
..
emacs Fix typo in emacs ERT test 2014-02-22 23:35:33 -05:00
gedit Add crate keyword to gedit language spec 2014-02-14 15:37:22 -08:00
kate Add crate to emacs and kate modefiles 2014-02-14 14:37:07 -08:00
mingw-fix-include Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
pkg Add new target 'make dist-osx' to create a .pkg installer for OS X 2014-02-27 19:59:02 -08:00
third-party llvm: Disable pthread on mingw 2013-12-18 09:48:58 +09:00
vim Fix Vim section movements for standard Rust style. 2014-02-27 21:04:04 -08:00
zsh Redesign output flags for rustc 2014-02-06 11:14:13 -08:00
adb_run_wrapper.sh Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
apple-darwin.supp platform-specific valgrind suppression 2012-02-05 09:07:23 -08:00
check-binaries.py Expand tidy to prevent binaries from being checked 2013-09-30 10:15:47 -07:00
check-links.pl Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
check-summary.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
cmathconsts.c Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
combine-tests.py Move std::{trie, hashmap} to libcollections 2014-02-23 00:35:11 -08:00
copy-runtime-deps.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
ctags.rust Fix two regressions introduced by #11072. 2013-12-20 09:33:47 +11:00
extract-tests.py extern mod => extern crate 2014-02-14 22:55:21 -08:00
extract_grammar.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
generate-deriving-span-tests.py std: rewrite Hash to make it more generic 2014-02-21 21:33:23 -08:00
generate-keyword-tests.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
get-snapshot.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
indenter add gitattributes and fix whitespace issues 2013-05-03 20:01:42 -04:00
latest-unix-snaps.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
libc.c Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
licenseck.py Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
local_stage0.sh Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
make-snapshot.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
maketest.py mk: Get "make check" passing with --disable-rpath 2014-02-21 16:35:05 -08:00
mirror-all-snapshots.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
mklldeps.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
snapshot.py Revert non-license changes as part of 0ebe112b 2014-02-10 18:00:40 -08:00
sugarise-doc-comments.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
tidy.py Change xfail directives in compiletests to ignore, closes #11363 2014-02-11 18:23:20 +01:00
unicode.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00
x86.supp Fix valgrind suppression on mac 2013-08-26 17:39:50 -07:00
ziggurat_tables.py etc: add missing license boilerplates 2014-02-05 19:53:53 +01:00