1
0
mirror of https://github.com/ksherlock/x65.git synced 2024-06-12 22:29:33 +00:00

Tuning the lanuage extension for Visual Studio Code a bit

This commit is contained in:
Carl-Henrik Skårstedt 2017-01-28 17:02:41 -08:00
parent 2b52ca29e4
commit dbb0833c15
5 changed files with 21 additions and 1 deletions

View File

@ -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

View File

@ -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

BIN
vscode/example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -56,6 +56,12 @@
<key>name</key>
<string>directive</string>
</dict>
<dict>
<key>match</key>
<string>(?i)((^|\s+)(XDEF|XREF|SECTION|SEG|SEGMENT|MERGE|LINK|INCOBJ)|\s+ert)\b</string>
<key>name</key>
<string>control.segment</string>
</dict>
</array>
</dict>
<key>opcodes</key>
@ -76,7 +82,7 @@
</dict>
<dict>
<key>match</key>
<string>(?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+|[:$#(])</string>
<string>\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</string>
<key>name</key>
<string>keyword.other.opcode.6502.illegal</string>
</dict>

View File

@ -45,6 +45,17 @@
<string>#00cc55</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>SegmentControl</string>
<key>scope</key>
<string>control.segment</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#a0ff80</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Number</string>