Skip to content

Conversation

@lookingfora
Copy link

Brackets are reserved by the syntax tree parser, but some users (such as myself) want to use brackets in node strings (such as to signify that a value is "virtual").

This will ignore brackets preceded with \ when building the tree, then remove backslashes preceding bracket characters before displaying text. Other backslashes will remain unchanged.

@mshang
Copy link
Owner

mshang commented Nov 5, 2015

Seems reasonable, but what do you think about making backslash escape everything and not just brackets, with double backslash being a literal backslash, like how it's done in most programming languages?

@MCMCMC
Copy link

MCMCMC commented Jan 3, 2025

Seems reasonable, but what do you think about making backslash escape everything and not just brackets, with double backslash being a literal backslash, like how it's done in most programming languages?

I love this app! Please add this functionality to the canon branch! I also need it for tense etc. :)

@joshsellers
Copy link

joshsellers commented Oct 10, 2025

I love this app! Please add this functionality to the canon branch! I also need it for tense etc. :)

Hi, I forked this repo and included this PR since this seems to be abandoned, check it out if you'd like: https://github.com/joshsellers/syntree

Here's the GitHub io page for quick access: https://joshsellers.github.io/syntree/

@mshang mshang force-pushed the gh-pages branch 3 times, most recently from 6c92188 to d3364c4 Compare November 2, 2025 19:58
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.

5 participants