[Bug] Incorrect angle bracket matching
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Estagnada
- Stack de tecnologia
- rust, vim
- Domínio
- developer-experience, tooling
Direção de pesquisa
Start by locating where rust.vim adds <:> to the local matchpairs setting, then check the plugin’s existing tests or Vim configuration examples for expected matching behavior. Reproduce with the supplied Rust comparison operators and confirm the fix respects the user’s matchpairs setting; the issue names no specific file or test.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
rust.vim version: latest
It treats the angle brackets of the comparison operators as valid to match on, which is incorrect.
Steps to reproduce:
if 0 < 0 {
} else if 0 > 0 {
}
If we put the cursor on any of the brackets above, it will match.
Expected vs. actual behavior:
Expectation: Use matchpairs defined by the user.
Reality: rust.vim decides to do setlocal matchpairs+=<:> for whatever reason.
Debug info:
rust.vim Global Variables:
let g:ftplugin_rust_source_path = v:null
let g:loaded_syntastic_rust_cargo_checker = v:null
let g:loaded_syntastic_rust_filetype = v:null
let g:loaded_syntastic_rust_rustc_checker = v:null
let g:rust_bang_comment_leader = v:null
let g:rust_cargo_avoid_whole_workspace = v:null
let g:rust_clip_command = v:null
let g:rust_conceal = v:null
let g:rust_conceal_mod_path = v:null
let g:rust_conceal_pub = v:null
let g:rust_fold = v:null
let g:rust_last_args = v:null
let b:rust_last_args = []
let g:rust_last_rustc_args = v:null
let b:rust_last_rustc_args = []
let g:rust_original_delimitMate_excluded_regions = v:null
let g:rust_playpen_url = v:null
let g:rust_prev_delimitMate_quotes = v:null
let g:rust_recent_nearest_cargo_tol = v:null
let g:rust_recent_root_cargo_toml = v:null
let g:rust_recommended_style = v:null
let g:rust_set_conceallevel = v:null
let g:rust_set_conceallevel=1 = v:null
let g:rust_set_foldmethod = v:null
let g:rust_set_foldmethod=1 = v:null
let g:rust_shortener_url = v:null
let g:rustc_makeprg_no_percent = v:null
let g:rustc_path = v:null
let g:rustfmt_autosave = 0
let g:rustfmt_autosave_if_config_present = v:null
let g:rustfmt_command = 'rustfmt'
let g:rustfmt_emit_files = 1
let g:rustfmt_fail_silently = 0
let g:rustfmt_options = ''
let g:syntastic_extra_filetypes = v:null
let g:syntastic_rust_cargo_fname = v:null
rustfmt 1.4.38-nightly (71226d7 2022-02-04)
rustc 1.60.0-nightly (71226d717 2022-02-04)
cargo 1.60.0-nightly (25fcb13 2022-02-01)
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Скомпилирован builduser
Features: +acl +iconv +tui
See ":help feature-compile"
- Linguagem predominante
- Vim Script
- Estrelas
- 4.2k
- Forks
- 323
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de rust-lang/rust.vim
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 76/100
-
It's Dead, Jim!Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
-
Remove hard coded edition fallbackTalvez já em andamento @alerque assumiu há 232 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 35/100
-
README.md syntastic to aleAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 55/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
Todas as issues de rust-lang/rust.vim
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
nikic/PHP-Parser#1187 ·
-
compiler
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
HerringtonDarkholme/hd-lang#1699 ·
Mantenedores costumam responder em até 1 dia
-
documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
[workshop-sim] Repair: Make Copilot access and billing path decision self-contained in Steps 07/07dAbertafeedback simulation workshop
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
githubnext/gh-aw-workshop#5597 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100