Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added TextMate bundle.

  • Loading branch information...
commit 187c5620aea53f5007899b1bb196f780709ce088 1 parent 5386ff2
@mjackson authored
View
24 extras/Citrus.tmbundle/Preferences/Comments.tmPreferences
@@ -0,0 +1,24 @@
+<?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.citrus</string>
+ <key>settings</key>
+ <dict>
+ <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>931BCD12-AC4A-4949-AFC6-87709889B848</string>
+</dict>
+</plist>
View
19 extras/Citrus.tmbundle/Preferences/Indent.tmPreferences
@@ -0,0 +1,19 @@
+<?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>Indent</string>
+ <key>scope</key>
+ <string>source.citrus</string>
+ <key>settings</key>
+ <dict>
+ <key>decreaseIndentPattern</key>
+ <string>^\s*end\s*$</string>
+ <key>increaseIndentPattern</key>
+ <string>^\s*(grammar|rule)\s+\w+\s*$</string>
+ </dict>
+ <key>uuid</key>
+ <string>2087091C-5138-429B-9B5A-C64E771F5894</string>
+</dict>
+</plist>
View
20 extras/Citrus.tmbundle/Snippets/grammar ___ end.tmSnippet
@@ -0,0 +1,20 @@
+<?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>content</key>
+ <string>grammar ${1:GrammarName}
+ rule ${2:rule_name}
+ $0
+ end
+end</string>
+ <key>name</key>
+ <string>grammar ... end</string>
+ <key>scope</key>
+ <string>source.citrus</string>
+ <key>tabTrigger</key>
+ <string>g</string>
+ <key>uuid</key>
+ <string>390503B7-6A08-4AC5-A478-88FD5D4920BB</string>
+</dict>
+</plist>
View
18 extras/Citrus.tmbundle/Snippets/rule ___ end.tmSnippet
@@ -0,0 +1,18 @@
+<?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>content</key>
+ <string>rule ${1:rule_name}
+ $0
+end</string>
+ <key>name</key>
+ <string>rule ... end</string>
+ <key>scope</key>
+ <string>meta.grammar.citrus</string>
+ <key>tabTrigger</key>
+ <string>r</string>
+ <key>uuid</key>
+ <string>4CC0B6D5-BEE9-4D5A-AE7D-6F57791EF466</string>
+</dict>
+</plist>
View
331 extras/Citrus.tmbundle/Syntaxes/Citrus Grammar.tmLanguage
@@ -0,0 +1,331 @@
+<?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>fileTypes</key>
+ <array>
+ <string>citrus</string>
+ </array>
+ <key>foldingStartMarker</key>
+ <string>(grammer|rule).*$</string>
+ <key>foldingStopMarker</key>
+ <string>^\s*end</string>
+ <key>name</key>
+ <string>Citrus Grammar</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#comment</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>\b(require)\b</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.other.special-method.citrus</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>$|(?=#)</string>
+ <key>name</key>
+ <string>meta.require.citrus</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#string</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>^\s*(grammar)\s+((?:(?:::)?[A-Z]\w*)+)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.begin.grammar.citrus</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.grammar.citrus</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\bend\b</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.end.grammar.citrus</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.grammar.citrus</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#comment</string>
+ </dict>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.other.special-method.citrus</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.module.citrus</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>\b(include)\s+((?:(?:::)?[A-Z]\w*)+)</string>
+ <key>name</key>
+ <string>meta.include.citrus</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>^\s*(rule)\s+([a-zA-Z][a-zA-Z0-9_-]*)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.begin.rule.citrus</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.rule.citrus</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\bend\b</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.end.rule.citrus</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.rule.citrus</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#comment</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#string</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#regexp</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#character-class</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#dot</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#operator</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>\{</string>
+ <key>end</key>
+ <string>\}</string>
+ <key>name</key>
+ <string>meta.embedded-ruby.citrus</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>source.ruby</string>
+ </dict>
+ </array>
+ </dict>
+ </array>
+ </dict>
+ </array>
+ </dict>
+ </array>
+ <key>repository</key>
+ <dict>
+ <key>character-class</key>
+ <dict>
+ <key>begin</key>
+ <string>\[(?:\^?\])?</string>
+ <key>captures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.character-class.citrus</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\]</string>
+ <key>name</key>
+ <string>string.regexp.character-class.citrus</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#escaped_char</string>
+ </dict>
+ </array>
+ </dict>
+ <key>comment</key>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.citrus</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>(?:^[ \t]+)?(#).*$\n?</string>
+ <key>name</key>
+ <string>comment.line.number-sign.citrus</string>
+ </dict>
+ <key>dot</key>
+ <dict>
+ <key>match</key>
+ <string>\.</string>
+ <key>name</key>
+ <string>constant.character.dot.citrus</string>
+ </dict>
+ <key>escaped_char</key>
+ <dict>
+ <key>match</key>
+ <string>\\(?:[0-7]{1,3}|x[\da-fA-F]{1,2}|.)</string>
+ <key>name</key>
+ <string>constant.character.escape.citrus</string>
+ </dict>
+ <key>operator</key>
+ <dict>
+ <key>match</key>
+ <string>(?:\d*\*\d*)|\+|\?</string>
+ <key>name</key>
+ <string>keyword.operator.other.citrus</string>
+ </dict>
+ <key>regexp</key>
+ <dict>
+ <key>begin</key>
+ <string>((/))(?![*+{}?])</string>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>string.regexp.citrus</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.citrus</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>((/[eimnosux]*))</string>
+ <key>name</key>
+ <string>string.regexp.citrus</string>
+ </dict>
+ <key>string</key>
+ <dict>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>begin</key>
+ <string>'</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.citrus</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>'</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.citrus</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>string.quoted.single.citrus</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\\'|\\\\</string>
+ <key>name</key>
+ <string>constant.character.escape.citrus</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>"</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.citrus</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>"</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.citrus</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>string.quoted.double.citrus</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#escaped_char</string>
+ </dict>
+ </array>
+ </dict>
+ </array>
+ </dict>
+ </dict>
+ <key>scopeName</key>
+ <string>source.citrus</string>
+ <key>uuid</key>
+ <string>201BC9C8-9303-47F8-9C4D-4EC27778DABD</string>
+</dict>
+</plist>
View
10 extras/Citrus.tmbundle/info.plist
@@ -0,0 +1,10 @@
+<?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>Citrus</string>
+ <key>uuid</key>
+ <string>902E5271-3BFE-49AC-AFE2-B2926AD9A881</string>
+</dict>
+</plist>
View
0  extras/citrus.vim → extras/vim/syntax/citrus.vim
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.