Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 8603d41ba9
Fetching contributors…

Cannot retrieve contributors at this time

80 lines (79 sloc) 3.344 kB
---
name: Txt2tags
fileTypes:
- t2t
scopeName: text.txt2tags
uuid: B5A751C0-2CE4-41A5-99FB-7B673943DE60
patterns:
- name: comment.block.txt2tags
begin: ^%%%\s*$
end: ^%%%\s*$\n?
- name: string.unquoted.txt2tags
match: ^\s*[_=-]{20,}\s*$\n?
- name: markup.underline.txt2tags
match: __([^\s](|.*?[^\s])_*)__
- name: markup.bold.txt2tags
match: \*\*([^\s](|.*?[^\s])\**)\*\*
- name: markup.heading.1.txt2tags
match: ^\s*={1}[^=](|.*[^=])={1}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.2.txt2tags
match: ^\s*={2}[^=](|.*[^=])={2}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.3.txt2tags
match: ^\s*={3}[^=](|.*[^=])={3}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.4.txt2tags
match: ^\s*={4}[^=](|.*[^=])={4}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.5.txt2tags
match: ^\s*={5}[^=](|.*[^=])={5}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.1.txt2tags
match: ^\s*\+{1}[^+](|.*[^+])\+{1}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.2.txt2tags
match: ^\s*\+{2}[^+](|.*[^+])\+{2}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.3.txt2tags
match: ^\s*\+{3}[^+](|.*[^+])\+{3}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.4.txt2tags
match: ^\s*\+{4}[^+](|.*[^+])\+{4}(\[[\w-]*\])?\s*$\n?
- name: markup.heading.5.txt2tags
match: ^\s*\+{5}[^+](|.*[^+])\+{5}(\[[\w-]*\])?\s*$\n?
- name: markup.italic.txt2tags
match: //([^\s](|.*?[^\s])/*)//
- name: string.quoted.other.raw.inline.txt2tags
match: "\"\"([^\\s](|.*?[^\\s])\"*)\"\""
- name: string.quoted.other.raw.line.txt2tags
match: ^""" (?=.).*$\n?
- name: string.quoted.other.raw.block.txt2tags
begin: ^"""\s*$
end: ^"""\s*$\n?
- name: markup.list.numbered.txt2tags
match: ^ *\+ (?=[^ ])
- name: markup.list.unnumbered.txt2tags
match: ^ *- (?=[^ ])
- name: markup.list.unnumbered.txt2tags
match: "^ *: (?=.)"
- name: markup.list.txt2tags
match: ^( *)([-+:])\s*$
- name: markup.raw.verb.block.txt2tags
begin: ^```\s*$
end: ^```\s*$\n?
- name: markup.raw.verb.line.txt2tags
match: ^``` (?=.).*$\n?
- name: markup.raw.verb.inline.txt2tags
match: ``([^\s](|.*?[^\s])`*)``
- name: invalid.deprecated.trailing-whitespace.txt2tags
match: \s+$
- name: string.interpolated.txt2tags
match: (?i)%%(date|mtime|infile|outfile)(\(.*?\))?|%%toc
- name: constant.character.txt2tags
match: (?i)^%!\s*(target|encoding|style|options|include|includeconf|preproc|postproc|guicolors)\s*(\(\w*\))?\s*:.*
- name: meta.tag.image.txt2tags
match: \[[\w_,.+%$#@!?+~/-]+\.(png|jpe?g|gif|eps|bmp)\]
- name: meta.tag.email.txt2tags
match: (?i)\b[A-Za-z0-9_.-]+@([A-Za-z0-9_-]+\.)+[A-Za-z]{2,4}\b(\?[A-Za-z0-9/%&=+;.,$@*_-]+)?
- name: meta.tag.url.txt2tags
match: (?i)\b((https?|ftp|news|telnet|gopher|wais)://([A-Za-z0-9_.-]+(:[^ @]*)?@)?|(www[23]?|ftp)\.)[A-Za-z0-9%._/~:,=$@&+-]+\b/*(\?[A-Za-z0-9/%&=+;.,$@*_-]+)?(#[A-Za-z0-9%._-]*)?
- name: meta.tag.link.txt2tags
match: (?i)\[(\[[\w_,.+%$#@!?+~/-]+\.(png|jpe?g|gif|eps|bmp)\]|[^]]+) (((https?|ftp|news|telnet|gopher|wais)://([A-Za-z0-9_.-]+(:[^ @]*)?@)?|(www[23]?|ftp)\.)[A-Za-z0-9%._/~:,=$@&+-]+\b/*(\?[A-Za-z0-9/%&=+;.,$@*_-]+)?(#[A-Za-z0-9%._-]*)?|[A-Za-z0-9_.-]+@([A-Za-z0-9_-]+\.)+[A-Za-z]{2,4}\b(\?[A-Za-z0-9/%&=+;.,$@*_-]+)?|[A-Za-z0-9%._/~:,=$@&+-]+|[A-Za-z0-9%._/~:,=$@&+-]*(#[A-Za-z0-9%._-]*))\]
- name: markup.quote.txt2tags
match: ^\t.*$\n?
- name: comment.line.txt2tags
match: ^%.*$\n?
keyEquivalent: ^~T
Jump to Line
Something went wrong with that request. Please try again.