Skip to content

Question about trifecta localIndentation #2

@thunderseethe

Description

@thunderseethe

I was taking a look at the localIndentation for the trifecta IndentationParsing class, and I am struggling to understand how it works/how to use it.

It looks like the implementation only updates the valid index set locally but not the default tokenRel in localIndentation'. Given this, doesn't any checking of that valid index set use the wrong relation? If my default relation is > I can only express (p>)>= for example, and not p>= directly.

What am I missing about the relation between localIndentation and how tokenRel gets checked in updateIndentation? I know I can use localTokenMode to override tokenRel and achieve what I want but my understanding was that shouldn't be required for one off uses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions