Support Rust's `frontmatter` syntax in rust.vim

Abierto
#522 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
vim
Área
tooling

Línea de trabajo

Start by reading rust.vim's existing syntax support and the linked Rust RFCs to understand the proposed frontmatter boundaries and infostring behavior. Check whether the syntax has stabilized, then identify the syntax files and tests that cover Rust files and embedded formats. Done means frontmatter is recognized, with optional TOML support for cargo or an empty infostring, and the behavior is covered by tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Problem

RFC #3503 adds support for a new frontmatter syntax. The contained content format is defined by the calling tool with a tool identifier.

In RFC #3502, the cargo infostring identifier would be used to signify the block uses the Cargo.toml format/schema. Cargo will assume that an empty infostring is meant to be used with it.

Expected behavior

Support parsing Rust files with frontmatter syntax. Optionally detect and support TOML syntax inside of the frontmatter if the infostring is cargo or if there is no infostring

Note: These are not stable and I'm not expecting this be implemented before then but opened this now as a heads up to prep for when it is. Stabilization is being tracked in:

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rust-lang/rust.vim

Todos los issues de rust-lang/rust.vim

Issues similares

Más issues de DevTools

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.