Permalink
Browse files

Some symbol list parsing added

  • Loading branch information...
1 parent aeb883c commit bf4a2547cba47f615b0980fa2b44642284f16f40 @napcs committed Sep 11, 2010
Showing with 66 additions and 0 deletions.
  1. +17 −0 Preferences/Symbol List.tmPreferences
  2. +49 −0 Syntaxes/docbook5.tmLanguage
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>name</key>
+ <string>Symbol List</string>
+ <key>scope</key>
+ <string>entity.section.docbook5</string>
+ <key>settings</key>
+ <dict>
+ <key>showInSymbolList</key>
+ <integer>1</integer>
+ </dict>
+ <key>uuid</key>
+ <string>736185DE-4EBF-4CE3-9D99-02BFAFB927D4</string>
+</dict>
+</plist>
@@ -14,6 +14,55 @@
<string>Docbook 5</string>
<key>patterns</key>
<array>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.xml</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.localname.xml</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>entity.other.attribute-name.localname.xml</string>
+ </dict>
+ <key>4</key>
+ <dict>
+ <key>name</key>
+ <string>string.quoted.double.xml</string>
+ </dict>
+ <key>5</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.xml</string>
+ </dict>
+ <key>6</key>
+ <dict>
+ <key>name</key>
+ <string>entity.section.docbook5</string>
+ </dict>
+ <key>7</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.xml</string>
+ </dict>
+ <key>8</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.xml</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>(&lt;)(sect\d) (xml:id)=((")sec.(.*)("))(&gt;)</string>
+ <key>name</key>
+ <string>meta.tag.xml</string>
+ </dict>
<dict>
<key>include</key>
<string>text.xml</string>

0 comments on commit bf4a254

Please sign in to comment.