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

Aberta
#522 0 comentários 1 reação 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
vim
Domínio
tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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:

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

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de rust-lang/rust.vim

Todas as issues de rust-lang/rust.vim

Issues semelhantes

Mais issues de DevTools

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.