"if" in comment can mess up indentaction
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 52/100
Línea de trabajo
Start with the referenced logic in indent/rust.vim at lines 148–149 and check how it handles the example comment before a struct block. Reproduce the indentation issue with the supplied steps, then confirm that the closing brace is no longer indented by the comment. No test file is mentioned in the issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
- rust.vim version: 4aa69b84c8a58fcec6b6dad6fe244b916b1cf830
Steps to reproduce:
- Edit a file with "If" inside a comment, on an indented line (I believe "fn" will also trigger the issue)
- Begin and end any block
Expected behavior: The comment shouldn't affect indenting
Actual behavior: The } char will be indented to match the indent of the comment line. Note the leading space in the example below:
/**
* Something is wrong if rust.vim adds indent to the last line
*/
struct Foo {
}
I believe this is due to this line, which doesn't take into account if a line is a comment or not: https://github.com/rust-lang/rust.vim/blob/master/indent/rust.vim#L148-L149
- Lenguaje dominante
- Vim Script
- Estrellas
- 4.2k
- Forks
- 323
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rust-lang/rust.vim
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
-
It's Dead, Jim!Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
-
Remove hard coded edition fallbackPosiblemente ocupada @alerque la tomó hace 230 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
-
README.md syntastic to aleAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 55/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
Todos los issues de rust-lang/rust.vim
Issues similares
-
[Bug]: Python mod.Box[T] annotation gets a false generic_arg edge that replaces the parameter_type one ('is' on tree-sitter nodes)Posiblemente ocupada @rohit-jsfreaky la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Graphify-Labs/graphify#5110 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
bigbio/sdrf-pipelines#372 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:plugins kind:bug priority:p2 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Djangonauts
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
render-engine/render-engine-cli#71 ·
Los mantenedores suelen responder en 1 día