Skip to content

Commit

Permalink
Refactor to use abnf
Browse files Browse the repository at this point in the history
Signed-off-by: Titus <[email protected]>
  • Loading branch information
wooorm committed Jul 31, 2024
1 parent 78f6a21 commit 6a69c10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ import a from 'b'

ESM forms with the following BNF:

```bnf
```abnf
; Restriction: the entire construct must be valid JavaScript.
mdx_esm ::= word ' ' *line *(eol *line)
mdxEsm ::= word " " *line *(eol *line)
word ::= 'e' 'x' 'p' 'o' 'r' 't' | 'i' 'm' 'p' 'o' 'r' 't'
word ::= "e" "x" "p" "o" "r" "t" | "i" "m" "p" "o" "r" "t"
```

This construct must be followed by a blank line or eof (end of file).
Expand Down

0 comments on commit 6a69c10

Please sign in to comment.