orca-m - add snippets, add GEQUs to symbol list.

This commit is contained in:
Kelvin Sherlock 2017-09-21 10:51:15 -04:00
parent 0b90126168
commit d3d18e15ac
6 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>source.asm.65816.orcam entity.name.constant, source.asm.65816.orcam entity.name.function</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[$1 DATA
${0:; ...}
END
]]></content>
<tabTrigger>data</tabTrigger>
<scope>source.asm.65816.orcam entity.name.label</scope>
<description>data … end</description>
</snippet>

View File

@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[$1 PRIVATE
${0:; ...}
END
]]></content>
<tabTrigger>private</tabTrigger>
<scope>source.asm.65816.orcam entity.name.label</scope>
<description>private … end</description>
</snippet>

View File

@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[$1 PRIVDATA
${0:; ...}
END
]]></content>
<tabTrigger>privdata</tabTrigger>
<scope>source.asm.65816.orcam entity.name.label</scope>
<description>privdata … end</description>
</snippet>

View File

@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[$1 START
${0:; ...}
END
]]></content>
<tabTrigger>start</tabTrigger>
<scope>source.asm.65816.orcam entity.name.label</scope>
<description>start … end</description>
</snippet>

View File

@ -26,6 +26,13 @@ contexts:
2: keyword.directive
push: operand-segname
- match: '^({{ident}}){{ws}}((?i)GEQU)\b'
captures:
1: entity.name.constant
2: keyword.directive
push: operand
- match: '^{{ident}}'
scope: entity.name.label