Skip to content

Commit 67b129d

Browse files
committed
polishing fixes
1 parent 8544b7b commit 67b129d

8 files changed

Lines changed: 9 additions & 8 deletions

File tree

web/src/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ code {
2020
code:not(pre code) {
2121
padding: 0.1em 0.5em !important;
2222
border-radius: 0.25rem !important;
23-
@apply bg-bg0_h
23+
@apply bg-bg0_h;
2424
}
2525

2626
code:not(pre code)::before,

web/src/lib/ide.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export function newIDE() {
6161
{ tag: tags.float, color: "#fab387" },
6262
{ tag: tags.operator, color: "#89dceb" },
6363
{ tag: tags.brace, color: "#a89984" },
64-
{ tag: tags.bool, color: "#89b4fa" }
64+
{ tag: tags.bool, color: "#89b4fa" },
65+
{ tag: tags.special(tags.variableName), color: "#f38ba8" },
6566
])),
6667
]
6768
});

web/src/lib/moduSyntax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default StreamLanguage.define({
4646
const keywords = [
4747
"let", "fn", "class", "import",
4848
"if", "else", "for", "while", "loop", "in",
49-
"return", "break", "continue", "self"
49+
"return", "break", "continue"
5050
];
5151

5252
if (keywords.includes(word)) return "keyword";

web/src/lib/tour/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let pages = [
2828
}
2929
]
3030

31-
export async function getLesson(slug: string): { html: string, code: string } {
31+
export async function getLesson(slug: string): Promise<{ html: string, code: string }> {
3232
try {
3333
let md = (await import(`$lib/tour/pages/${slug.replace(".md", "")}.md?raw`)).default // so hello-world and hello-world.md both work
3434
let [docs, code] = md.split("[CODE]");

web/src/lib/tour/pages/arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Arrays
2-
In modu strings have the following methods:
2+
In modu arrays have the following methods:
33
- `<array>.len()`
44
- `<array>.push(value)`
55
- `<array>.pop()`

web/src/lib/tour/pages/stdlib-http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import "std/http";
77
// sends a get request and prints the body
88
print(http.get("https://example.com").body);
99

10-
let headers = { "User-Agent": "Modu v3 HTTP };
10+
let headers = { "User-Agent": "Modu v3 HTTP" };
1111
let body = "modu!";
1212

1313
// sends a post request with a body and headers

web/src/lib/tour/pages/stdlib-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## JSON
2-
Modu comes with a JSON library, but its only used for parsing json. Most
2+
Modu comes with a JSON library, but its only used for parsing json.
33

44
[CODE]
55
// imports std/json as "json"

web/src/lib/tour/pages/type-conversion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Type Conversion
2-
Modu comes with serveral functions to convert between types, which can be useful when getting terminal input with `input()`.
2+
Modu comes with several functions to convert between types, which can be useful when getting terminal input with `input()`.
33

44
[CODE]
55
// int() is used to convert to ints

0 commit comments

Comments
 (0)