Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding syntax and snippets for the new 'tagged' mark

git-svn-id: http://svn.textmate.org/trunk/Bundles/Txt2tags.tmbundle@11948 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit 5ec6027dcf831a3da6957486db51d0a5104bc0b1 1 parent 4e054a7
Aurelio Marinho Jargas authored
View
18 Snippets/Tagged Block.tmSnippet
@@ -0,0 +1,18 @@
+<?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>content</key>
+ <string>
+'''
+$0${TM_SELECTED_TEXT:- insert tagged text here -}
+'''
+</string>
+ <key>name</key>
+ <string>Tagged Block</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>2BFB44AA-07C2-4359-951D-50BE04201DF9</string>
+</dict>
+</plist>
View
14 Snippets/Tagged.tmSnippet
@@ -0,0 +1,14 @@
+<?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>content</key>
+ <string>''${1:${TM_SELECTED_TEXT}}''</string>
+ <key>name</key>
+ <string>Tagged</string>
+ <key>scope</key>
+ <string>text.txt2tags</string>
+ <key>uuid</key>
+ <string>676EC692-3D72-47FF-8A3A-A107A30EA319</string>
+</dict>
+</plist>
View
20 Syntaxes/Txt2tags.tmLanguage
@@ -132,6 +132,26 @@
</dict>
<dict>
<key>match</key>
+ <string>''([^\s](|.*?[^\s])'*)''</string>
+ <key>name</key>
+ <string>string.quoted.other.tagged.inline.txt2tags</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>^''' (?=.).*$\n?</string>
+ <key>name</key>
+ <string>string.quoted.other.tagged.line.txt2tags</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>^'''\s*$</string>
+ <key>end</key>
+ <string>^'''\s*$\n?</string>
+ <key>name</key>
+ <string>string.quoted.other.tagged.block.txt2tags</string>
+ </dict>
+ <dict>
+ <key>match</key>
<string>^ *\+ (?=[^ ])</string>
<key>name</key>
<string>markup.list.numbered.txt2tags</string>
View
2  info.plist
@@ -159,12 +159,14 @@
<string>2ABF61A7-6FF1-4A80-9A34-AEA721DE0C2E</string>
<string>BF5F154C-AD22-4191-AF49-4B0ECC850575</string>
<string>29977512-BA22-4686-B833-574316E6E8F3</string>
+ <string>676EC692-3D72-47FF-8A3A-A107A30EA319</string>
<string>2C8ED762-B898-4BEE-93C0-4006ED03DFC1</string>
<string>86555501-E5E7-46B7-9DDE-4ABD3C8DF7BB</string>
<string>540AA439-3D16-4CB7-97AA-F6CAA1AAE87E</string>
<string>1295273D-5E3D-454A-A974-81DC71B54A9E</string>
<string>B78FDA0E-AC0A-467E-91A3-FD8923F4DA62</string>
<string>F17DB8FF-3314-47EA-B3BC-09B65AD1ED94</string>
+ <string>2BFB44AA-07C2-4359-951D-50BE04201DF9</string>
<string>5928BD4D-E6E6-49F3-ADFE-518FC4E663A7</string>
<string>70E9A4C5-9F6F-4139-BE41-3685017D6169</string>
<string>CE8367B5-2C5D-4057-B1EE-9EB026173E31</string>
Please sign in to comment.
Something went wrong with that request. Please try again.