Skip to content

Conversation

@inponomarev
Copy link

Hi, first of all -- thanks for the great tool! Currently I'm migrating from parcon.railroad to syntrax for my project's documentation (which involves a custom SQL dialect description).

There is an issue #2 -- it's not only me who came across the difficulty to get '/' node to be shown correctly as a simple token.

Let me offer the better solution than it was discussed in the issue. Since '/'-as-a-prefix should work only if something follows it, it seems that 'box' matcher should be fixed to ^/., that is 'beginning of a string, '/', and at least one character more'. Then we save the same behaviour for the '/' prefix, except only for a case when it stands alone -- for which token rule will work.

@inponomarev
Copy link
Author

NB: The syntrax project was reimplemented in Java, jsyntrax is free from the problem I was trying to solve with this PR

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