diff --git a/vscode/CHANGELOG.md b/vscode/CHANGELOG.md index 44e93a7..9ef9ff0 100644 --- a/vscode/CHANGELOG.md +++ b/vscode/CHANGELOG.md @@ -1,2 +1,3 @@ ## 0.1.0 * Bunched together a shabby working version of Visual Studio Code editing of 6502 intended for assembling with x65 +* Added coloring for section control \ No newline at end of file diff --git a/vscode/README.md b/vscode/README.md index 933fd86..e02839a 100644 --- a/vscode/README.md +++ b/vscode/README.md @@ -4,6 +4,8 @@ As I don't like the marketplaceification of seemingly simple tools I'm not putting this on the visual studio coded marketplace, but if anyone wants to do that I don't mind. +![Visual studio code screenshot](example.png) + In order to "side load" this extension into visual studio code follow these steps 1. Install Visual Studio Code unless already Installed diff --git a/vscode/example.png b/vscode/example.png new file mode 100644 index 0000000..685e992 Binary files /dev/null and b/vscode/example.png differ diff --git a/vscode/x65.tmLanguage b/vscode/x65.tmLanguage index 80b8571..b26d1e1 100644 --- a/vscode/x65.tmLanguage +++ b/vscode/x65.tmLanguage @@ -56,6 +56,12 @@ name directive + + match + (?i)((^|\s+)(XDEF|XREF|SECTION|SEG|SEGMENT|MERGE|LINK|INCOBJ)|\s+ert)\b + name + control.segment + opcodes @@ -76,7 +82,7 @@ match - (?i)(\s+|(?<=:))(aso|rln|lse|rrd|sax|lax|dcp|isb|anc|alr|arr|ane|anx|sbx|las|sha|shs|shx|shy|npo|cim|dop|top)(?=\s+|[:$#(]) + \b(aso|rln|lse|rrd|sax|lax|dcp|isb|anc|alr|arr|ane|anx|sbx|las|sha|shs|shx|shy|npo|cim|dop|top)\b name keyword.other.opcode.6502.illegal diff --git a/vscode/x65.tmTheme b/vscode/x65.tmTheme index c01c1f8..31c95c8 100644 --- a/vscode/x65.tmTheme +++ b/vscode/x65.tmTheme @@ -45,6 +45,17 @@ #00cc55 + + name + SegmentControl + scope + control.segment + settings + + foreground + #a0ff80 + + name Number