Permalink
Browse files

• Added scopeName key to all languages. Most of them as source.<filen…

…ame>.

• Added a language for plain text files, currently just markups bullet points (so I can continue these on 'enter' using a scoped snippet).
• Added a new “firstLineMatch” key to Perl, Ruby, and Shell languages.
• The C/Objective-C languages use the scopeName in their include directives, this doesn't work for beta 5.
• Ruby now includes “source.ruby” when using #{ ... } in strings.
• Added capture names to a few languages (objective-c methods, though it's not very consistant, we'll need to discuss how to split up functions and name the various parts).
• Removed plist filetype from XML, assuming that people loading a plist into a text editor would generally use the old-style format.



git-svn-id: http://svn.textmate.org/trunk/Ini.tmbundle@612 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
sorbits committed Apr 21, 2005
1 parent 8e1d94d commit b768e0e7d820f24fce6231e9774b225f89a35e2a
Showing with 39 additions and 112 deletions.
  1. +39 −112 Syntaxes/Ini.plist
View
@@ -1,112 +1,39 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>backgroundColor</key>
- <string>#000000</string>
- <key>fileTypes</key>
- <array>
- <string>ini</string>
- <string>conf</string>
- </array>
- <key>foldingStartMarker</key>
- <string>\[</string>
- <key>foldingStopMarker</key>
- <string>\[</string>
- <key>foregroundColor</key>
- <string>#ffffff</string>
- <key>highlightPairs</key>
- <array>
- <array>
- <string>(</string>
- <string>)</string>
- </array>
- <array>
- <string>[</string>
- <string>]</string>
- </array>
- <array>
- <string>{</string>
- <string>}</string>
- </array>
- </array>
- <key>name</key>
- <string>Ini</string>
- <key>patterns</key>
- <array>
- <dict>
- <key>foregroundColor[1]</key>
- <string>#CC7833</string>
- <key>foregroundColor[2]</key>
- <string>#236B8E</string>
- <key>match</key>
- <string>\&lt;([a-zA-Z_]+)\&gt;\s*(=)</string>
- <key>name</key>
- <string>definition</string>
- </dict>
- <dict>
- <key>foregroundColor</key>
- <string>#9933CC</string>
- <key>match</key>
- <string>(^;.*)</string>
- <key>name</key>
- <string>comments</string>
- </dict>
- <dict>
- <key>foregroundColor[1]</key>
- <string>#AD9361</string>
- <key>match</key>
- <string>^\[(.*)\]</string>
- <key>name</key>
- <string>group-title</string>
- </dict>
- <dict>
- <key>begin</key>
- <string>'</string>
- <key>end</key>
- <string>'</string>
- <key>foregroundColor</key>
- <string>#66CC33</string>
- <key>name</key>
- <string>strings.single-quoted</string>
- <key>swallow</key>
- <string>\\.</string>
- </dict>
- <dict>
- <key>begin</key>
- <string>"</string>
- <key>end</key>
- <string>"</string>
- <key>foregroundColor</key>
- <string>#66CC33</string>
- <key>name</key>
- <string>strings.double-quoted</string>
- </dict>
- </array>
- <key>smartTypingPairs</key>
- <array>
- <array>
- <string>(</string>
- <string>)</string>
- </array>
- <array>
- <string>[</string>
- <string>]</string>
- </array>
- <array>
- <string>{</string>
- <string>}</string>
- </array>
- <array>
- <string>"</string>
- <string>"</string>
- </array>
- <array>
- <string>'</string>
- <string>'</string>
- </array>
- </array>
- <key>uuid</key>
- <string>77DC23B6-8A90-11D9-BAA4-000A9584EC8C</string>
-</dict>
-</plist>
+{
+ backgroundColor = "#000000";
+ fileTypes = (ini, conf);
+ foldingStartMarker = "\\[";
+ foldingStopMarker = "\\[";
+ foregroundColor = "#ffffff";
+ highlightPairs = (("(", ")"), ("[", "]"), ("{", "}"));
+ name = Ini;
+ scopeName = "source.ini";
+ patterns = (
+ {
+ "foregroundColor[1]" = "#CC7833";
+ "foregroundColor[2]" = "#236B8E";
+ match = "\\<([a-zA-Z_]+)\\>\\s*(=)";
+ name = definition;
+ },
+ {foregroundColor = "#9933CC"; match = "(^;.*)"; name = comments; },
+ {
+ "foregroundColor[1]" = "#AD9361";
+ match = "^\\[(.*)\\]";
+ name = "group-title";
+ },
+ {
+ begin = "'";
+ end = "'";
+ foregroundColor = "#66CC33";
+ name = "strings.single-quoted";
+ swallow = "\\\\.";
+ },
+ {
+ begin = "\"";
+ end = "\"";
+ foregroundColor = "#66CC33";
+ name = "strings.double-quoted";
+ }
+ );
+ smartTypingPairs = (("(", ")"), ("[", "]"), ("{", "}"), ("\"", "\""), ("'", "'"));
+ uuid = "77DC23B6-8A90-11D9-BAA4-000A9584EC8C";
+}

0 comments on commit b768e0e

Please sign in to comment.