Skip to content

RSX parser suggestion, iteration 2 #4

@vldm

Description

@vldm

Hi, original author of syn-rsx had created an issue about using generic crate for html parsing.

Since then, original author disappeared, and i have created a fork stoically/syn-rsx#58
and wanted to share it with you.

In order to check if there is any interest in generalizing (ht/x)ml template parsing for rust.

Brief view shows that one feature is currently incompatible with this macro.

  • string literal in place of attribute keys is not supported by rstml. (but rstml support blocks on attribute level, and dash separated idents (like x-foo-bar) )

It also contain few improvements that could be interested:

  • support unquoted text (on stable without spaces- can be used for script/jscode)
  • recovery parsing - allows you to keep semantic feature (like highlight, or goto definition) when some errors in user code exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions