Skip to content
Browse files

fixed the itemizers to get code folding working for methods and blocks

  • Loading branch information...
1 parent a946b5b commit 4c736831168d02a57a20df3065ebe35db799f023 @insane-dreamer insane-dreamer committed Jul 14, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 Itemizers/Ruby.xml
View
12 Itemizers/Ruby.xml
@@ -11,7 +11,7 @@
</recipe>
<recipe name="container.function.whitespace-delimited">
- <start-selector>container.function.whitespace-delimited:has-child(name:capture(name))</start-selector>
+ <start-selector>container.function.whitespace-delimited:has-child(name:capture(name)), container.function.parenthesis-delimited:has-child(name:capture(name))</start-selector>
<end-selector>keyword.control.flow.end</end-selector>
<subrecipes>
@@ -20,17 +20,17 @@
</recipe>
<recipe name="block.keyword-delimited">
- <start-selector>block.declaration.keyword-delimited</start-selector>
- <end-selector>keyword.flow-control.end</end-selector>
-
+ <start-selector>container.block.keyword-delimited.without-arguments:has-child(keyword.control.flow.block.begin), container.block.keyword-delimited.with-arguments:has-child(keyword.control.flow.block.begin)</start-selector>
+ <end-selector>keyword.control.flow.end</end-selector>
<subrecipes>
<include-root-recipes/>
</subrecipes>
</recipe>
+
<recipe name="block.bracket-delimited">
<!-- This should really be more exact, instead of catching all opening curly braces. -->
- <start-selector>block.declaration.bracket-delimited, delimiter.curly.brace.open</start-selector>
- <end-selector>delimiter.curly.brace.close</end-selector>
+ <start-selector>delimiter.balanced.curly-brace.begin</start-selector>
+ <end-selector>delimiter.balanced.curly-brace.end</end-selector>
<subrecipes>
<include-root-recipes/>

0 comments on commit 4c73683

Please sign in to comment.
Something went wrong with that request. Please try again.