mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-05 15:28: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.
|
// Registers.
|
||||||
[/r\d+/, "predefined"],
|
[/r\d+/, "predefined"],
|
||||||
|
|
||||||
[/\.[^\s]+/, "keyword"],
|
|
||||||
|
|
||||||
// Labels.
|
// Labels.
|
||||||
[/[^\s]+:/, "tag"],
|
[/[^\s]+:/, "tag"],
|
||||||
|
|
||||||
// Numbers.
|
// Numbers.
|
||||||
[/-?\d+(\.\d+)?(e-?\d+)?/, "number.float"],
|
|
||||||
[/0x[0-9a-fA-F]+/, "number.hex"],
|
[/0x[0-9a-fA-F]+/, "number.hex"],
|
||||||
|
[/-?\d+(\.\d+)?(e-?\d+)?/, "number.float"],
|
||||||
[/-?[0-9]+/, "number"],
|
[/-?[0-9]+/, "number"],
|
||||||
|
|
||||||
|
// Section markers.
|
||||||
|
[/\.[^\s]+/, "keyword"],
|
||||||
|
|
||||||
// Identifiers.
|
// Identifiers.
|
||||||
[/[a-z][a-z0-9_=<>!]*/, "identifier"],
|
[/[a-z][a-z0-9_=<>!]*/, "identifier"],
|
||||||
|
|
||||||
@ -127,7 +128,7 @@ editor.defineTheme("phantasmal-world", {
|
|||||||
{ token: "keyword", foreground: "d0a0ff", fontStyle: "bold" },
|
{ token: "keyword", foreground: "d0a0ff", fontStyle: "bold" },
|
||||||
{ token: "predefined", foreground: "bbffbb" },
|
{ token: "predefined", foreground: "bbffbb" },
|
||||||
{ token: "number", foreground: "ffffaa" },
|
{ token: "number", foreground: "ffffaa" },
|
||||||
{ token: "number.hex", foreground: "ddffaa" },
|
{ token: "number.hex", foreground: "ffffaa" },
|
||||||
{ token: "string", foreground: "88ffff" },
|
{ token: "string", foreground: "88ffff" },
|
||||||
{ token: "string.escape", foreground: "8888ff" },
|
{ token: "string.escape", foreground: "8888ff" },
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user