You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<RevealAnswer>
abc `a <firstName>`
</RevealAnswer>
error`Unexpected token, expected "{"`
What's the problem here?
```javascript showLineNumbers
functionaddAndDivideByFive(numberA, numberB)
console.log('numberA', numberA) {
constsum= numberA + numberB;
constresult= sum /5;
return result;
}
```
Solution: We broke the function statement because we misplaced the `console.log`. The error message already gave us a hint about that. A `{` is expected right after specifying the parameters because the function
This now pulls in a grammar for from:
<https://github.com/wooorm/markdown-tm-language>.
It fixes a bunch of previous errors and adds real support for MDX.
It also supports YAML frontmatter, TOML frontmatter, GFM (autolink
literals, footnotes, strikethrough, tables, tasklists), GitHub (gemoji,
mentions, references).
There’s support for about 20 common embedded grammars in fenced code
blocks.
Embedded code (in fenced code blocks, or in ESM/expressions) is now
marked as being the correct language, which makes comments and such
work.
ClosesGH-183.
ClosesGH-191.
ClosesGH-209.
ClosesGH-221.
This now pulls in a grammar for from:
<https://github.com/wooorm/markdown-tm-language>.
It fixes a bunch of previous errors and adds real support for MDX.
It also supports YAML frontmatter, TOML frontmatter, GFM (autolink
literals, footnotes, strikethrough, tables, tasklists), GitHub (gemoji,
mentions, references).
There’s support for about 20 common embedded grammars in fenced code
blocks.
Embedded code (in fenced code blocks, or in ESM/expressions) is now
marked as being the correct language, which makes comments and such
work.
ClosesGH-183.
ClosesGH-191.
ClosesGH-209.
ClosesGH-221.
Co-authored-by: Remco Haszing <[email protected]>
Subject of the issue
If I have a program like this:
This has weird syntax highlighting:
This case is minimal. If I remove e.g. the
F
or an angle bracket<
, then the highlighting returns to normal:Your environment
The text was updated successfully, but these errors were encountered: