Skip to content

fix: corrigir syntax highlighting e wrap do diff - #30

Merged
IsraelAraujo70 merged 1 commit into
mainfrom
fix/code-review-highlighting-wrap
Jul 22, 2026
Merged

IsraelAraujo70 merged 1 commit into
mainfrom
fix/code-review-highlighting-wrap

Conversation

@IsraelAraujo70

Copy link
Copy Markdown
Owner

Resumo

  • Corrige o syntax highlighting Tree-sitter e o wrap do diff sem overflow.
  • Fixa o runtime web-tree-sitter em 0.25.10 e copia o WASM compatível.
  • Adiciona cobertura para parsing TSX real e renderização de tokens/wrap.

Causa raiz

O runtime web-tree-sitter 0.26 era incompatível com os WASM fornecidos por tree-sitter-wasms, causando falha no carregamento/parsing do highlighting.

Correção

  • Fixa web-tree-sitter em 0.25.10.
  • Usa o WASM correto do runtime (tree-sitter.wasm).
  • Remove larguras mínimas rígidas e aplica wrap com overflow-wrap:anywhere nas células do diff.

Verificações

  • Hook de commit: 8 testes UX passaram.
  • 386 testes frontend.
  • npm run typecheck.
  • npm run lint.
  • npm run build.
  • Parsing TSX real em teste.
  • Chromium.

Tipo de mudança

  • Bug fix
  • Nova feature
  • Breaking change
  • Documentação

@IsraelAraujo70
IsraelAraujo70 merged commit d33df64 into main Jul 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant