Permalink
Browse files

Nested classes and functions now work.

  • Loading branch information...
1 parent e369528 commit 92b46924d09207b9b5a94f485d94017c91c8bebf @mthjones committed Apr 28, 2009
Showing with 188 additions and 136 deletions.
  1. +3 −6 Itemizers/Python.xml
  2. +3 −1 Languages.xml
  3. +1 −1 SyntaxInjections/Python.xml
  4. +147 −123 Syntaxes/PythonSyntax.xml
  5. +18 −0 Test/test.py
  6. +14 −0 TextActions/Actions.xml
  7. +2 −5 TextActions/Snippets.xml
@@ -26,26 +26,23 @@ THE SOFTWARE.
-->
<itemizer>
<recipe name="container.function">
- <start-selector>container.function:has-child(name:capture(name))</start-selector>
- <end-selector>delimiter.container.end.function</end-selector>
+ <selector>container.function:has-child(name:capture(name))</selector>
<subrecipes>
<include-root-recipes />
</subrecipes>
</recipe>
<!-- Matches a class definition -->
<recipe name="container.class">
- <start-selector>container.class:has-child(name:capture(name))</start-selector>
- <end-selector>delimiter.container.end.class</end-selector>
+ <selector>container.class:has-child(name:capture(name))</selector>
<subrecipes>
<include-root-recipes />
</subrecipes>
</recipe>
<!-- Matches triple-quoted strings -->
<recipe name="metadata.comment.documentation">
- <class>ESBaseItem</class>
- <start-selector>metadata.comment.documentation > begin:capture(itemizer-firstused)</start-selector>
+ <start-selector>metadata.comment.documentation:capture(name) > begin</start-selector>
<end-selector>metadata.comment.documentation.end</end-selector>
<subrecipes>
<include-root-recipes />
View
@@ -45,7 +45,9 @@ THE SOFTWARE.
<description>A full syntax description of the Python programming language</description>
<author>Matt Jones</author>
<identifier>com.mthjones.Sugar.Python</identifier>
- <version status="development">0.1</version>
+ <version status="preview">0.3b</version>
+ <download format="git">git://github.com/mthjones/python.sugar.git</download>
+ <url>http://github.com/mthjones/python.sugar/</url>
<dependencies>
<dependency id="name.elliottcable.Sugar.Regex">Regex</dependency>
</dependencies>
@@ -25,5 +25,5 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<injections>
-
+
</injections>
Oops, something went wrong. Retry.

0 comments on commit 92b4692

Please sign in to comment.