Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

• 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...
commit b768e0e7d820f24fce6231e9774b225f89a35e2a 1 parent 8e1d94d
Allan Odgaard authored April 21, 2005

Showing 1 changed file with 39 additions and 112 deletions. Show diff stats Hide diff stats

  1. 151  Syntaxes/Ini.plist
151  Syntaxes/Ini.plist
... ...
@@ -1,112 +1,39 @@
1  
-<?xml version="1.0" encoding="UTF-8"?>
2  
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3  
-<plist version="1.0">
4  
-<dict>
5  
-	<key>backgroundColor</key>
6  
-	<string>#000000</string>
7  
-	<key>fileTypes</key>
8  
-	<array>
9  
-		<string>ini</string>
10  
-		<string>conf</string>
11  
-	</array>
12  
-	<key>foldingStartMarker</key>
13  
-	<string>\[</string>
14  
-	<key>foldingStopMarker</key>
15  
-	<string>\[</string>
16  
-	<key>foregroundColor</key>
17  
-	<string>#ffffff</string>
18  
-	<key>highlightPairs</key>
19  
-	<array>
20  
-		<array>
21  
-			<string>(</string>
22  
-			<string>)</string>
23  
-		</array>
24  
-		<array>
25  
-			<string>[</string>
26  
-			<string>]</string>
27  
-		</array>
28  
-		<array>
29  
-			<string>{</string>
30  
-			<string>}</string>
31  
-		</array>
32  
-	</array>
33  
-	<key>name</key>
34  
-	<string>Ini</string>
35  
-	<key>patterns</key>
36  
-	<array>
37  
-		<dict>
38  
-			<key>foregroundColor[1]</key>
39  
-			<string>#CC7833</string>
40  
-			<key>foregroundColor[2]</key>
41  
-			<string>#236B8E</string>
42  
-			<key>match</key>
43  
-			<string>\&lt;([a-zA-Z_]+)\&gt;\s*(=)</string>
44  
-			<key>name</key>
45  
-			<string>definition</string>
46  
-		</dict>
47  
-		<dict>
48  
-			<key>foregroundColor</key>
49  
-			<string>#9933CC</string>
50  
-			<key>match</key>
51  
-			<string>(^;.*)</string>
52  
-			<key>name</key>
53  
-			<string>comments</string>
54  
-		</dict>
55  
-		<dict>
56  
-			<key>foregroundColor[1]</key>
57  
-			<string>#AD9361</string>
58  
-			<key>match</key>
59  
-			<string>^\[(.*)\]</string>
60  
-			<key>name</key>
61  
-			<string>group-title</string>
62  
-		</dict>
63  
-		<dict>
64  
-			<key>begin</key>
65  
-			<string>'</string>
66  
-			<key>end</key>
67  
-			<string>'</string>
68  
-			<key>foregroundColor</key>
69  
-			<string>#66CC33</string>
70  
-			<key>name</key>
71  
-			<string>strings.single-quoted</string>
72  
-			<key>swallow</key>
73  
-			<string>\\.</string>
74  
-		</dict>
75  
-		<dict>
76  
-			<key>begin</key>
77  
-			<string>"</string>
78  
-			<key>end</key>
79  
-			<string>"</string>
80  
-			<key>foregroundColor</key>
81  
-			<string>#66CC33</string>
82  
-			<key>name</key>
83  
-			<string>strings.double-quoted</string>
84  
-		</dict>
85  
-	</array>
86  
-	<key>smartTypingPairs</key>
87  
-	<array>
88  
-		<array>
89  
-			<string>(</string>
90  
-			<string>)</string>
91  
-		</array>
92  
-		<array>
93  
-			<string>[</string>
94  
-			<string>]</string>
95  
-		</array>
96  
-		<array>
97  
-			<string>{</string>
98  
-			<string>}</string>
99  
-		</array>
100  
-		<array>
101  
-			<string>"</string>
102  
-			<string>"</string>
103  
-		</array>
104  
-		<array>
105  
-			<string>'</string>
106  
-			<string>'</string>
107  
-		</array>
108  
-	</array>
109  
-	<key>uuid</key>
110  
-	<string>77DC23B6-8A90-11D9-BAA4-000A9584EC8C</string>
111  
-</dict>
112  
-</plist>
  1
+{
  2
+    backgroundColor = "#000000"; 
  3
+    fileTypes = (ini, conf); 
  4
+    foldingStartMarker = "\\["; 
  5
+    foldingStopMarker = "\\["; 
  6
+    foregroundColor = "#ffffff"; 
  7
+    highlightPairs = (("(", ")"), ("[", "]"), ("{", "}")); 
  8
+    name = Ini; 
  9
+    scopeName = "source.ini";
  10
+    patterns = (
  11
+        {
  12
+            "foregroundColor[1]" = "#CC7833"; 
  13
+            "foregroundColor[2]" = "#236B8E"; 
  14
+            match = "\\<([a-zA-Z_]+)\\>\\s*(=)"; 
  15
+            name = definition; 
  16
+        }, 
  17
+        {foregroundColor = "#9933CC"; match = "(^;.*)"; name = comments; }, 
  18
+        {
  19
+            "foregroundColor[1]" = "#AD9361"; 
  20
+            match = "^\\[(.*)\\]"; 
  21
+            name = "group-title"; 
  22
+        }, 
  23
+        {
  24
+            begin = "'"; 
  25
+            end = "'"; 
  26
+            foregroundColor = "#66CC33"; 
  27
+            name = "strings.single-quoted"; 
  28
+            swallow = "\\\\."; 
  29
+        }, 
  30
+        {
  31
+            begin = "\""; 
  32
+            end = "\""; 
  33
+            foregroundColor = "#66CC33"; 
  34
+            name = "strings.double-quoted"; 
  35
+        }
  36
+    ); 
  37
+    smartTypingPairs = (("(", ")"), ("[", "]"), ("{", "}"), ("\"", "\""), ("'", "'")); 
  38
+    uuid = "77DC23B6-8A90-11D9-BAA4-000A9584EC8C"; 
  39
+}

0 notes on commit b768e0e

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