Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 2ee5346440b3bda28dce16901f77fd8a2aa10b32 @klaussilveira committed May 22, 2012
Showing with 120 additions and 0 deletions.
  1. +28 −0 .gitignore
  2. +18 −0 README.md
  3. +74 −0 nesasm.tmLanguage
@@ -0,0 +1,28 @@
+*.tmLanguage.cache
+*.diff
+*.err
+*.orig
+*.log
+*.rej
+*.swo
+*.swp
+*.zip
+*.vi
+*~
+*.sass-cache
+.DS_Store
+._*
+Thumbs.db
+.cache
+.project
+.settings
+.tmproj
+*.esproj
+nbproject
+*.sublime-project
+*.sublime-workspace
+.hg
+.svn
+.CVS
+.idea
+node_modules
@@ -0,0 +1,18 @@
+# NESASM-Sublime
+
+## Description
+
+NESASM-Sublime is NESASM-oriented assembly language syntax definition for [Sublime Text 2](http://www.sublimetext.com/). Support both ASM v1.0 and ASM v2.0 constructions.
+
+## How to install
+
+There are three ways to install this syntax definition.
+
+1. Simplest way. Download repository content to your local disk and copy folder `AVR-ASM-Sublime` (renamed) to Sublime [packages directory](http://sublimetext.info/docs/en/basic_concepts.html#the-packages-directory).
+2. Another simplest way. `cd ~/.config/sublime-text-2/packages && git clone git://github.com/voventus/AVR-ASM-Sublime.git`
+3. Preferred way. Install this syntax definition through [package control](http://wbond.net/sublime_packages/package_control): Preferences ► Package Control ► Install Package ► AVR-ASM-Sublime
+
+Restart Sublime if needed.
+
+### Usage ###
+As usual: View ► Syntax ► AVR ASM
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>fileTypes</key>
+ <array>
+ <string>asm</string>
+ <string>ASM</string>
+ </array>
+ <key>name</key>
+ <string>NES ASM</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>;.+$</string>
+ <key>name</key>
+ <string>comment.line</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>"[a-zA-Z.-_]+"</string>
+ <key>name</key>
+ <string>string.quoted</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\$[0-9a-fA-F]+</string>
+ <key>name</key>
+ <string>storage.type</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\#\%[0-9a-fA-F]+\b</string>
+ <key>name</key>
+ <string>storage.type</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\#[0-9a-zA-Z]+\b</string>
+ <key>name</key>
+ <string>storage.type</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>\#\$[0-9a-fA-F]+\b</string>
+ <key>name</key>
+ <string>storage.type</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>^[0-9a-zA-Z]+\b\:</string>
+ <key>name</key>
+ <string>entity.name.function</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>[\s]+[.]{1}[a-zA-Z]+\b</string>
+ <key>name</key>
+ <string>constant.language</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>^[\s]+[A-Z]{3}</string>
+ <key>name</key>
+ <string>keyword.operator</string>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>source.nesasm</string>
+ <key>uuid</key>
+ <string>c16b05ac-5014-4e68-8cb0-196f13d412d2</string>
+</dict>
+</plist>

0 comments on commit 2ee5346

Please sign in to comment.