Skip to content

Commit

Permalink
Don't expand tag snippets from inside tags
Browse files Browse the repository at this point in the history
  • Loading branch information
elia authored and infininight committed Mar 13, 2014
1 parent 03bd3bf commit d1da066
Show file tree
Hide file tree
Showing 22 changed files with 40 additions and 40 deletions.
4 changes: 2 additions & 2 deletions Snippets/Embed QT movie (movie).plist
@@ -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>content</key>
Expand All @@ -17,7 +17,7 @@
<key>name</key>
<string>Embed QT Movie</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>movie</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/Fieldset.tmSnippet
@@ -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>bundleUUID</key>
Expand All @@ -13,7 +13,7 @@
<key>name</key>
<string>Fieldset</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>fieldset</string>
<key>uuid</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/Input with Label.tmSnippet
Expand Up @@ -10,7 +10,7 @@
<key>name</key>
<string>Input with Label</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>input</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/Option.tmSnippet
@@ -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>bundleUUID</key>
Expand All @@ -9,7 +9,7 @@
<key>name</key>
<string>Option</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>opt</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/Select Box.tmSnippet
@@ -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>bundleUUID</key>
Expand All @@ -13,7 +13,7 @@
<key>name</key>
<string>Select Box</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>select</string>
<key>uuid</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/XHTML <input>.plist
Expand Up @@ -7,7 +7,7 @@
<key>name</key>
<string>Input</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>input</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <textarea>.plist
@@ -1,13 +1,13 @@
<?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>content</key>
<string>&lt;textarea name="${1:Name}" rows="${2:8}" cols="${3:40}"&gt;$0&lt;/textarea&gt;</string>
<key>name</key>
<string>Text Area</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>textarea</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <a mailto: >.plist
@@ -1,13 +1,13 @@
<?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>content</key>
<string>&lt;a href="mailto:${1:joe@example.com}?subject=${2:feedback}"&gt;${3:email me}&lt;/a&gt;</string>
<key>name</key>
<string>Mail Anchor</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>mailto</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <base>.plist
@@ -1,13 +1,13 @@
<?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>content</key>
<string>&lt;base href="$1"${2: target="$3"}${TM_XHTML}&gt;</string>
<key>name</key>
<string>Base</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>base</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <body>.plist
@@ -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>content</key>
Expand All @@ -9,7 +9,7 @@
<key>name</key>
<string>Body</string>
<key>scope</key>
<string>text.html - meta.tag</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>body</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <br :>.plist
@@ -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>content</key>
Expand All @@ -9,7 +9,7 @@
<key>name</key>
<string>Br</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>uuid</key>
<string>3E008E42-A5C9-11D9-9BCD-000D93C8BE28</string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <div>.plist
@@ -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>content</key>
Expand All @@ -9,7 +9,7 @@
<key>name</key>
<string>Div</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>div</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <form>.plist
@@ -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>content</key>
Expand All @@ -11,7 +11,7 @@
<key>name</key>
<string>Form</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>form</string>
<key>uuid</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/XHTML <h1>.plist
Expand Up @@ -7,7 +7,7 @@
<key>name</key>
<string>Heading</string>
<key>scope</key>
<string>text.html - meta.tag, text.html meta.tag &amp; R:punctuation.definition.tag.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>h1</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <head>.plist
@@ -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>content</key>
Expand All @@ -11,7 +11,7 @@
<key>name</key>
<string>Head</string>
<key>scope</key>
<string>text.html - text.html source</string>
<string>text.html - B:meta.tag - text.html source</string>
<key>tabTrigger</key>
<string>head</string>
<key>uuid</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/XHTML <link>.plist
Expand Up @@ -7,7 +7,7 @@
<key>name</key>
<string>Link</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>link</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <meta>.plist
@@ -1,13 +1,13 @@
<?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>content</key>
<string>&lt;meta name="${1:name}" content="${2:content}"${TM_XHTML}&gt;</string>
<key>name</key>
<string>Meta</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>meta</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <script src...>.plist
@@ -1,13 +1,13 @@
<?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>content</key>
<string>&lt;script src="$1" type="text/javascript" charset="${3:utf-8}"&gt;&lt;/script&gt;</string>
<key>name</key>
<string>Script With External Source</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>scriptsrc</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <script>.plist
@@ -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>content</key>
Expand All @@ -9,7 +9,7 @@
<key>name</key>
<string>Script</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>script</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <style>.plist
@@ -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>content</key>
Expand All @@ -9,7 +9,7 @@
<key>name</key>
<string>Style</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>style</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <table>.plist
@@ -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>content</key>
Expand All @@ -10,7 +10,7 @@
<key>name</key>
<string>Table</string>
<key>scope</key>
<string>text.html</string>
<string>text.html - B:meta.tag</string>
<key>tabTrigger</key>
<string>table</string>
<key>uuid</key>
Expand Down
4 changes: 2 additions & 2 deletions Snippets/XHTML <title>.plist
@@ -1,13 +1,13 @@
<?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>content</key>
<string>&lt;title&gt;${1:${TM_FILENAME/((.+)\..*)?/(?2:$2:Page Title)/}}&lt;/title&gt;</string>
<key>name</key>
<string>Title</string>
<key>scope</key>
<string>text.html - text.blog</string>
<string>text.html - text.blog - B:meta.tag</string>
<key>tabTrigger</key>
<string>title</string>
<key>uuid</key>
Expand Down

0 comments on commit d1da066

Please sign in to comment.