Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fix recursive pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Gallagher committed Aug 8, 2011
1 parent a51beb5 commit cd99cdc
Showing 1 changed file with 16 additions and 59 deletions.
75 changes: 16 additions & 59 deletions Syntaxes/Jade.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -28,78 +28,35 @@
</dict>
<dict>
<key>begin</key>
<string>^\s*</string>
<key>end</key>
<string>(\s+|$)</string>
<key>patterns</key>
<array>
<string>^\s*(?:(([\w:]+))|(?=\.|#))</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>match</key>
<string>\.[a-zA-Z0-9_-]+</string>
<key>name</key>
<string>entity.other.attribute-name.class.jade</string>
<string>meta.tag.jade</string>
</dict>
<key>2</key>
<dict>
<key>match</key>
<string>#[a-zA-Z0-9_-]+</string>
<key>name</key>
<string>entity.other.attribute-name.id.jade</string>
</dict>
<dict>
<key>match</key>
<string>[a-zA-z]</string>
<key>name</key>
<string>entity.name.tag.jade</string>
</dict>
</dict>
<key>end</key>
<string>$|(?!\.|#|=|-)</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\:.+$</string>
<string>\.[\w-]+</string>
<key>name</key>
<string>support.class.jade</string>
</dict>
<dict>
<key>begin</key>
<string>(=|-)\s+</string>
<key>end</key>
<string>$</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.js</string>
</dict>
</array>
<string>entity.name.tag.class.jade</string>
</dict>
<dict>
<key>begin</key>
<string>\(</string>
<key>end</key>
<string>\)</string>
<key>match</key>
<string>#[\w-]+</string>
<key>name</key>
<string>punctuation.definition.prolog.jade</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string-double-quoted</string>
</dict>
<dict>
<key>include</key>
<string>#string-single-quoted</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>constant.language.jade</string>
</dict>
</dict>
<key>match</key>
<string>([a-zA-Z0-9_-]+)\s*(\:|\=)\s*(?!\/)</string>
</dict>
</array>
<string>entity.name.tag.id.jade</string>
</dict>
</array>
</dict>
Expand Down

0 comments on commit cd99cdc

Please sign in to comment.