Skip to content
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

parser bug on docs with double backticks #5076

Open
Tracked by #5091
stew opened this issue Jun 11, 2024 · 0 comments
Open
Tracked by #5091

parser bug on docs with double backticks #5076

stew opened this issue Jun 11, 2024 · 0 comments

Comments

@stew
Copy link
Member

stew commented Jun 11, 2024

Input:

```unison:hide
x = {{
    ``let "me"`` live
    ``do "me"`` in      
  }}
```

Output:

  I got confused here:
  
      2 |     ``let "me"`` live
  
  
  I was surprised to find a syntax.docWord here.
  I was expecting one of these instead:
  
  * :
  * and
  * bang
  * do
  * false
  * handle
  * if
  * infixApp
  * let
  * or
  * quote
  * termLink
  * true
  * tuple
  * typeLink

This is causing a round trip error with our website currently for this term:

https://share.unison-lang.org/@unison/website/code/main/latest/terms/learn/languageReference/delayedComputations/syntacticPrecedence

@stew stew added the bug label Jun 11, 2024
@aryairani aryairani removed the bug label Jun 13, 2024
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

No branches or pull requests

2 participants