Permalink
Browse files

Highlight `describe` when it appears as part of `RSpec.describe`

  • Loading branch information...
1 parent 8b9a2c6 commit e9ed65e74eac17c0c3d1ef91661329946dbae8c7 @ashmoran ashmoran committed Nov 26, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 RSpec.tmLanguage
View
@@ -82,12 +82,17 @@
<key>behaviour</key>
<dict>
<key>begin</key>
- <string>^\s*(describe|context)\b</string>
+ <string>^\s*(?:(RSpec)\.)?(describe|context)\b</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
+ <string>support.class.ruby</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
<string>keyword.other.rspec.behaviour</string>
</dict>
</dict>

0 comments on commit e9ed65e

Please sign in to comment.