Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit acad3c2c256f1ce6adf57b7ca304faa371c7ef73 @sentientwaffle sentientwaffle committed Jan 29, 2012
Showing with 242 additions and 0 deletions.
  1. +1 −0 README.md
  2. +81 −0 completions.txt
  3. BIN icon.png
  4. +160 −0 syntax.json
@@ -0,0 +1 @@
+[Stratus editor](https://github.com/stratuseditor/)
@@ -0,0 +1,81 @@
+ARGF
+ArgumentError
+Array
+BasicObject
+Bignum
+Binding
+Class
+Comparable
+Complex
+Continuation
+Data
+Dir
+ENV
+EOFError
+Encoding
+EncodingError
+Enumerable
+Enumerator
+Errno
+Exception
+FalseClass
+Fiber
+FiberError
+File
+File::Constants
+File::Stat
+FileTest
+Fixnum
+Float
+FloatDomainError
+GC
+Hash
+IO
+IOError
+IndexError
+Integer
+Interrupt
+Kernel
+KeyError
+LoadError
+LocalJumpError
+MarshalatchData
+NameError
+NilClass
+NoMemoryError
+NoMethodError
+NotImplementedError
+Numeric
+Object
+ObjectSpace
+Proc
+Process
+Random
+Range
+RangeError
+Rational
+Regexp
+RegexpError
+RubyVM
+RuntimeError
+ScriptError
+SecurityError
+Signal
+SignalException
+StandardError
+StopIteration
+String
+Struct
+Symbol
+SyntaxError
+SystemCallError
+SystemExit
+SystemStackError
+Thread
+ThreadError
+ThreadGroup
+Time
+TrueClass
+TypeError
+UnboundMethod
+ZeroDivisionError
BIN icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,160 @@
+{ "name": "Ruby"
+, "url": "https://github.com/stratuseditor/Ruby.sebundle"
+, "author": "sentientwaffle"
+, "version": "0.0.1"
+
+, "require": []
+, "fileTypes":
+ [ "\\.rb", "\\.ru"
+ , "Gemfile", "Rakefile"
+ , "Capfile", "Guardfile"
+ , "\\.gemspec", "\\.rake"
+ ]
+, "firstLine": "^#!/.*\\bruby\\b"
+
+, "preferences":
+ { "tab": " "
+ , "indent":
+ [ "^\\s*(?:module|class|def|for|until|if|else|elsif|unless|while|begin|case)\\b"
+ , "\\b(?:do)\\b"
+ ]
+ , "outdent":
+ [ "\\s(?:end|else|elsif|ensure)"
+ ]
+ , "pairs": {"`": "`"}
+ }
+
+, "syntax":
+ { "$":
+ [ { "token": "comment"
+ , "match": "[#].*(?=\n)"
+ }
+
+ , "Block comment"
+ , { "token": "comment"
+ , "begin": "\n=begin"
+ , "end": "\n=end"
+ }
+
+ , "Symbols"
+ , { "token": "constant.builtin"
+ , "match": "[:](?:[a-zA-Z_]+|\"[^\"]*\"|'[^']*')"
+ }
+
+ , "Double quoted string"
+ , { "token": "string.literal"
+ , "begin": "\""
+ , "end": "\""
+ , "include": [{"include": "#interpol"}]
+ }
+ , "Tick mark quoted string"
+ , { "token": "string.literal"
+ , "begin": "`"
+ , "end": "`"
+ , "include": [{"include": "#interpol"}]
+ }
+ , "Single quoted string"
+ , { "token": "string.literal"
+ , "begin": "'"
+ , "end": "'"
+ }
+
+
+ , "Funny strings"
+ , { "token": "string.literal"
+ , "begin": "%[qQwrx]?[\\(]"
+ , "end": "[\\)]"
+ , "include": [{"include": "#interpol"}]
+ }
+ , { "token": "string.literal"
+ , "begin": "%[qQwrx]?[\\[]"
+ , "end": "[\\]]"
+ , "include": [{"include": "#interpol"}]
+ }
+ , { "token": "string.literal"
+ , "begin": "%[qQwrx]?[{]"
+ , "end": "[}]"
+ , "include": [{"include": "#interpol"}]
+ }
+ , { "token": "string.literal"
+ , "begin": "%[qQwrx]?[<]"
+ , "end": "[>]"
+ , "include": [{"include": "#interpol"}]
+ }
+
+ , "Regular expressions"
+ , { "token": "string.regexp"
+ , "match": "/[^\\s][^/]*/[imxo]*"
+ }
+
+ , "Class"
+ , { "token": "keyword"
+ , "begin": "\\sclass\\s"
+ , "end": "\n"
+ , "include":
+ [ { "token": "entity.class"
+ , "match": "\\w+"
+ }
+ , { "token": "keyword.operator"
+ , "match": "[<]"
+ }
+ ]
+ }
+
+ , "Function definition"
+ , { "token": "keyword"
+ , "begin": "def "
+ , "end": "(?=\\()|\n|[ ]"
+ , "include":
+ [ { "token": "entity.function"
+ , "match": "[\\w]+[\\?!]?"
+ }
+ ]
+ }
+
+ , { "token": "entity.builtin"
+ , "keywords": "new|require|require_relative"
+ }
+
+ , "Keywords"
+ , { "token": "keyword"
+ , "keywords": "BEGIN|END|__ENCODING__|__END__|__FILE__|__LINE__|alias|and|begin|break|case|class|def|defined\\?|do|else|elsif|end|ensure|for|if|in|module|next|not|or|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|private|public|protected"
+ }
+
+
+ , { "token": "keyword.operator"
+ , "match": "[:][:]|\\.\\.|/|!|%|&|\\*|\\-|\\+|\\+|~|=|<|>|\\|\\||\\?\\:|\\+|\\-|\\^"
+ }
+
+ , "Constants"
+ , { "token": "constant"
+ , "keywords": "[A-Z][\\w]+"
+ }
+
+ , { "token": "variable.instance"
+ , "match": "(?:@?@[\\w]+|self)"
+ }
+
+ , "Numbers and ?[Char]"
+ , { "token": "constant.numeric"
+ , "keywords": "-?[0-9]+(?:\\.(?!\\.)[0-9]*)?(?:e-?[0-9]*)?"
+ }
+ , { "token": "constant.numeric"
+ , "match": "\\?[a-zA-Z_]"
+ }
+
+ , { "token": "constant.builtin"
+ , "keywords": "true|false|nil"
+ }
+
+ ]
+
+ , "#interpol":
+ { "token": "string.interpol"
+ , "begin": "#{"
+ , "end": "}"
+ , "include": "$self"
+ }
+
+ }
+}

0 comments on commit acad3c2

Please sign in to comment.