diff --git a/6502asm.JSON-tmLanguage b/6502asm.JSON-tmLanguage
index d04aa54..52ea3f5 100644
--- a/6502asm.JSON-tmLanguage
+++ b/6502asm.JSON-tmLanguage
@@ -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"
}
diff --git a/6502asm.tmLanguage b/6502asm.tmLanguage
index 69a9f5b..2a7718a 100644
--- a/6502asm.tmLanguage
+++ b/6502asm.tmLanguage
@@ -58,6 +58,14 @@
name
comment.line.asm
+
+ comment
+ Comment
+ match
+ (//|;)(\s|\S)*
+ name
+ comment.punctuation.definition.asm
+
comment
Jump label
@@ -110,7 +118,7 @@
comment
Decimal number
match
- (?i)\#([0-9]+)\b
+ (?i)\#([0-9a-f$%]+)\b
name
constant.numeric.asm
diff --git a/6502asm.tmLanguage.cache b/6502asm.tmLanguage.cache
new file mode 100644
index 0000000..96368d7
Binary files /dev/null and b/6502asm.tmLanguage.cache differ
diff --git a/Comments.tmPreferences b/Comments.tmPreferences
new file mode 100644
index 0000000..9a956aa
--- /dev/null
+++ b/Comments.tmPreferences
@@ -0,0 +1,28 @@
+
+
+
+
+ name
+ Comments
+ scope
+ source.asm
+ settings
+
+ decreaseIndentPattern
+ ^\s*((end|else|elseif)\b)
+ increaseIndentPattern
+ ^\s*(if|while|for|begin|function|macro|module|type|let|else|elseif)\b.*\s*$
+ shellVariables
+
+
+ name
+ TM_COMMENT_START
+ value
+ ;
+
+
+
+ uuid
+ 2d29de24-0f40-4855-a408-6fe8b3055153
+
+
diff --git a/Comments.tmPreferences.cache b/Comments.tmPreferences.cache
new file mode 100644
index 0000000..63918ed
Binary files /dev/null and b/Comments.tmPreferences.cache differ
diff --git a/package-metadata.json b/package-metadata.json
index b85d822..f36e969 100644
--- a/package-metadata.json
+++ b/package-metadata.json
@@ -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."}
\ No newline at end of file