Added comment shortcut

This commit is contained in:
John Mumm 2013-10-16 12:50:34 -04:00
parent ea9f0bd41a
commit e9438a40bb
6 changed files with 44 additions and 3 deletions

View File

@ -40,6 +40,11 @@
"comment": "Comment"
},
{
"match": "(\/\/|;)(\\s|\\S)*",
"name": "comment.punctuation.definition.asm",
"comment": "Comment"
},
{
"match": "(?i)\\b([\\w|\\d]*)\\:",
@ -78,7 +83,7 @@
},
{
"match": "(?i)\\#([0-9]+)\\b",
"match": "(?i)\\#([0-9a-f$%]+)\\b",
"name": "constant.numeric.asm",
"comment": "Decimal number"
}

View File

@ -58,6 +58,14 @@
<key>name</key>
<string>comment.line.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Comment</string>
<key>match</key>
<string>(//|;)(\s|\S)*</string>
<key>name</key>
<string>comment.punctuation.definition.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Jump label</string>
@ -110,7 +118,7 @@
<key>comment</key>
<string>Decimal number</string>
<key>match</key>
<string>(?i)\#([0-9]+)\b</string>
<string>(?i)\#([0-9a-f$%]+)\b</string>
<key>name</key>
<string>constant.numeric.asm</string>
</dict>

BIN
6502asm.tmLanguage.cache Normal file

Binary file not shown.

28
Comments.tmPreferences Normal file
View File

@ -0,0 +1,28 @@
<?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>Comments</string>
<key>scope</key>
<string>source.asm</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>^\s*((end|else|elseif)\b)</string>
<key>increaseIndentPattern</key>
<string>^\s*(if|while|for|begin|function|macro|module|type|let|else|elseif)\b.*\s*$</string>
<key>shellVariables</key>
<array>
<dict>
<key>name</key>
<string>TM_COMMENT_START</string>
<key>value</key>
<string>; </string>
</dict>
</array>
</dict>
<key>uuid</key>
<string>2d29de24-0f40-4855-a408-6fe8b3055153</string>
</dict>
</plist>

Binary file not shown.

View File

@ -1 +1 @@
{"url": "https://github.com/jtfmumm/6502asm-sublime", "version": "0.1", "description": "6502 asm syntax definition for Sublime Text 2"}
{"url": "https://github.com/jtfmumm/6502asm-sublime", "version": "2013.10.11.16.09.52", "description": "A 6502 asm syntax definition for Sublime Text 2."}