Skip to content

Commit e920306

Browse files
fix: update grammar
1 parent 2c08890 commit e920306

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

site/public/grammars/pywire.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,4 +476,4 @@
476476
]
477477
}
478478
}
479-
}
479+
}

site/src/pages/index.astro

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ const highlighter = await createHighlighter({
1717
],
1818
})
1919
20-
const pywireCode = `count = wire(0)
21-
22-
def increment():
23-
$count += 1
24-
25-
--- html ---
20+
const pywireCode = `---
21+
count = wire(0)
22+
---
2623
<p>Count: {count}</p>
27-
<button @click={increment}>
24+
<button @click={count.value += 1}>
2825
Add One
2926
</button>`
3027

0 commit comments

Comments
 (0)