about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2013-09-04Silence fo+=j error for users of Vim < 7.3.541.Chris Morgan-1/+3
2013-09-04Update highlighting for prelude changes.Chris Morgan-2/+2
2013-09-04Highlight everything in the prelude in Vim.Chris Morgan-26/+78
This is a rather more extensive change than the last, but *ever* so much easier to maintain reasonably, as there's then something to track directly.
2013-09-04Update a handful of keywords highlighted in Vim.Chris Morgan-8/+6
I added a few and removed a few and corrected a couple, all with reference to the prelude. It ends up a slightly arbitrary decision precisely what ends up in and what doesn't, unfortunately.
2013-09-04Modernise some Vim syntax highlighting.Chris Morgan-3/+5
- Remove highlighting of ``L"..."`` (obsolete syntax) - Remove backslash at end of line being a line continuation always (obsolete syntax; this only affects comments, actually) - Add highlighting for backslash at end of line and leading whitespace on the following line inside a string (a genuine line continuation)
2013-08-30Align field names in struct expressions with fields on same line as the ↵Micah Chalmer-4/+14
opening curly brace
2013-08-30Multiline comments with leading *s line up the *sMicah Chalmer-0/+4
2013-08-29One indent after open paren with no argumentMicah Chalmer-2/+8
2013-08-29Correct indent with trailing spaces/comments on previous lineMicah Chalmer-2/+3
2013-08-29auto merge of #8830 : andersk/rust/indent-4, r=catamorphismbors-5/+3
`default-tab-width` is standardly 8, but most programmers and style guides prefer an indentation width smaller than that. Rust itself uses 4 space indents. Most other Emacs modes define the indentation width as 4 or 2 spaces, independently of the width of a Tab character. Depending on `default-tab-width` makes especially little sense for rust-mode because it sets `indent-tabs-mode` to `nil`.
2013-08-28auto merge of #8718 : bblum/rust/typeof, r=pcwaltonbors-1/+1
r? anybody
2013-08-28rust-mode: Default rust-indent-offset to 4, not default-tab-widthAnders Kaseorg-5/+3
default-tab-width is standardly 8, but most programmers and style guides prefer an indentation width smaller than that. Rust itself uses 4 space indents. Most other Emacs modes define the indentation width as 4 or 2 spaces, independently of the width of a Tab character. Depending on default-tab-width makes especially little sense for rust-mode because it sets indent-tabs-mode to nil. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2013-08-27auto merge of #8789 : pnkfelix/rust/fsk-fix-typo-in-rust-mode.el, r=pnkfelixbors-1/+1
Fix #6887. (or rather, a bug injected by my prior commit for fixing that bug.)
2013-08-27auto merge of #8779 : brson/rust/macsupp, r=thestingerbors-1/+0
This callstack changed when the FFI did. I am still a little frightened by this suppression. cc #8253
2013-08-27fix typo in rust-mode.elFelix S. Klock II-1/+1
2013-08-26auto merge of #8747 : ↵bors-0/+23
pnkfelix/rust/fsk-issue6887-fix-emacs-compilation-regexp, r=graydon Fix #6887
2013-08-26Fix valgrind suppression on macBrian Anderson-1/+0
This callstack changed when the FFI did. I am still a little frightened by this suppression.
2013-08-26Add script and tests for using keywords as identifiersFlorian Hahn-0/+59
2013-08-26extend file regexp to match files with embedded spaces.Felix S. Klock II-1/+1
2013-08-25revisions to emacs compilation regexp, more readable and robust.Felix S. Klock II-7/+15
2013-08-25compilation error regexp specific to rustc.Felix S. Klock II-0/+15
Fix #6887.
2013-08-23Parse and reserve typeof keyword. #3228Ben Blum-1/+1
2013-08-21auto merge of #8445 : Florob/rust/unicode, r=graydonbors-33/+150
This adds support for performing Unicode Normalization Forms D and KD on strings. To enable this the decomposition and canonical combining class properties are added to std::unicode. On my system this increases libstd's size by ~250KiB.
2013-08-21Add canonical combining class to std::unicodeFlorian Zeitz-4/+53
2013-08-21Add Unicode decomposition mappings to std::unicodeFlorian Zeitz-31/+99
2013-08-21auto merge of #8585 : jankobler/rust/extract-grammar-01, r=catamorphismbors-1/+5
This fixes some errors which extract_grammar.py reports, when called with python2.7 src/etc/extract_grammar.py <doc/rust.md
2013-08-18extract_grammar symnamesJan Kobler-1/+5
add missing symnames Signed-off-by: Jan Kobler <eng1@koblersystems.de>
2013-08-16doc: convert remaining uses of core:: to std::.Huon Wilson-3/+3
2013-08-11auto merge of #8410 : luqmana/rust/mcpu, r=sanxiynbors-1/+2
Adds `--target-cpu` flag which lets you choose a more specific target cpu instead of just passing the default, `generic`. It's more or less akin to `-mcpu`/`-mtune` in clang/gcc.
2013-08-10rustc: Add --target-cpu flag to select a more specific processor instead of ↵Luqman Aden-1/+2
the default, 'generic'.
2013-08-10Merge branch 'master' of https://github.com/p2j4d2c/rust into rollupErick Tryzelaar-6/+11
2013-08-08rust-mode: make indentation customizablePaul Collins-6/+11
Add new variable rust-indent-offset, defaulting to the old value, and use it.
2013-08-07Gedit/gtksourceview language spec: add 'in' keywordSimon Sapin-0/+1
2013-08-04Merge pull request #8284 from huonw/emacs-in-kwDaniel Micay-1/+1
etc: add the `in` keyword to the emacs mode.
2013-08-04auto merge of #8254 : brson/rust/libuv-mac-supp, r=pcwaltonbors-0/+13
I suspect that this is a race between process exit and the termination of worker threads used by libuv (if I sleep before exit it doesn't leak). This isn't going to cause any real problems but should probably be fixed at some point. r? @pcwalton cc #8253
2013-08-03auto merge of #8264 : thestinger/rust/snapshot, r=Aatchbors-2/+2
2013-08-03remove obsolete `foreach` keywordDaniel Micay-2/+2
this has been replaced by `for`
2013-08-03etc: add the `in` keyword to the emacs mode.Huon Wilson-1/+1
2013-08-03Vim highlighting: remove `foreach` keywordChris Morgan-1/+1
2013-08-02Suppress a libuv leak on macBrian Anderson-0/+13
I suspect that this is a race between process exit and the termination of worker threads used by libuv (if I sleep before exit it doesn't leak). This isn't going to cause any real problems but should probably be fixed at some point.
2013-08-03Highlight sigils and operators in Vim.Chris Morgan-6/+23
Sigil highlighting isn't perfect (especially how it handles ``&``) but after having used it for a week I feel it to be considerably nicer than nothing. As usual, if you don't like it, you can turn it off easily by overriding the default highlighting. Generics are not handled specially; this means that for something like ``S<T>``, the ``<`` and ``>`` are highlighted as operators. For myself, I like this, and there is no way to make it properly context aware without expanding the syntax matching enormously. Also, special characters are highlighted properly in strings/chars, e.g. ``"\x00"`` or ``'\Ufedcba98'`` appropriately.
2013-07-27auto merge of #8067 : alexcrichton/rust/issue-3636, r=huonwbors-8/+4
Allow some common ones that are good for examples, however. Closes #3636
2013-07-26Deny all warnings by default in doc testsAlex Crichton-8/+4
Allow some common ones that are good for examples, however.
2013-07-26auto merge of #8031 : graydon/rust/emacs-mode-rewrite, r=catamorphismbors-557/+209
The previous mode did a lot of very manual char-at-a-time parsing and was quite fragile and difficult to maintain. I talked to Marijn and he suggested I'd have better luck just rewriting it from scratch. This is the result of that effort; it seems to be faster, a bit easier on the eyes and more-or-less as well behaved when indenting. The algorithm is a bit different I suspect (it was hard to tell the previous one) but I tried to keep it simple and pleasant-looking.
2013-07-24rewrite rust-mode to use font-lock-mode and emacs builtin syntax analysisGraydon Hoare-557/+209
2013-07-24auto merge of #8006 : emillon/rust/issue-6060, r=pcwaltonbors-3/+3
Hello, I made a tiny change to `tidy.py` so that it uses a regexp to find `// NOTE` comments. I could not find an easy way to write an automated test for this but if this is needed and possible I'd be happy to write one. Please note that it also removes extra empty lines that appear after each of these warnings (I believe that there were not wanted). On the performance side, `make tidy` is now a bit slower (running it 10 times in a row takes 71s on my machine, 65s before) but I don't think that it is performance sensitive. Thanks!
2013-07-23auto merge of #7964 : pnkfelix/rust/fsk-issue3994-readme-note, r=huonwbors-0/+5
See #3994.
2013-07-23tidy: allow arbitrary spaces between // and NOTEEtienne Millon-3/+3
`make tidy` now detects `//NOTE`, `// NOTE`, etc. This also removes the extra empty line emitted after each warning. Fixes #6060
2013-07-22Note incompatibility with global-whitespace-mode.Felix S. Klock II-0/+5
See #3994.
2013-07-21Merge pull request #7936 from thestinger/cleanupDaniel Micay-6/+0
rm obsolete no-op lints