about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2013-07-20rm obsolete no-op lintsDaniel Micay-6/+0
2013-07-19mk: Remove CFG_INSTALL_SNAP logic. #2664Brian Anderson-34/+2
2013-07-18auto merge of #7747 : chris-morgan/rust/vim-compiler-rustc, r=huonwbors-0/+33
Note that this is not actually *used* by default; it is a matter of configuration still, because you might want to: - Compile all .rs files with `rustc %` (where each can be built itself) - Compile all .rs files with `rustc some-file.rs` (where you are editing part of a crate) - Compile with a different tool, such as `make`. (In this case you might put a `~/.vim/after/compiler/rustc.vim` to match such cases, set makeprg and extend errorformat as appropriate. That should probably go in a different compiler mode, e.g. make-rustc.) To try using it, `:compiler rustc`. Then, `:make` on a file you would run `rustc` on will work its magic, invoking rustc. To automate this, you could have something like `autocmd FileType rust compiler rustc` in your Vim config.
2013-07-14add regions, unicode idents, attributes to GtkSourceView language-specsp3d-8/+32
2013-07-12rustc compiler config for Vim.Chris Morgan-0/+33
Note that this is not actually *used* by default; it is a matter of configuration still, because you might want to: - Compile all .rs files with `rustc %` (where each can be built itself) - Compile all .rs files with `rustc some-file.rs` (where you are editing part of a crate) - Compile with a different tool, such as `make`. (In this case you might put a `~/.vim/after/compiler/rustc.vim` to match such cases, set makeprg and extend errorformat as appropriate. That should probably go in a different compiler mode, e.g. make-rustc.) To try using it, `:compiler rustc`. Then, `:make` on a file you would run `rustc` on will work its magic, invoking rustc. To automate this, you could have something like `autocmd FileType rust compiler rustc` in your Vim config.
2013-07-12Fix problem with switching between Rust buffers.Chris Morgan-1/+1
This was also causing trouble if one didn't have delimitMate installed.
2013-07-12Vim syntax: support lifetimes with delimitMate.Chris Morgan-1/+13
When it's a lifetime, a single quotation mark shouldn't have a matching single quotation mark inserted after it, as delimitMate does by default. Note that this is not without problems; a char literal coming after an odd number of lifetime markers will have its quotation marks behave a little strangely. That, however, is not my fault, but delimitMate's: https://github.com/Raimondi/delimitMate/issues/135
2013-07-11Fix Vim indentation for inline closures.Chris Morgan-1/+1
2013-07-11Fix comment indenting properly for Vim files.Chris Morgan-8/+31
Indentation now works correctly on subsequent lines of a multi-line comment, whether there are leaders (` * `) or not. (Formerly it was incorrectly doing a two-space indent if there was no leader.) By default, this no longer puts a ` * ` leader on `/*!` comments, as that appears to be the current convention in the Rust source code, but that can easily be re-enabled if desired: let g:rust_bang_comment_leader = 1
2013-07-10auto merge of #7637 : ↵bors-1/+12
pnkfelix/rust/fsk-guard-against-stale-libraries-issue3225-safeguarded, r=graydon When building Rust libraries (e.g. librustc, libstd, etc), checks for and verbosely removes previous build products before invoking rustc. (Also, when Make variable VERBOSE is defined, it will list all of the libraries matching the object library's glob after the rustc invocation has completed.) When installing Rust libraries, checks for previous libraries in target install directory, but does not remove them. The thinking behind these two different modes of operation is that the installation target, unlike the build tree, is not under the control of this infrastructure and it is not up to this Makefile to decide if the previous libraries should be removed. Fixes #3225 (at least in terms of mitigating the multiple library problem by proactively warning the user about it.)
2013-07-10Do indentation properly in Vim.Chris Morgan-3/+129
The cases that this improves are clearly documented inside the committed file, so this commit message is comparatively brief.
2013-07-10Add a Vim filetype plugin with useful tweaks.Chris Morgan-0/+25
This improves things like doc comment handling when you press Enter and making using `gf` or `<C-W>f` work on a `use x;` statement in the current directory.
2013-07-10A few slight tweaks to the Vim syntax file.Chris Morgan-11/+19
- Add fold support (NOT turned on by default) - Highlight `::` by default - Support the common `NOTE` as an important note - Highlight `assert!` and `fail!` differently - Don't highlight `deriving(...)` except in `#[...]`
2013-07-09Fix #3225: Incorporate feedback from Graydon.Felix S. Klock II-1/+12
Namely, switched in many places to using GNU make provided functions for directory listing and text processing, rather than spawning a shell process to do that work. In the process of the revision, learned about Target-specific variables, which were very applicable to INSTALL_LIB (which, on a per-recipe basis, was always receiving the same actual arguments for its first two formal parameters in every invocation). http://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html (We might be able to make use of those in future refactorings.) ---- Also adds a cleanup pass to get-snapshot.py as well, since the same problem arises when we unpack libraries from the snapshot archive into a build directory with a prior snapshot's artifacts. (I put this step into the python script rather than the makefile because I wanted to delay the cleanup pass until after we have at least successfully downloaded the tarball. That way, if the download fails, you should not destroy the previous unarchived snapshot libraries and build products.) ---- Also reverted whitespace changes to minimize diff. I plan to put them back in in a dedicated commit elsewhere.
2013-07-08Bump version numbers to 0.8-preBrian Anderson-1/+1
2013-07-07auto merge of #7586 : g5pw/rust/master, r=cmrbors-1/+1
This updates the script in src/etc/local_stage0.sh to copy the correct libraries to stage0.
2013-07-05vim: Highlight 0i as numberSeo Sanghyeon-1/+1
2013-07-04Copy the correct libs when using local-rust-rootAljaž "g5pw" Srebrnič-1/+1
This fixes a segfault when configuring rust to use local-rust-root. The libraries were renamed in the 0.6-0.7 transition, and the script was not copying them all. I also removed the line referencing libcore (now libstd).
2013-07-03auto merge of #7523 : huonw/rust/uppercase-statics-lint, r=cmrbors-0/+1
Adds a lint for `static some_lowercase_name: uint = 1;`. Warning by default since it causes confusion, e.g. `static a: uint = 1; ... let a = 2;` => `error: only refutable patterns allowed here`.
2013-07-02auto merge of #7498 : luqmana/rust/cow, r=catamorphismbors-2/+8
Either one works and wget is easier to setup on windows.
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-0/+1
2013-06-30auto merge of #7487 : huonw/rust/vec-kill, r=cmrbors-12/+26
Continuation of #7430. I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.
2013-06-30Bump version from 0.7-pre to 0.7Brian Anderson-1/+1
2013-06-30auto merge of #7374 : Jeaye/rust/func_highlight, r=cmrbors-0/+1
This allows for highlighting of function calls for free floating, member, and static functions.
2013-06-30Convert vec::{bsearch, bsearch_elem} to methods.Huon Wilson-2/+2
2013-06-30etc: update etc/unicode.py for the changes made to std::unicode.Huon Wilson-10/+24
2013-06-30configure: Require one of wget or curl.Luqman Aden-2/+8
2013-06-29auto merge of #7457 : Blei/rust/fix-ffi-floats, r=cmrbors-0/+1
Also contains a fix to help ctag pick up macro definitions.
2013-06-29fix zsh completion for lint and debug flagsDaniel Micay-35/+36
this correctly makes them accept 1 argument, and auto-completes the comma-separated list of lint flags
2013-06-28ctags: add macrosPhilipp Brüschweiler-0/+1
2013-06-27mk: Make windows installer work with -pre versionsBrian Anderson-1/+2
2013-06-27auto merge of #7361 : brson/rust/incoming, r=brsonbors-1/+1
2013-06-26Fix some warnings in the check-fast testsPhilipp Brüschweiler-1/+1
2013-06-25Change finalize -> drop.Luqman Aden-1/+1
2013-06-24rust.vim: Links previously unused rustFuncCallJeaye-0/+1
This allows for highlighting of function calls for free floating, member, and static functions.
2013-06-24vim/syntax/rust.vim: fix date headerTuncer Ayaz-1/+1
The last change was made in 2013 not 2012.
2013-06-23Add rules for assert, fail, and deriving to vim syntax file. Also highlight ↵Ben Blum-6/+18
the mod path in "use module;" properly.
2013-06-20auto merge of #7128 : yichoi/rust/fix_sometc, r=brsonbors-2/+3
- Fix stat struct for Android (found by SEGV at run-pass/stat.rs) - Adjust some test cases to rpass for Android - Modify some script to rpass for Android
2013-06-20core -> extra for macJames Miller-1/+1
2013-06-20Fix update snapshot script for renameJames Miller-4/+4
2013-06-17etc: add TEST_EXEC_ENV for run-pass to adb_run_wrapper.shYoung-il Choi-1/+2
2013-06-17etc: modify adb_run_wrapper.sh to avoid 'expr' unrecognization at some ↵Young-il Choi-1/+1
android devices
2013-06-13automated whitespace fixesDaniel Micay-3/+3
2013-06-01etc: adb_run_wrapper.sh - fix to clean test (not produce Text File Busy)Young-il Choi-7/+19
2013-06-01etc: adb_run_wrapper argument changeYoung-il Choi-14/+20
2013-06-01etc: adb_run_wrapper addedYoung-il Choi-0/+17
2013-05-31auto merge of #6853 : bblum/rust/sized, r=pcwaltonbors-1/+2
r? @nikomatsakis @pcwalton
2013-05-30Highlight Sized in vim and kateBen Blum-1/+2
2013-05-30add a zsh completion file for rustcDaniel Micay-0/+102
2013-05-29etc: Fix more check-fast breakage. rs=burningtreePatrick Walton-0/+1