html! macro from yew web framework for wasm rust has embedded html code which is being highlighted incorrectly. I tried playing around with the tree sitter playground but i couldn't figure it out with my noob skills. how would you go about fixing this?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • yew

    Rust / Wasm framework for creating reliable and efficient web applications

  • The file in this screenshot belongs to an example in the yew github repo

  • tree-sitter-rsx

    hopefully better yew highlighting and stuff for rust

  • You would probably need to write a custom parser for it to work like you would want. Tj started on this on stream last year, but it hasn't been updated since. You could probably try to continune with that and explore creating a parser if you want. Here is his starting repo: https://github.com/tjdevries/tree-sitter-rsx

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • scorpeon.vim

    Discontinued Syntax highlight using VSCode's textmate grammar as is.

  • you could try scorpeon.nvim or a dedicated plugin instead of treesitter

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts