Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use the latest official RSpec.tmLanguage #4

Merged
merged 1 commit into from

2 participants

@jarhart

It looks like the RSpec.tmLanguage file is a bit outdated so I pulled in the latest official version from https://github.com/rspec/rspec-tmbundle. It seems to work fine with Sublime Text 2 and does a better job of highlighting.

@barneywilliams barneywilliams merged commit 0e475bf into SublimeText:master
@barneywilliams

Thanks dude!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 4, 2012
  1. @jarhart
This page is out of date. Refresh to see the latest.
Showing with 51 additions and 10 deletions.
  1. +51 −10 RSpec.tmLanguage
View
61 RSpec.tmLanguage
@@ -1,5 +1,5 @@
<?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">
+<!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>
@@ -52,7 +52,7 @@
<key>match</key>
<string>(?&lt;!\.)\b(before|after)\b(?![?!])</string>
<key>name</key>
- <string>keyword.other.special-method.ruby.rspec</string>
+ <string>keyword.other.rspec</string>
</dict>
<dict>
<key>include</key>
@@ -60,6 +60,14 @@
</dict>
<dict>
<key>include</key>
+ <string>#single-line-example</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#pending</string>
+ </dict>
+ <dict>
+ <key>include</key>
<string>#example</string>
</dict>
<dict>
@@ -72,13 +80,13 @@
<key>behaviour</key>
<dict>
<key>begin</key>
- <string>^\s*(describe)\b</string>
+ <string>^\s*(describe|context)\b</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
- <string>keyword.other.behaviour.ruby.rspec</string>
+ <string>keyword.other.rspec.behaviour</string>
</dict>
</dict>
<key>end</key>
@@ -88,11 +96,11 @@
<key>1</key>
<dict>
<key>name</key>
- <string>keyword.control.start-block.ruby.rspec</string>
+ <string>keyword.control.ruby.start-block</string>
</dict>
</dict>
<key>name</key>
- <string>meta.behaviour.ruby.rspec</string>
+ <string>meta.rspec.behaviour</string>
<key>patterns</key>
<array>
<dict>
@@ -104,13 +112,13 @@
<key>example</key>
<dict>
<key>begin</key>
- <string>^\s*(it)\b</string>
+ <string>^\s*(it|specify)\b</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
- <string>keyword.other.example.ruby.rspec</string>
+ <string>keyword.other.rspec.example</string>
</dict>
</dict>
<key>end</key>
@@ -120,11 +128,11 @@
<key>1</key>
<dict>
<key>name</key>
- <string>keyword.control.start-block.ruby.rspec</string>
+ <string>keyword.control.ruby.start-block</string>
</dict>
</dict>
<key>name</key>
- <string>meta.example.ruby.rspec</string>
+ <string>meta.rspec.example</string>
<key>patterns</key>
<array>
<dict>
@@ -133,6 +141,39 @@
</dict>
</array>
</dict>
+ <key>pending</key>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.other.rspec.pending</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>string.ruby</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>^\s*(it|specify)\s+(.*[^do])\s*$</string>
+ <key>name</key>
+ <string>meta.rspec.pending</string>
+ </dict>
+ <key>single-line-example</key>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>keyword.other.rspec.example</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>^\s*(it|specify)\s*{</string>
+ </dict>
</dict>
<key>scopeName</key>
<string>source.ruby.rspec</string>
Something went wrong with that request. Please try again.