Permalink
Browse files

Add grammar for YAWS server pages. Patch from Bryce Kerley.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Erlang.tmbundle@8941 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 9d1ad14 commit 2d5ffa13fc8ca1f44b64c56a7adf0bbc9be01d2f @infininight infininight committed Feb 18, 2008
Showing with 62 additions and 1 deletion.
  1. +60 −0 Syntaxes/HTML (Erlang).tmLanguage
  2. +2 −1 info.plist
@@ -0,0 +1,60 @@
+<?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>fileTypes</key>
+ <array>
+ <string>yaws</string>
+ </array>
+ <key>foldingStartMarker</key>
+ <string>(?x)
+ (&lt;(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl|erl)\b.*?&gt;
+ |&lt;!--(?!.*--&gt;)
+ |\{\s*($|\?&gt;\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
+ )</string>
+ <key>foldingStopMarker</key>
+ <string>(?x)
+ (&lt;/(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl|erl)&gt;
+ |^\s*--&gt;
+ |(^|\s)\}
+ )</string>
+ <key>keyEquivalent</key>
+ <string>^~E</string>
+ <key>name</key>
+ <string>HTML (Erlang)</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>begin</key>
+ <string>&lt;erl&gt;</string>
+ <key>captures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.embedded.erlang</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>&lt;/erl&gt;</string>
+ <key>name</key>
+ <string>source.erlang.embedded.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>source.erlang</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>text.html.basic</string>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>text.html.erlang.yaws</string>
+ <key>uuid</key>
+ <string>3FBFF015-B650-4734-848C-47B53ACD5E32</string>
+</dict>
+</plist>
View
@@ -1,5 +1,5 @@
<?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">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>contactEmailRot13</key>
@@ -64,6 +64,7 @@
<key>ordering</key>
<array>
<string>58EA597D-5158-4BF7-9FB2-B05135D1E166</string>
+ <string>3FBFF015-B650-4734-848C-47B53ACD5E32</string>
<string>AE84FFDF-2D5A-4331-A301-6CF34CF26CD8</string>
<string>1250456F-9F83-4BAA-B338-5C9E86E89DD9</string>
<string>31DB728C-AC89-4DF0-A2B9-9D3D3A7552A9</string>

0 comments on commit 2d5ffa1

Please sign in to comment.