Skip to content

No text span info in statements preventing from using AST in text coloring scenarios #822

Description

@krzysiek-b

Hi,

I would like to use the parser and AST to add colors to the end user template editor. Seems when I use

var template = FluidParser.Parse(content);
var statements = ((Fluid.Parser.FluidTemplate)template).Statements;

some statements have no information about Offset/Length which then does not allow to use those tokens to add colors in the editor.
Is there any chance this could get added into statements instances?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions