-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird bug in live editor when using words with substring end
#184
Labels
Type: New Shape
Request for new shape
Comments
actually this breaks
|
sbussard
changed the title
Weird bug in live editor using
Weird bug in live editor when using words with substring Jul 9, 2015
end
end
Thanks for bringing this up. It must be because end is also a keyword for subgraphs. I will take a look at it. |
Not so easy to fix I'm afraid. You can have keywords in text though so an easy workaround would be:
I hope this suffices, will put this issue as won't fix as there is the simple workaround. |
spect88
added a commit
to spect88/mermaid
that referenced
this issue
Oct 14, 2015
Jison adds \b (word boundary) to literal string patterns by default. It does so, because it doesn't follow traditional match-longest approach, but does match-first instead. Without including word boundaries, it'd be hard to distinguish between a keyword and identifier. The pattern for `end` keyword is not a simple string literal - it swallows trailing whitespace, so we have to add \b manually. This partially fixes mermaid-js#184 - at least now `end` behaves the same as other keywords: it can be used as a prefix and infix, but not as a suffix. To solve this issue completely, ALPHA pattern would have to match multiple letters, which is a much bigger change.
mgenereu
pushed a commit
to mgenereu/mermaid
that referenced
this issue
Jun 25, 2022
…yarn/develop/macfja/svelte-persistent-store-1.1.1 Bump @macfja/svelte-persistent-store from 1.1.0 to 1.1.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The live editor breaks when trying to process this
The text was updated successfully, but these errors were encountered: