mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-04 22:58:29 +08:00
Fixed bug in pasm syntax highlighting.
This commit is contained in:
parent
206cc3ebb0
commit
9b19431e0a
@ -20,16 +20,17 @@ const ASM_SYNTAX: languages.IMonarchLanguage = {
|
||||
// Registers.
|
||||
[/r\d+/, "predefined"],
|
||||
|
||||
[/\.[^\s]+/, "keyword"],
|
||||
|
||||
// Labels.
|
||||
[/[^\s]+:/, "tag"],
|
||||
|
||||
// Numbers.
|
||||
[/-?\d+(\.\d+)?(e-?\d+)?/, "number.float"],
|
||||
[/0x[0-9a-fA-F]+/, "number.hex"],
|
||||
[/-?\d+(\.\d+)?(e-?\d+)?/, "number.float"],
|
||||
[/-?[0-9]+/, "number"],
|
||||
|
||||
// Section markers.
|
||||
[/\.[^\s]+/, "keyword"],
|
||||
|
||||
// Identifiers.
|
||||
[/[a-z][a-z0-9_=<>!]*/, "identifier"],
|
||||
|
||||
@ -127,7 +128,7 @@ editor.defineTheme("phantasmal-world", {
|
||||
{ token: "keyword", foreground: "d0a0ff", fontStyle: "bold" },
|
||||
{ token: "predefined", foreground: "bbffbb" },
|
||||
{ token: "number", foreground: "ffffaa" },
|
||||
{ token: "number.hex", foreground: "ddffaa" },
|
||||
{ token: "number.hex", foreground: "ffffaa" },
|
||||
{ token: "string", foreground: "88ffff" },
|
||||
{ token: "string.escape", foreground: "8888ff" },
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user