mirror of
https://github.com/amix/vimrc
synced 2024-12-22 01:43:06 +00:00
97e3db7fe9
Added: vim-ruby, typescript-vim, vim-javascript Updated: rust-vim
24 lines
484 B
Text
24 lines
484 B
Text
Given rust (Some Rust code):
|
|
fn main() {
|
|
println!("Hello World\n")
|
|
}
|
|
|
|
Execute (RustInfo - call it to see that it works):
|
|
redir => m
|
|
silent RustInfo
|
|
redir END
|
|
Log m
|
|
|
|
Execute (RustEmitAsm - see that we actually get assembly output):
|
|
silent! w test.rs
|
|
silent! e! test.rs
|
|
redir => m
|
|
silent! RustEmitAsm
|
|
redir END
|
|
AssertEqual 'asm', &filetype
|
|
normal! ggVGy:q<CR>
|
|
AssertEqual 1,(@" =~# '\V.section')
|
|
bd
|
|
call delete('test.rs')
|
|
|
|
# TODO: a lot more tests
|