Swift Grammar - expression symbol

expression → try-operator ? await-operator ? prefix-expression infix-expressions ? \

My Question is that "\" at the last of productions supposed to be bold or is it mistake?

How would that appear in syntax? Can someone explain?

That looks to me like a bug in the source markdown when we added hard breaks to the end of lines in the grammar; it shouldn't show up in the rendered documentation.

Feel free to file a bug or PR fix for this in the repo. (And I'll tag @Alex_Martini here for general awareness.)

1 Like

Thanks for pointing this out — yes, it's a mistake in the book. Here's a PR with the fix:

1 Like