Skip to content

Commit

Permalink
fix: resolve syntax errors in fixtures (#10828)
Browse files Browse the repository at this point in the history
I parsed every `.astro` file in the Astro repository (to check
if tree-sitter-astro had any bugs), and found these three syntax errors
that don't seem intentional.
  • Loading branch information
virchau13 authored Apr 22, 2024
1 parent b0de82b commit 5cb7d2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ import Layout from '../components/Layout.astro';
<Layout>
<p id="FourOhFour">Page not found</p>
</Layout>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import {capitalize} from 'file://../strings.js';
<html>
<head><title>Testing</title></head>
<body>
<h1>{capitalize('works')</h1>
<h1>{capitalize('works')}</h1>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import twoFromURL_URL from "../assets/url.jpg?url";

<Image src={onlyOne} alt="Only one of me exists at the end of the build" />

<Image src={twoOfUs} alt="Two of us will exist, because I'm also used as a normal image" /></Image>
<Image src={twoOfUs} alt="Two of us will exist, because I'm also used as a normal image" />
<img src={twoOfUs.src} alt="Two of us will exist, because I'm also used as a normal image" />

<Image src={twoFromURL} alt="Two of us will exist, because I'm also imported using ?url" /></Image>
<Image src={twoFromURL} alt="Two of us will exist, because I'm also imported using ?url" />
<img src={twoFromURL_URL} alt="Two of us will exist, because I'm also used as a normal image" />

0 comments on commit 5cb7d2a

Please sign in to comment.