rust-analyzer/crates
bors[bot] ad451686a8 Merge #56
56: Unify lookahead naming between parser and lexer. r=matklad a=zachlute

Resolves Issue #26.

I wanted to play around with libsyntax2, and fixing a random issue seemed like a good way to mess around in the code.

This PR mostly does what's suggested in that issue. I elected to go with `at` and `at_str` instead of trying to do any fancy overloading shenanigans, because...uh, well, frankly I don't really know how to do any fancy overloading shenanigans. The only really questionable bit is `nth_is_p`, which could also have potentially been named `nth_at_p`, but `is` seemed more apropos.

I also added simple tests for `Ptr` so I could be less terrified I broke something. 

Comments and criticisms very welcome. I'm still pretty new to Rust.

Co-authored-by: Zach Lute <zach.lute@gmail.com>
2018-09-05 15:07:17 +00:00
..
cli kill more reexports 2018-08-25 11:48:59 +03:00
gen_lsp_server Avoid clones 2018-09-02 15:18:43 +03:00
libanalysis fix tests on windows 2018-09-05 15:03:27 +01:00
libeditor better extend selection 2018-09-04 12:48:39 +03:00
libsyntax2 Added tests for Ptr. 2018-09-04 23:26:11 -07:00
server switch to rayon threadpool 2018-09-04 20:43:37 +03:00
test_utils move 2018-08-25 14:30:54 +03:00
tools default method name to type name 2018-08-31 15:10:37 +03:00