ultraviolet1x 0.12.2 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/README.rdoc +1 -6
- data/lib/uv.rb +1 -1
- data/lib/uv/version.rb +1 -1
- data/spec/ultraviolet_spec.rb +0 -9
- metadata +52 -195
- data/syntax/actionscript.syntax +0 -97
- data/syntax/active4d.syntax +0 -276
- data/syntax/active4d_html.syntax +0 -311
- data/syntax/active4d_ini.syntax +0 -50
- data/syntax/active4d_library.syntax +0 -21
- data/syntax/ada.syntax +0 -33
- data/syntax/antlr.syntax +0 -151
- data/syntax/apache.syntax +0 -191
- data/syntax/applescript.syntax +0 -384
- data/syntax/asp.syntax +0 -70
- data/syntax/asp_vb.net.syntax +0 -129
- data/syntax/bibtex.syntax +0 -151
- data/syntax/blog_html.syntax +0 -41
- data/syntax/blog_markdown.syntax +0 -42
- data/syntax/blog_text.syntax +0 -27
- data/syntax/blog_textile.syntax +0 -27
- data/syntax/broken/markdown.syntax +0 -543
- data/syntax/broken/php.syntax +0 -1253
- data/syntax/buggy/nemerle.syntax +0 -74
- data/syntax/build.syntax +0 -53
- data/syntax/bulletin_board.syntax +0 -287
- data/syntax/c++.syntax +0 -186
- data/syntax/c.syntax +0 -414
- data/syntax/cake.syntax +0 -55
- data/syntax/camlp4.syntax +0 -36
- data/syntax/cm.syntax +0 -32
- data/syntax/coffeescript.syntax +0 -216
- data/syntax/coldfusion.syntax +0 -119
- data/syntax/context_free.syntax +0 -176
- data/syntax/cs.syntax +0 -59
- data/syntax/css.syntax +0 -195
- data/syntax/css_experimental.syntax +0 -1925
- data/syntax/csv.syntax +0 -68
- data/syntax/d.syntax +0 -142
- data/syntax/diff.syntax +0 -81
- data/syntax/dokuwiki.syntax +0 -204
- data/syntax/dot.syntax +0 -47
- data/syntax/doxygen.syntax +0 -43
- data/syntax/dylan.syntax +0 -62
- data/syntax/eiffel.syntax +0 -78
- data/syntax/erlang.syntax +0 -922
- data/syntax/f-script.syntax +0 -80
- data/syntax/fortran.syntax +0 -141
- data/syntax/fxscript.syntax +0 -142
- data/syntax/greasemonkey.syntax +0 -34
- data/syntax/gri.syntax +0 -83
- data/syntax/groovy.syntax +0 -191
- data/syntax/gtd.syntax +0 -22
- data/syntax/gtdalt.syntax +0 -143
- data/syntax/haml.syntax +0 -88
- data/syntax/haskell.syntax +0 -88
- data/syntax/html-asp.syntax +0 -27
- data/syntax/html.syntax +0 -362
- data/syntax/html_django.syntax +0 -36
- data/syntax/html_for_asp.net.syntax +0 -424
- data/syntax/html_mason.syntax +0 -119
- data/syntax/html_rails.syntax +0 -40
- data/syntax/html_tcl.syntax +0 -26
- data/syntax/icalendar.syntax +0 -32
- data/syntax/inform.syntax +0 -48
- data/syntax/ini.syntax +0 -55
- data/syntax/installer_distribution_script.syntax +0 -77
- data/syntax/io.syntax +0 -81
- data/syntax/java.syntax +0 -211
- data/syntax/javaproperties.syntax +0 -20
- data/syntax/javascript.syntax +0 -256
- data/syntax/javascript_+_prototype.syntax +0 -72
- data/syntax/javascript_+_prototype_bracketed.syntax +0 -140
- data/syntax/jquery_javascript.syntax +0 -114
- data/syntax/json.syntax +0 -136
- data/syntax/languagedefinition.syntax +0 -708
- data/syntax/latex.syntax +0 -566
- data/syntax/latex_beamer.syntax +0 -41
- data/syntax/latex_log.syntax +0 -50
- data/syntax/latex_memoir.syntax +0 -64
- data/syntax/lexflex.syntax +0 -219
- data/syntax/lighttpd.syntax +0 -54
- data/syntax/lilypond.syntax +0 -492
- data/syntax/lisp.syntax +0 -61
- data/syntax/literate_haskell.syntax +0 -24
- data/syntax/logo.syntax +0 -29
- data/syntax/logtalk.syntax +0 -152
- data/syntax/lua.syntax +0 -86
- data/syntax/m.syntax +0 -142
- data/syntax/macports_portfile.syntax +0 -163
- data/syntax/mail.syntax +0 -118
- data/syntax/makefile.syntax +0 -36
- data/syntax/man.syntax +0 -17
- data/syntax/mediawiki.syntax +0 -567
- data/syntax/mel.syntax +0 -92
- data/syntax/mips.syntax +0 -66
- data/syntax/mod_perl.syntax +0 -50
- data/syntax/modula-3.syntax +0 -47
- data/syntax/moinmoin.syntax +0 -189
- data/syntax/mootools.syntax +0 -572
- data/syntax/movable_type.syntax +0 -162
- data/syntax/multimarkdown.syntax +0 -39
- data/syntax/objective-c++.syntax +0 -18
- data/syntax/objective-c.syntax +0 -233
- data/syntax/ocaml.syntax +0 -764
- data/syntax/ocamllex.syntax +0 -167
- data/syntax/ocamlyacc.syntax +0 -184
- data/syntax/old/YAML.yaml +0 -160
- data/syntax/old/txt2tags.yaml +0 -139
- data/syntax/opengl.syntax +0 -14
- data/syntax/pascal.syntax +0 -77
- data/syntax/perl.syntax +0 -1113
- data/syntax/plain_text.syntax +0 -32
- data/syntax/pmwiki.syntax +0 -113
- data/syntax/postscript.syntax +0 -114
- data/syntax/processing.syntax +0 -106
- data/syntax/prolog.syntax +0 -40
- data/syntax/property_list.syntax +0 -635
- data/syntax/python.syntax +0 -868
- data/syntax/python_django.syntax +0 -21
- data/syntax/qmake_project.syntax +0 -114
- data/syntax/qt_c++.syntax +0 -26
- data/syntax/quake3_config.syntax +0 -32
- data/syntax/r.syntax +0 -81
- data/syntax/r_console.syntax +0 -16
- data/syntax/ragel.syntax +0 -201
- data/syntax/rd_r_documentation.syntax +0 -91
- data/syntax/regexp.syntax +0 -50
- data/syntax/regular_expressions_oniguruma.syntax +0 -107
- data/syntax/regular_expressions_python.syntax +0 -109
- data/syntax/release_notes.syntax +0 -46
- data/syntax/remind.syntax +0 -253
- data/syntax/restructuredtext.syntax +0 -250
- data/syntax/rez.syntax +0 -80
- data/syntax/ruby.syntax +0 -1035
- data/syntax/ruby_experimental.syntax +0 -145
- data/syntax/ruby_on_rails.syntax +0 -88
- data/syntax/s5.syntax +0 -69
- data/syntax/sass.syntax +0 -45
- data/syntax/scheme.syntax +0 -347
- data/syntax/scilab.syntax +0 -41
- data/syntax/setext.syntax +0 -147
- data/syntax/shell-unix-generic.syntax +0 -384
- data/syntax/slate.syntax +0 -149
- data/syntax/smarty.syntax +0 -63
- data/syntax/sql.syntax +0 -237
- data/syntax/sql_rails.syntax +0 -18
- data/syntax/ssh-config.syntax +0 -33
- data/syntax/standard_ml.syntax +0 -121
- data/syntax/strings_file.syntax +0 -39
- data/syntax/subversion_commit_message.syntax +0 -36
- data/syntax/sweave.syntax +0 -84
- data/syntax/swig.syntax +0 -57
- data/syntax/tcl.syntax +0 -152
- data/syntax/template_toolkit.syntax +0 -121
- data/syntax/tex.syntax +0 -86
- data/syntax/tex_math.syntax +0 -49
- data/syntax/textile.syntax +0 -215
- data/syntax/tsv.syntax +0 -50
- data/syntax/twiki.syntax +0 -241
- data/syntax/txt2tags.syntax +0 -79
- data/syntax/vectorscript.syntax +0 -57
- data/syntax/xhtml_1.0.syntax +0 -4027
- data/syntax/xml.syntax +0 -180
- data/syntax/xml_strict.syntax +0 -92
- data/syntax/xsl.syntax +0 -60
- data/syntax/yaml.syntax +0 -160
- data/syntax/yui_javascript.syntax +0 -176
data/syntax/asp_vb.net.syntax
DELETED
@@ -1,129 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: ASP vb.NET
|
3
|
-
fileTypes:
|
4
|
-
- vb
|
5
|
-
scopeName: source.asp.vb.net
|
6
|
-
repository:
|
7
|
-
round-brackets:
|
8
|
-
name: meta.round-brackets
|
9
|
-
endCaptures:
|
10
|
-
"0":
|
11
|
-
name: punctuation.section.round-brackets.end.asp
|
12
|
-
begin: \(
|
13
|
-
beginCaptures:
|
14
|
-
"0":
|
15
|
-
name: punctuation.section.round-brackets.begin.asp
|
16
|
-
end: \)
|
17
|
-
patterns:
|
18
|
-
- include: source.asp.vb.net
|
19
|
-
uuid: 7F9C9343-D48E-4E7D-BFE8-F680714DCD3E
|
20
|
-
foldingStartMarker: (<(?i:(head|table|div|style|script|ul|ol|form|dl))\b.*?>|\{|^\s*<?%?\s*'?\s*(?i:(sub|private\s+Sub|public\s+Sub|function|if|while|For))\s*.*$)
|
21
|
-
patterns:
|
22
|
-
- name: meta.ending-space
|
23
|
-
match: \n
|
24
|
-
- include: "#round-brackets"
|
25
|
-
- name: meta.leading-space
|
26
|
-
begin: ^(?=\t)
|
27
|
-
end: (?=[^\t])
|
28
|
-
patterns:
|
29
|
-
- captures:
|
30
|
-
"1":
|
31
|
-
name: meta.odd-tab.tabs
|
32
|
-
"2":
|
33
|
-
name: meta.even-tab.tabs
|
34
|
-
match: (\t)(\t)?
|
35
|
-
- name: meta.leading-space
|
36
|
-
begin: ^(?= )
|
37
|
-
end: (?=[^ ])
|
38
|
-
patterns:
|
39
|
-
- captures:
|
40
|
-
"1":
|
41
|
-
name: meta.odd-tab.spaces
|
42
|
-
"2":
|
43
|
-
name: meta.even-tab.spaces
|
44
|
-
match: ( )( )?
|
45
|
-
- name: meta.function.asp
|
46
|
-
captures:
|
47
|
-
"1":
|
48
|
-
name: storage.type.function.asp
|
49
|
-
"2":
|
50
|
-
name: entity.name.function.asp
|
51
|
-
"3":
|
52
|
-
name: punctuation.definition.parameters.asp
|
53
|
-
"4":
|
54
|
-
name: variable.parameter.function.asp
|
55
|
-
"5":
|
56
|
-
name: punctuation.definition.parameters.asp
|
57
|
-
match: ^\s*((?i:function|sub))\s*([a-zA-Z_]\w*)\s*(\()([^)]*)(\)).*\n?
|
58
|
-
- name: comment.line.apostrophe.asp
|
59
|
-
begin: "'"
|
60
|
-
beginCaptures:
|
61
|
-
"0":
|
62
|
-
name: punctuation.definition.comment.asp
|
63
|
-
end: (?=(\n|%>))
|
64
|
-
- name: keyword.control.asp
|
65
|
-
match: (?i:\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\b)
|
66
|
-
- name: keyword.operator.asp
|
67
|
-
match: (?i:\b(Mod|And|Not|Or|Xor|as)\b)
|
68
|
-
- name: variable.other.dim.asp
|
69
|
-
captures:
|
70
|
-
"1":
|
71
|
-
name: storage.type.asp
|
72
|
-
"2":
|
73
|
-
name: variable.other.bfeac.asp
|
74
|
-
"3":
|
75
|
-
name: meta.separator.comma.asp
|
76
|
-
match: (?i:(dim)\s*(?:(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)\s*(,?)))
|
77
|
-
- name: storage.type.asp
|
78
|
-
match: (?i:\s*\b(Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End sub|End Function|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\b\s*)
|
79
|
-
- name: storage.modifier.asp
|
80
|
-
match: (?i:\b(Private|Public|Default)\b)
|
81
|
-
- name: constant.language.asp
|
82
|
-
match: (?i:\s*\b(Empty|False|Nothing|Null|True)\b)
|
83
|
-
- name: string.quoted.double.asp
|
84
|
-
endCaptures:
|
85
|
-
"0":
|
86
|
-
name: punctuation.definition.string.end.asp
|
87
|
-
begin: "\""
|
88
|
-
beginCaptures:
|
89
|
-
"0":
|
90
|
-
name: punctuation.definition.string.begin.asp
|
91
|
-
end: "\""
|
92
|
-
patterns:
|
93
|
-
- name: constant.character.escape.apostrophe.asp
|
94
|
-
match: "\"\""
|
95
|
-
- name: variable.other.asp
|
96
|
-
captures:
|
97
|
-
"1":
|
98
|
-
name: punctuation.definition.variable.asp
|
99
|
-
match: (\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b\s*
|
100
|
-
- name: support.class.asp
|
101
|
-
match: (?i:\b(Application|ObjectContext|Request|Response|Server|Session)\b)
|
102
|
-
- name: support.class.collection.asp
|
103
|
-
match: (?i:\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\b)
|
104
|
-
- name: support.constant.asp
|
105
|
-
match: (?i:\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\b)
|
106
|
-
- name: support.function.asp
|
107
|
-
match: (?i:\b(Lock|Unlock|SetAbort|SetComplete|BianryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\b)
|
108
|
-
- name: support.function.event.asp
|
109
|
-
match: (?i:\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\b)
|
110
|
-
- name: support.type.vb.asp
|
111
|
-
match: (?i:(?<=as )(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b))
|
112
|
-
- name: support.function.vb.asp
|
113
|
-
match: (?i:\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\b)
|
114
|
-
- name: constant.numeric.asp
|
115
|
-
match: -?\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\b
|
116
|
-
- name: support.type.vb.asp
|
117
|
-
match: (?i:\b(vbtrue|fvbalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\b)
|
118
|
-
- name: support.function.asp
|
119
|
-
captures:
|
120
|
-
"1":
|
121
|
-
name: entity.name.function.asp
|
122
|
-
match: (?i:(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)(?=\(\)?))
|
123
|
-
- name: variable.other.asp
|
124
|
-
match: (?i:((?<=(\+|=|-|\&|\\|/|<|>|\(|,))\s*\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?!(\(|\.))|\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?=\s*(\+|=|-|\&|\\|/|<|>|\(|\)))))
|
125
|
-
- name: keyword.operator.js
|
126
|
-
match: "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|/=|%=|\\+=|\\-=|&=|\\^=|\\b(in|instanceof|new|delete|typeof|void)\\b"
|
127
|
-
foldingStopMarker: (</(?i:(head|table|div|style|script|ul|ol|form|dl))>?|\}|^\s*<?%?\s*\s*'?\s*(?i:(end|Next))\s*.*$)
|
128
|
-
keyEquivalent: ^~A
|
129
|
-
comment: Modified from the original ASP bundle. Originally modified by Thomas Aylott subtleGradient.com
|
data/syntax/bibtex.syntax
DELETED
@@ -1,151 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: BibTeX
|
3
|
-
fileTypes:
|
4
|
-
- bib
|
5
|
-
scopeName: text.bibtex
|
6
|
-
repository:
|
7
|
-
nested_braces:
|
8
|
-
endCaptures:
|
9
|
-
"0":
|
10
|
-
name: punctuation.definition.group.end.bibtex
|
11
|
-
begin: \{
|
12
|
-
beginCaptures:
|
13
|
-
"0":
|
14
|
-
name: punctuation.definition.group.begin.bibtex
|
15
|
-
end: \}
|
16
|
-
patterns:
|
17
|
-
- include: "#nested_braces"
|
18
|
-
integer:
|
19
|
-
name: constant.numeric.bibtex
|
20
|
-
match: \d+
|
21
|
-
string_content:
|
22
|
-
patterns:
|
23
|
-
- name: string.quoted.double.bibtex
|
24
|
-
endCaptures:
|
25
|
-
"0":
|
26
|
-
name: punctuation.definition.string.end.bibtex
|
27
|
-
begin: "\""
|
28
|
-
beginCaptures:
|
29
|
-
"0":
|
30
|
-
name: punctuation.definition.string.begin.bibtex
|
31
|
-
end: "\""
|
32
|
-
patterns:
|
33
|
-
- include: "#nested_braces"
|
34
|
-
- name: string.quoted.other.braces.bibtex
|
35
|
-
endCaptures:
|
36
|
-
"0":
|
37
|
-
name: punctuation.definition.string.end.bibtex
|
38
|
-
begin: \{
|
39
|
-
beginCaptures:
|
40
|
-
"0":
|
41
|
-
name: punctuation.definition.string.begin.bibtex
|
42
|
-
end: \}
|
43
|
-
patterns:
|
44
|
-
- name: invalid.illegal.at-sign.bibtex
|
45
|
-
match: "@"
|
46
|
-
- include: "#nested_braces"
|
47
|
-
uuid: 47F30BA1-6B1D-11D9-9A60-000D93589AF6
|
48
|
-
foldingStartMarker: \@[a-zA-Z]+\s*[{(].+,
|
49
|
-
patterns:
|
50
|
-
- name: comment.line.at-sign.bibtex
|
51
|
-
begin: "@Comment"
|
52
|
-
beginCaptures:
|
53
|
-
"0":
|
54
|
-
name: punctuation.definition.comment.bibtex
|
55
|
-
end: $\n?
|
56
|
-
- name: meta.string-constant.braces.bibtex
|
57
|
-
endCaptures:
|
58
|
-
"0":
|
59
|
-
name: punctuation.section.string-constant.end.bibtex
|
60
|
-
begin: ((@)String)\s*(\{)\s*([a-zA-Z]*)
|
61
|
-
beginCaptures:
|
62
|
-
"1":
|
63
|
-
name: keyword.other.string-constant.bibtex
|
64
|
-
"2":
|
65
|
-
name: punctuation.definition.keyword.bibtex
|
66
|
-
"3":
|
67
|
-
name: punctuation.section.string-constant.begin.bibtex
|
68
|
-
"4":
|
69
|
-
name: variable.other.bibtex
|
70
|
-
end: \}
|
71
|
-
patterns:
|
72
|
-
- include: "#string_content"
|
73
|
-
- name: meta.string-constant.parenthesis.bibtex
|
74
|
-
endCaptures:
|
75
|
-
"0":
|
76
|
-
name: punctuation.section.string-constant.end.bibtex
|
77
|
-
begin: ((@)String)\s*(\()\s*([a-zA-Z]*)
|
78
|
-
beginCaptures:
|
79
|
-
"1":
|
80
|
-
name: keyword.other.string-constant.bibtex
|
81
|
-
"2":
|
82
|
-
name: punctuation.definition.keyword.bibtex
|
83
|
-
"3":
|
84
|
-
name: punctuation.section.string-constant.begin.bibtex
|
85
|
-
"4":
|
86
|
-
name: variable.other.bibtex
|
87
|
-
end: \)
|
88
|
-
patterns:
|
89
|
-
- include: "#string_content"
|
90
|
-
- name: meta.entry.braces.bibtex
|
91
|
-
endCaptures:
|
92
|
-
"0":
|
93
|
-
name: punctuation.section.entry.end.bibtex
|
94
|
-
begin: ((@)[a-zA-Z]+)\s*(\{)\s*([^\s,]*)
|
95
|
-
beginCaptures:
|
96
|
-
"1":
|
97
|
-
name: keyword.other.entry-type.bibtex
|
98
|
-
"2":
|
99
|
-
name: punctuation.definition.keyword.bibtex
|
100
|
-
"3":
|
101
|
-
name: punctuation.section.entry.begin.bibtex
|
102
|
-
"4":
|
103
|
-
name: entity.name.type.entry-key.bibtex
|
104
|
-
end: \}
|
105
|
-
patterns:
|
106
|
-
- name: meta.key-assignment.bibtex
|
107
|
-
begin: ([a-zA-Z]+)\s*(\=)
|
108
|
-
beginCaptures:
|
109
|
-
"1":
|
110
|
-
name: string.unquoted.key.bibtex
|
111
|
-
"2":
|
112
|
-
name: punctuation.separator.key-value.bibtex
|
113
|
-
end: (?=[,}])
|
114
|
-
patterns:
|
115
|
-
- include: "#string_content"
|
116
|
-
- include: "#integer"
|
117
|
-
- name: meta.entry.parenthesis.bibtex
|
118
|
-
endCaptures:
|
119
|
-
"0":
|
120
|
-
name: punctuation.section.entry.end.bibtex
|
121
|
-
begin: ((@)[a-zA-Z]+)\s*(\()\s*([^\s,]*)
|
122
|
-
beginCaptures:
|
123
|
-
"1":
|
124
|
-
name: keyword.other.entry-type.bibtex
|
125
|
-
"2":
|
126
|
-
name: punctuation.definition.keyword.bibtex
|
127
|
-
"3":
|
128
|
-
name: punctuation.section.entry.begin.bibtex
|
129
|
-
"4":
|
130
|
-
name: entity.name.type.entry-key.bibtex
|
131
|
-
end: \)
|
132
|
-
patterns:
|
133
|
-
- name: meta.key-assignment.bibtex
|
134
|
-
begin: ([a-zA-Z]+)\s*(\=)
|
135
|
-
beginCaptures:
|
136
|
-
"1":
|
137
|
-
name: string.unquoted.key.bibtex
|
138
|
-
"2":
|
139
|
-
name: punctuation.separator.key-value.bibtex
|
140
|
-
end: (?=[,)])
|
141
|
-
patterns:
|
142
|
-
- include: "#string_content"
|
143
|
-
- include: "#integer"
|
144
|
-
- name: comment.block.bibtex
|
145
|
-
begin: "[^@\\n]"
|
146
|
-
end: (?=@)
|
147
|
-
foldingStopMarker: ^\s*[)}]\s*$
|
148
|
-
comment: "Grammar based on description from http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#comment\n\
|
149
|
-
\t\n\
|
150
|
-
\tTODO: Does not support @preamble\n\
|
151
|
-
\t"
|
data/syntax/blog_html.syntax
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: "Blog \xE2\x80\x94 HTML"
|
3
|
-
fileTypes:
|
4
|
-
- blog.html
|
5
|
-
firstLineMatch: "^Type: Blog Post \\(HTML\\)"
|
6
|
-
scopeName: text.blog.html
|
7
|
-
uuid: E46F5C50-5D16-4B5C-8FBB-686BD3768284
|
8
|
-
foldingStartMarker: |-
|
9
|
-
(?x)
|
10
|
-
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|
11
|
-
|<!--(?!.*--\s*>)
|
12
|
-
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
|
13
|
-
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
|
14
|
-
)
|
15
|
-
patterns:
|
16
|
-
- name: meta.header.blog
|
17
|
-
captures:
|
18
|
-
"1":
|
19
|
-
name: keyword.other.blog
|
20
|
-
"2":
|
21
|
-
name: punctuation.separator.key-value.blog
|
22
|
-
"3":
|
23
|
-
name: string.unquoted.blog
|
24
|
-
match: ^([Tt]itle|[Dd]ate|[Bb]asename|[Kk]eywords|[Bb]log|[Tt]ype|[Ll]ink|[Pp]ost|[Tt]ags|[Cc]omments|[Pp]ings?|[Cc]ategory|[Ss]tatus|[Ff]ormat)(:)\s*(.*)$\n?
|
25
|
-
- name: invalid.illegal.meta.header.blog
|
26
|
-
match: ^([A-Za-z0-9]+):\s*(.*)$\n?
|
27
|
-
- name: text.html
|
28
|
-
begin: ^(?![A-Za-z0-9]+:)
|
29
|
-
end: ^(?=not)possible$
|
30
|
-
patterns:
|
31
|
-
- name: meta.separator.blog
|
32
|
-
match: "^\xE2\x9C\x82-[\xE2\x9C\x82-]+$\\n"
|
33
|
-
- include: text.html.basic
|
34
|
-
foldingStopMarker: |-
|
35
|
-
(?x)
|
36
|
-
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|
37
|
-
|^(?!.*?<!--).*?--\s*>
|
38
|
-
|\{\{?/(if|foreach|capture|literal|foreach|php|section|strip)
|
39
|
-
|^[^{]*\}
|
40
|
-
)
|
41
|
-
keyEquivalent: ^~B
|
data/syntax/blog_markdown.syntax
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: "Blog \xE2\x80\x94 Markdown"
|
3
|
-
fileTypes:
|
4
|
-
- blog.markdown
|
5
|
-
- blog.mdown
|
6
|
-
- blog.mkdn
|
7
|
-
- blog.md
|
8
|
-
firstLineMatch: "^Type: Blog Post \\(Markdown\\)"
|
9
|
-
scopeName: text.blog.markdown
|
10
|
-
uuid: 6AA68B5B-18B8-4922-9CED-0E2295582955
|
11
|
-
foldingStartMarker: |-
|
12
|
-
(?x)
|
13
|
-
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|
14
|
-
|<!--(?!.*-->)
|
15
|
-
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
|
16
|
-
)
|
17
|
-
patterns:
|
18
|
-
- name: meta.header.blog
|
19
|
-
captures:
|
20
|
-
"1":
|
21
|
-
name: keyword.other.blog
|
22
|
-
"2":
|
23
|
-
name: punctuation.separator.key-value.blog
|
24
|
-
"3":
|
25
|
-
name: string.unquoted.blog
|
26
|
-
match: ^([Tt]itle|[Dd]ate|[Bb]asename|[Kk]eywords|[Bb]log|[Tt]ype|[Ll]ink|[Pp]ost|[Tt]ags|[Cc]omments|[Pp]ings?|[Cc]ategory|[Ss]tatus|[Ff]ormat)(:)\s*(.*)$\n?
|
27
|
-
- name: invalid.illegal.meta.header.blog
|
28
|
-
match: ^([A-Za-z0-9]+):\s*(.*)$\n?
|
29
|
-
- name: text.html.markdown
|
30
|
-
begin: ^(?![A-Za-z0-9]+:)
|
31
|
-
end: ^(?=not)possible$
|
32
|
-
patterns:
|
33
|
-
- name: meta.separator.blog
|
34
|
-
match: "^\xE2\x9C\x82-[\xE2\x9C\x82-]+$\\n"
|
35
|
-
- include: text.html.markdown
|
36
|
-
foldingStopMarker: |-
|
37
|
-
(?x)
|
38
|
-
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|
39
|
-
|^\s*-->
|
40
|
-
|(^|\s)\}
|
41
|
-
)
|
42
|
-
keyEquivalent: ^~B
|
data/syntax/blog_text.syntax
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: "Blog \xE2\x80\x94 Text"
|
3
|
-
fileTypes:
|
4
|
-
- blog.txt
|
5
|
-
firstLineMatch: "^Type: Blog Post \\(Text\\)"
|
6
|
-
scopeName: text.blog
|
7
|
-
uuid: B2CCDFF8-0FB3-492A-8761-D31FF0FAC448
|
8
|
-
patterns:
|
9
|
-
- name: meta.header.blog
|
10
|
-
captures:
|
11
|
-
"1":
|
12
|
-
name: keyword.other.blog
|
13
|
-
"2":
|
14
|
-
name: punctuation.separator.key-value.blog
|
15
|
-
"3":
|
16
|
-
name: string.unquoted.blog
|
17
|
-
match: ^([Tt]itle|[Dd]ate|[Bb]asename|[Kk]eywords|[Bb]log|[Tt]ype|[Ll]ink|[Pp]ost|[Tt]ags|[Cc]omments|[Pp]ings?|[Cc]ategory|[Ss]tatus|[Ff]ormat)(:)\s*(.*)$\n?
|
18
|
-
- name: invalid.illegal.meta.header.blog
|
19
|
-
match: ^([A-Za-z0-9]+):\s*(.*)$\n?
|
20
|
-
- name: text.plain
|
21
|
-
begin: ^(?![A-Za-z0-9]+:)
|
22
|
-
end: ^(?=not)possible$
|
23
|
-
patterns:
|
24
|
-
- name: meta.separator.blog
|
25
|
-
match: "^\xE2\x9C\x82-[\xE2\x9C\x82-]+$\\n"
|
26
|
-
- include: text.plain
|
27
|
-
keyEquivalent: ^~B
|
data/syntax/blog_textile.syntax
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: "Blog \xE2\x80\x94 Textile"
|
3
|
-
fileTypes:
|
4
|
-
- blog.textile
|
5
|
-
firstLineMatch: "^Type: Blog Post \\(Textile\\)"
|
6
|
-
scopeName: text.blog.textile
|
7
|
-
uuid: 32E65853-CDBD-401A-ADBE-F94F195249BE
|
8
|
-
patterns:
|
9
|
-
- name: meta.header.blog
|
10
|
-
captures:
|
11
|
-
"1":
|
12
|
-
name: keyword.other.blog
|
13
|
-
"2":
|
14
|
-
name: punctuation.separator.key-value.blog
|
15
|
-
"3":
|
16
|
-
name: string.unquoted.blog
|
17
|
-
match: ^([Tt]itle|[Dd]ate|[Bb]asename|[Kk]eywords|[Bb]log|[Tt]ype|[Ll]ink|[Pp]ost|[Tt]ags|[Cc]omments|[Pp]ings?|[Cc]ategory|[Ss]tatus|[Ff]ormat)(:)\s*(.*)$\n?
|
18
|
-
- name: invalid.illegal.meta.header.blog
|
19
|
-
match: ^([A-Za-z0-9]+):\s*(.*)$\n?
|
20
|
-
- name: text.html.textile
|
21
|
-
begin: ^(?![A-Za-z0-9]+:)
|
22
|
-
end: ^(?=not)possible$
|
23
|
-
patterns:
|
24
|
-
- name: meta.separator.blog
|
25
|
-
match: "^\xE2\x9C\x82-[\xE2\x9C\x82-]+$\\n"
|
26
|
-
- include: text.html.textile
|
27
|
-
keyEquivalent: ^~B
|
@@ -1,543 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: Markdown
|
3
|
-
fileTypes:
|
4
|
-
- markdown
|
5
|
-
- mdown
|
6
|
-
- markdn
|
7
|
-
- md
|
8
|
-
scopeName: text.html.markdown
|
9
|
-
repository:
|
10
|
-
image-inline:
|
11
|
-
name: meta.image.inline.markdown
|
12
|
-
captures:
|
13
|
-
"6":
|
14
|
-
name: punctuation.definition.metadata.markdown
|
15
|
-
"11":
|
16
|
-
name: punctuation.definition.string.markdown
|
17
|
-
"7":
|
18
|
-
name: punctuation.definition.link.markdown
|
19
|
-
"12":
|
20
|
-
name: punctuation.definition.string.markdown
|
21
|
-
"8":
|
22
|
-
name: markup.underline.link.image.markdown
|
23
|
-
"13":
|
24
|
-
name: string.other.link.description.title.markdown
|
25
|
-
"9":
|
26
|
-
name: punctuation.definition.link.markdown
|
27
|
-
"14":
|
28
|
-
name: punctuation.definition.string.markdown
|
29
|
-
"15":
|
30
|
-
name: punctuation.definition.string.markdown
|
31
|
-
"16":
|
32
|
-
name: punctuation.definition.metadata.markdown
|
33
|
-
"1":
|
34
|
-
name: punctuation.definition.string.begin.markdown
|
35
|
-
"2":
|
36
|
-
name: string.other.link.description.markdown
|
37
|
-
"3":
|
38
|
-
name: punctuation.definition.string.end.markdown
|
39
|
-
"10":
|
40
|
-
name: string.other.link.description.title.markdown
|
41
|
-
"5":
|
42
|
-
name: invalid.illegal.whitespace.markdown
|
43
|
-
match: "(?x:\n\
|
44
|
-
\t\t\t\t\\!\t\t\t\t\t\t\t# Images start with !\n\
|
45
|
-
\t\t\t\t(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\t\n\
|
46
|
-
\t\t\t\t\t\t\t\t\t\t\t# Match the link text.\n\
|
47
|
-
\t\t\t\t([ ])?\t\t\t\t\t\t# Space not allowed\n\
|
48
|
-
\t\t\t\t(\\()\t\t\t\t\t\t# Opening paren for url\n\
|
49
|
-
\t\t\t\t\t(<?)(\\S+?)(>?)\t\t\t# The url\n\
|
50
|
-
\t\t\t\t\t[ \\t]*\t\t\t\t\t# Optional whitespace\n\
|
51
|
-
\t\t\t\t\t(?:\n\
|
52
|
-
\t\t\t\t\t\t ((\\().+?(\\)))\t\t# Match title in parens\xE2\x80\xA6\n\
|
53
|
-
\t\t\t\t\t\t| ((\").+?(\"))\t\t# or in quotes.\n\
|
54
|
-
\t\t\t\t\t)?\t\t\t\t\t\t# Title is optional\n\
|
55
|
-
\t\t\t\t\t\\s*\t\t\t\t\t\t# Optional whitespace\n\
|
56
|
-
\t\t\t\t(\\))\n\
|
57
|
-
\t\t\t )"
|
58
|
-
image-ref:
|
59
|
-
name: meta.image.reference.markdown
|
60
|
-
captures:
|
61
|
-
"6":
|
62
|
-
name: constant.other.reference.link.markdown
|
63
|
-
"7":
|
64
|
-
name: punctuation.definition.constant.markdown
|
65
|
-
"1":
|
66
|
-
name: punctuation.definition.string.begin.markdown
|
67
|
-
"2":
|
68
|
-
name: string.other.link.description.markdown
|
69
|
-
"4":
|
70
|
-
name: punctuation.definition.string.begin.markdown
|
71
|
-
"5":
|
72
|
-
name: punctuation.definition.constant.markdown
|
73
|
-
match: \!(\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)(.*?)(\])
|
74
|
-
escape:
|
75
|
-
name: constant.character.escape.markdown
|
76
|
-
match: \\[-`*_#+.!(){}\[\]\\>]
|
77
|
-
bracket:
|
78
|
-
name: meta.other.valid-bracket.markdown
|
79
|
-
match: <(?![a-z/?\$!])
|
80
|
-
comment: "\n\
|
81
|
-
\t\t\t\tMarkdown will convert this for us. We match it so that the\n\
|
82
|
-
\t\t\t\tHTML grammar will not mark it up as invalid.\n\
|
83
|
-
\t\t\t"
|
84
|
-
list-paragraph:
|
85
|
-
patterns:
|
86
|
-
- name: meta.paragraph.list.markdown
|
87
|
-
begin: \G\s+(?=\S)
|
88
|
-
end: ^\s*$
|
89
|
-
patterns:
|
90
|
-
- include: "#inline"
|
91
|
-
link-ref-literal:
|
92
|
-
name: meta.link.reference.literal.markdown
|
93
|
-
captures:
|
94
|
-
"6":
|
95
|
-
name: punctuation.definition.constant.end.markdown
|
96
|
-
"1":
|
97
|
-
name: punctuation.definition.string.begin.markdown
|
98
|
-
"2":
|
99
|
-
name: string.other.link.title.markdown
|
100
|
-
"4":
|
101
|
-
name: punctuation.definition.string.end.markdown
|
102
|
-
"5":
|
103
|
-
name: punctuation.definition.constant.begin.markdown
|
104
|
-
match: (\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)(\])
|
105
|
-
link-email:
|
106
|
-
name: meta.link.email.lt-gt.markdown
|
107
|
-
captures:
|
108
|
-
"1":
|
109
|
-
name: punctuation.definition.link.markdown
|
110
|
-
"2":
|
111
|
-
name: markup.underline.link.markdown
|
112
|
-
"4":
|
113
|
-
name: punctuation.definition.link.markdown
|
114
|
-
match: (<)((?:mailto:)?[-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(>)
|
115
|
-
inline:
|
116
|
-
patterns:
|
117
|
-
- include: "#escape"
|
118
|
-
- include: "#ampersand"
|
119
|
-
- include: "#bracket"
|
120
|
-
- include: "#raw"
|
121
|
-
- include: "#bold"
|
122
|
-
- include: "#italic"
|
123
|
-
- include: "#line-break"
|
124
|
-
- include: "#image-inline"
|
125
|
-
- include: "#link-inline"
|
126
|
-
- include: "#link-inet"
|
127
|
-
- include: "#link-email"
|
128
|
-
- include: "#image-ref"
|
129
|
-
- include: "#link-ref-literal"
|
130
|
-
- include: "#link-ref"
|
131
|
-
block_quote:
|
132
|
-
name: markup.quote.markdown
|
133
|
-
begin: \G[ ]{,3}(>)(?!$)[ ]?
|
134
|
-
beginCaptures:
|
135
|
-
"1":
|
136
|
-
name: punctuation.definition.blockquote.markdown
|
137
|
-
end: |-
|
138
|
-
(?x)^
|
139
|
-
(?= \s*$
|
140
|
-
| [ ]{,3}(?<marker>[-*_])([ ]{,2}\g<marker>){2,}[ \t]*+$
|
141
|
-
| [ ]{,3}>.
|
142
|
-
)
|
143
|
-
patterns:
|
144
|
-
- begin: |-
|
145
|
-
(?x)\G
|
146
|
-
(?= [ ]{,3}>.
|
147
|
-
)
|
148
|
-
end: ^
|
149
|
-
patterns:
|
150
|
-
- include: "#block_quote"
|
151
|
-
- begin: |-
|
152
|
-
(?x)\G
|
153
|
-
(?= ([ ]{4}|\t)
|
154
|
-
| [#]{1,6}\s*+
|
155
|
-
| [ ]{,3}(?<marker>[-*_])([ ]{,2}\g<marker>){2,}[ \t]*+$
|
156
|
-
)
|
157
|
-
applyEndPatternLast: 1
|
158
|
-
end: ^
|
159
|
-
patterns:
|
160
|
-
- include: "#block_raw"
|
161
|
-
- include: "#heading"
|
162
|
-
- include: "#separator"
|
163
|
-
- begin: |-
|
164
|
-
(?x)\G
|
165
|
-
(?! $
|
166
|
-
| [ ]{,3}>.
|
167
|
-
| ([ ]{4}|\t)
|
168
|
-
| [#]{1,6}\s*+
|
169
|
-
| [ ]{,3}(?<marker>[-*_])([ ]{,2}\g<marker>){2,}[ \t]*+$
|
170
|
-
)
|
171
|
-
end: $|(?<=\n)
|
172
|
-
patterns:
|
173
|
-
- include: "#inline"
|
174
|
-
comment: "\n\
|
175
|
-
\t\t\t\tWe terminate the block quote when seeing an empty line, a\n\
|
176
|
-
\t\t\t\tseparator or a line with leading > characters. The latter is\n\
|
177
|
-
\t\t\t\tto \xE2\x80\x9Creset\xE2\x80\x9D the quote level for quoted lines.\n\
|
178
|
-
\t\t\t"
|
179
|
-
link-ref:
|
180
|
-
name: meta.link.reference.markdown
|
181
|
-
captures:
|
182
|
-
"6":
|
183
|
-
name: constant.other.reference.link.markdown
|
184
|
-
"7":
|
185
|
-
name: punctuation.definition.constant.end.markdown
|
186
|
-
"1":
|
187
|
-
name: punctuation.definition.string.begin.markdown
|
188
|
-
"2":
|
189
|
-
name: string.other.link.title.markdown
|
190
|
-
"4":
|
191
|
-
name: punctuation.definition.string.end.markdown
|
192
|
-
"5":
|
193
|
-
name: punctuation.definition.constant.begin.markdown
|
194
|
-
match: (\[)((?<square>[^\[\]\\]|\\.|\[\g<square>*+\])*+)(\])[ ]?(\[)([^\]]*+)(\])
|
195
|
-
block_raw:
|
196
|
-
name: markup.raw.block.markdown
|
197
|
-
match: \G([ ]{4}|\t).*$\n?
|
198
|
-
separator:
|
199
|
-
name: meta.separator.markdown
|
200
|
-
match: \G[ ]{,3}([-*_])([ ]{,2}\1){2,}[ \t]*$\n?
|
201
|
-
link-inline:
|
202
|
-
name: meta.link.inline.markdown
|
203
|
-
captures:
|
204
|
-
"6":
|
205
|
-
name: punctuation.definition.metadata.markdown
|
206
|
-
"11":
|
207
|
-
name: punctuation.definition.string.begin.markdown
|
208
|
-
"7":
|
209
|
-
name: punctuation.definition.link.markdown
|
210
|
-
"12":
|
211
|
-
name: punctuation.definition.string.end.markdown
|
212
|
-
"8":
|
213
|
-
name: markup.underline.link.markdown
|
214
|
-
"13":
|
215
|
-
name: string.other.link.description.title.markdown
|
216
|
-
"9":
|
217
|
-
name: punctuation.definition.link.markdown
|
218
|
-
"14":
|
219
|
-
name: punctuation.definition.string.begin.markdown
|
220
|
-
"15":
|
221
|
-
name: punctuation.definition.string.end.markdown
|
222
|
-
"16":
|
223
|
-
name: punctuation.definition.metadata.markdown
|
224
|
-
"1":
|
225
|
-
name: punctuation.definition.string.begin.markdown
|
226
|
-
"2":
|
227
|
-
name: string.other.link.title.markdown
|
228
|
-
"4":
|
229
|
-
name: punctuation.definition.string.end.markdown
|
230
|
-
"10":
|
231
|
-
name: string.other.link.description.title.markdown
|
232
|
-
"5":
|
233
|
-
name: invalid.illegal.whitespace.markdown
|
234
|
-
match: "(?x:\n\
|
235
|
-
\t\t\t\t(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])\t\n\
|
236
|
-
\t\t\t\t\t\t\t\t\t\t\t# Match the link text.\n\
|
237
|
-
\t\t\t\t([ ])?\t\t\t\t\t\t# Space not allowed\n\
|
238
|
-
\t\t\t\t(\\()\t\t\t\t\t\t# Opening paren for url\n\
|
239
|
-
\t\t\t\t\t(<?)(.*?)(>?)\t\t\t# The url\n\
|
240
|
-
\t\t\t\t\t[ \\t]*\t\t\t\t\t# Optional whitespace\n\
|
241
|
-
\t\t\t\t\t(?:\n\
|
242
|
-
\t\t\t\t\t\t ((\\().+?(\\)))\t\t# Match title in parens\xE2\x80\xA6\n\
|
243
|
-
\t\t\t\t\t\t| ((\").+?(\"))\t\t# or in quotes.\n\
|
244
|
-
\t\t\t\t\t)?\t\t\t\t\t\t# Title is optional\n\
|
245
|
-
\t\t\t\t\t\\s*\t\t\t\t\t\t# Optional whitespace\n\
|
246
|
-
\t\t\t\t(\\))\n\
|
247
|
-
\t\t\t )"
|
248
|
-
bold:
|
249
|
-
name: markup.bold.markdown
|
250
|
-
captures:
|
251
|
-
"1":
|
252
|
-
name: punctuation.definition.bold.markdown
|
253
|
-
begin: "(?x)\n\
|
254
|
-
\t\t\t\t\t\t(\\*\\*|__)(?=\\S)\t\t\t\t\t\t\t\t# Open\n\
|
255
|
-
\t\t\t\t\t\t(?=\n\
|
256
|
-
\t\t\t\t\t\t\t(\n\
|
257
|
-
\t\t\t\t\t\t\t <[^>]*+>\t\t\t\t\t\t\t# HTML tags\n\
|
258
|
-
\t\t\t\t\t\t\t | (?<raw>`+)([^`]|(?!(?<!`)\\g<raw>(?!`))`)*+\\g<raw>\n\
|
259
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# Raw\n\
|
260
|
-
\t\t\t\t\t\t\t | \\\\[\\\\`*_{}\\[\\]()#.!+\\->]?+\t\t\t# Escapes\n\
|
261
|
-
\t\t\t\t\t\t\t | \\[\n\
|
262
|
-
\t\t\t\t\t\t\t\t(\t\t\t\t\n\
|
263
|
-
\t\t\t\t\t\t\t\t (?<square>\t\t\t\t\t# Named group\n\
|
264
|
-
\t\t\t\t\t\t\t\t\t\t\t[^\\[\\]\\\\]\t\t\t\t# Match most chars\n\
|
265
|
-
\t\t\t\t\t\t\t\t | \\\\.\t\t\t\t\t\t# Escaped chars\n\
|
266
|
-
\t\t\t\t\t\t\t\t | \\[ \\g<square>*+ \\]\t\t# Nested brackets\n\
|
267
|
-
\t\t\t\t\t\t\t\t )*+\n\
|
268
|
-
\t\t\t\t\t\t\t\t\t\\]\n\
|
269
|
-
\t\t\t\t\t\t\t\t\t(\n\
|
270
|
-
\t\t\t\t\t\t\t\t\t\t(\t\t\t\t\t\t\t# Reference Link\n\
|
271
|
-
\t\t\t\t\t\t\t\t\t\t\t[ ]?\t\t\t\t\t# Optional space\n\
|
272
|
-
\t\t\t\t\t\t\t\t\t\t\t\\[[^\\]]*+\\]\t\t\t\t# Ref name\n\
|
273
|
-
\t\t\t\t\t\t\t\t\t\t)\n\
|
274
|
-
\t\t\t\t\t\t\t\t\t | (\t\t\t\t\t\t\t# Inline Link\n\
|
275
|
-
\t\t\t\t\t\t\t\t\t\t\t\\(\t\t\t\t\t\t# Opening paren\n\
|
276
|
-
\t\t\t\t\t\t\t\t\t\t\t\t[ \\t]*+\t\t\t\t# Optional whtiespace\n\
|
277
|
-
\t\t\t\t\t\t\t\t\t\t\t\t<?(.*?)>?\t\t\t# URL\n\
|
278
|
-
\t\t\t\t\t\t\t\t\t\t\t\t[ \\t]*+\t\t\t\t# Optional whtiespace\n\
|
279
|
-
\t\t\t\t\t\t\t\t\t\t\t\t(\t\t\t\t\t# Optional Title\n\
|
280
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t(?<title>['\"])\n\
|
281
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t(.*?)\n\
|
282
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t\\g<title>\n\
|
283
|
-
\t\t\t\t\t\t\t\t\t\t\t\t)?\n\
|
284
|
-
\t\t\t\t\t\t\t\t\t\t\t\\)\n\
|
285
|
-
\t\t\t\t\t\t\t\t\t\t)\n\
|
286
|
-
\t\t\t\t\t\t\t\t\t)\n\
|
287
|
-
\t\t\t\t\t\t\t\t)\n\
|
288
|
-
\t\t\t\t\t\t\t | (?!(?<=\\S)\\1).\t\t\t\t\t\t# Everything besides\n\
|
289
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# style closer\n\
|
290
|
-
\t\t\t\t\t\t\t)++\n\
|
291
|
-
\t\t\t\t\t\t\t(?<=\\S)\\1\t\t\t\t\t\t\t\t# Close\n\
|
292
|
-
\t\t\t\t\t\t)\n\
|
293
|
-
\t\t\t\t\t"
|
294
|
-
end: (?<=\S)(\1)
|
295
|
-
patterns:
|
296
|
-
- begin: (?=<[^>]*?>)
|
297
|
-
applyEndPatternLast: 1
|
298
|
-
end: (?<=>)
|
299
|
-
patterns:
|
300
|
-
- include: text.html.basic
|
301
|
-
- include: "#escape"
|
302
|
-
- include: "#ampersand"
|
303
|
-
- include: "#bracket"
|
304
|
-
- include: "#raw"
|
305
|
-
- include: "#italic"
|
306
|
-
- include: "#image-inline"
|
307
|
-
- include: "#link-inline"
|
308
|
-
- include: "#link-inet"
|
309
|
-
- include: "#link-email"
|
310
|
-
- include: "#image-ref"
|
311
|
-
- include: "#link-ref-literal"
|
312
|
-
- include: "#link-ref"
|
313
|
-
heading:
|
314
|
-
name: markup.heading.markdown
|
315
|
-
captures:
|
316
|
-
"1":
|
317
|
-
name: punctuation.definition.heading.markdown
|
318
|
-
begin: \G(#{1,6})(?!#)\s*(?=\S)
|
319
|
-
contentName: entity.name.section.markdown
|
320
|
-
end: \s*(#*)$\n?
|
321
|
-
patterns:
|
322
|
-
- include: "#inline"
|
323
|
-
link-inet:
|
324
|
-
name: meta.link.inet.markdown
|
325
|
-
captures:
|
326
|
-
"1":
|
327
|
-
name: punctuation.definition.link.markdown
|
328
|
-
"2":
|
329
|
-
name: markup.underline.link.markdown
|
330
|
-
"3":
|
331
|
-
name: punctuation.definition.link.markdown
|
332
|
-
match: (<)((?:https?|ftp)://.*?)(>)
|
333
|
-
raw:
|
334
|
-
name: markup.raw.inline.markdown
|
335
|
-
captures:
|
336
|
-
"1":
|
337
|
-
name: punctuation.definition.raw.markdown
|
338
|
-
"3":
|
339
|
-
name: punctuation.definition.raw.markdown
|
340
|
-
match: (`+)([^`]|(?!(?<!`)\1(?!`))`)*+(\1)
|
341
|
-
italic:
|
342
|
-
name: markup.italic.markdown
|
343
|
-
captures:
|
344
|
-
"1":
|
345
|
-
name: punctuation.definition.italic.markdown
|
346
|
-
begin: "(?x)\n\
|
347
|
-
\t\t\t\t\t\t(\\*|_)(?=\\S)\t\t\t\t\t\t\t\t# Open\n\
|
348
|
-
\t\t\t\t\t\t(?=\n\
|
349
|
-
\t\t\t\t\t\t\t(\n\
|
350
|
-
\t\t\t\t\t\t\t <[^>]*+>\t\t\t\t\t\t\t# HTML tags\n\
|
351
|
-
\t\t\t\t\t\t\t | (?<raw>`+)([^`]|(?!(?<!`)\\g<raw>(?!`))`)*+\\g<raw>\n\
|
352
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# Raw\n\
|
353
|
-
\t\t\t\t\t\t\t | \\\\[\\\\`*_{}\\[\\]()#.!+\\->]?+\t\t\t# Escapes\n\
|
354
|
-
\t\t\t\t\t\t\t | \\[\n\
|
355
|
-
\t\t\t\t\t\t\t\t(\t\t\t\t\n\
|
356
|
-
\t\t\t\t\t\t\t\t (?<square>\t\t\t\t\t# Named group\n\
|
357
|
-
\t\t\t\t\t\t\t\t\t\t\t[^\\[\\]\\\\]\t\t\t\t# Match most chars\n\
|
358
|
-
\t\t\t\t\t\t\t\t | \\\\.\t\t\t\t\t\t# Escaped chars\n\
|
359
|
-
\t\t\t\t\t\t\t\t | \\[ \\g<square>*+ \\]\t\t# Nested brackets\n\
|
360
|
-
\t\t\t\t\t\t\t\t )*+\n\
|
361
|
-
\t\t\t\t\t\t\t\t\t\\]\n\
|
362
|
-
\t\t\t\t\t\t\t\t\t(\n\
|
363
|
-
\t\t\t\t\t\t\t\t\t\t(\t\t\t\t\t\t\t# Reference Link\n\
|
364
|
-
\t\t\t\t\t\t\t\t\t\t\t[ ]?\t\t\t\t\t# Optional space\n\
|
365
|
-
\t\t\t\t\t\t\t\t\t\t\t\\[[^\\]]*+\\]\t\t\t\t# Ref name\n\
|
366
|
-
\t\t\t\t\t\t\t\t\t\t)\n\
|
367
|
-
\t\t\t\t\t\t\t\t\t | (\t\t\t\t\t\t\t# Inline Link\n\
|
368
|
-
\t\t\t\t\t\t\t\t\t\t\t\\(\t\t\t\t\t\t# Opening paren\n\
|
369
|
-
\t\t\t\t\t\t\t\t\t\t\t\t[ \\t]*+\t\t\t\t# Optional whtiespace\n\
|
370
|
-
\t\t\t\t\t\t\t\t\t\t\t\t<?(.*?)>?\t\t\t# URL\n\
|
371
|
-
\t\t\t\t\t\t\t\t\t\t\t\t[ \\t]*+\t\t\t\t# Optional whtiespace\n\
|
372
|
-
\t\t\t\t\t\t\t\t\t\t\t\t(\t\t\t\t\t# Optional Title\n\
|
373
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t(?<title>['\"])\n\
|
374
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t(.*?)\n\
|
375
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t\\g<title>\n\
|
376
|
-
\t\t\t\t\t\t\t\t\t\t\t\t)?\n\
|
377
|
-
\t\t\t\t\t\t\t\t\t\t\t\\)\n\
|
378
|
-
\t\t\t\t\t\t\t\t\t\t)\n\
|
379
|
-
\t\t\t\t\t\t\t\t\t)\n\
|
380
|
-
\t\t\t\t\t\t\t\t)\n\
|
381
|
-
\t\t\t\t\t\t\t | \\1\\1\t\t\t\t\t\t\t\t# Must be bold closer\n\
|
382
|
-
\t\t\t\t\t\t\t | (?!(?<=\\S)\\1).\t\t\t\t\t\t# Everything besides\n\
|
383
|
-
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# style closer\n\
|
384
|
-
\t\t\t\t\t\t\t)++\n\
|
385
|
-
\t\t\t\t\t\t\t(?<=\\S)\\1\t\t\t\t\t\t\t\t# Close\n\
|
386
|
-
\t\t\t\t\t\t)\n\
|
387
|
-
\t\t\t\t\t"
|
388
|
-
end: (?<=\S)(\1)((?!\1)|(?=\1\1))
|
389
|
-
patterns:
|
390
|
-
- begin: (?=<[^>]*?>)
|
391
|
-
applyEndPatternLast: 1
|
392
|
-
end: (?<=>)
|
393
|
-
patterns:
|
394
|
-
- include: text.html.basic
|
395
|
-
- include: "#escape"
|
396
|
-
- include: "#ampersand"
|
397
|
-
- include: "#bracket"
|
398
|
-
- include: "#raw"
|
399
|
-
- include: "#bold"
|
400
|
-
- include: "#image-inline"
|
401
|
-
- include: "#link-inline"
|
402
|
-
- include: "#link-inet"
|
403
|
-
- include: "#link-email"
|
404
|
-
- include: "#image-ref"
|
405
|
-
- include: "#link-ref-literal"
|
406
|
-
- include: "#link-ref"
|
407
|
-
line-break:
|
408
|
-
name: meta.dummy.line-break
|
409
|
-
match: " {2,}$"
|
410
|
-
ampersand:
|
411
|
-
name: meta.other.valid-ampersand.markdown
|
412
|
-
match: "&(?!([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);)"
|
413
|
-
comment: "\n\
|
414
|
-
\t\t\t\tMarkdown will convert this for us. We match it so that the\n\
|
415
|
-
\t\t\t\tHTML grammar will not mark it up as invalid.\n\
|
416
|
-
\t\t\t"
|
417
|
-
uuid: 0A1D9874-B448-11D9-BD50-000D93B6E43C
|
418
|
-
foldingStartMarker: |-
|
419
|
-
(?x)
|
420
|
-
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|
421
|
-
|<!--(?!.*-->)
|
422
|
-
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
|
423
|
-
)
|
424
|
-
patterns:
|
425
|
-
- name: meta.block-level.markdown
|
426
|
-
begin: |-
|
427
|
-
(?x)^
|
428
|
-
(?= [ ]{,3}>.
|
429
|
-
| ([ ]{4}|\t)
|
430
|
-
| [#]{1,6}\s*+
|
431
|
-
| [ ]{,3}(?<marker>[-*_])([ ]{,2}\g<marker>){2,}[ \t]*+$
|
432
|
-
)
|
433
|
-
end: |-
|
434
|
-
(?x)^
|
435
|
-
(?! [ ]{,3}>.
|
436
|
-
| ([ ]{4}|\t)
|
437
|
-
| [#]{1,6}\s*+
|
438
|
-
| [ ]{,3}(?<marker>[-*_])([ ]{,2}\g<marker>){2,}[ \t]*+$
|
439
|
-
)
|
440
|
-
patterns:
|
441
|
-
- include: "#block_quote"
|
442
|
-
- include: "#block_raw"
|
443
|
-
- include: "#heading"
|
444
|
-
- include: "#separator"
|
445
|
-
comment: "\n\
|
446
|
-
\t\t\t\tWe could also use an empty end match and set\n\
|
447
|
-
\t\t\t\tapplyEndPatternLast, but then we must be sure that the begin\n\
|
448
|
-
\t\t\t\tpattern will only match stuff matched by the sub-patterns.\n\
|
449
|
-
\t\t\t"
|
450
|
-
- name: markup.list.unnumbered
|
451
|
-
captures:
|
452
|
-
"1":
|
453
|
-
name: punctuation.definition.list_item.markdown
|
454
|
-
begin: ^[ ]{0,3}([*+-])(?=\s)
|
455
|
-
end: ^(?=\S)
|
456
|
-
patterns:
|
457
|
-
- include: "#list-paragraph"
|
458
|
-
- name: markup.list.numbered
|
459
|
-
captures:
|
460
|
-
"1":
|
461
|
-
name: punctuation.definition.list_item.markdown
|
462
|
-
begin: ^[ ]{0,3}[0-9]+(\.)(?=\s)
|
463
|
-
end: ^(?=\S)
|
464
|
-
patterns:
|
465
|
-
- include: "#list-paragraph"
|
466
|
-
- name: meta.disable-markdown
|
467
|
-
begin: ^(?=<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b)(?!.*?</\1>)
|
468
|
-
end: (?<=^</\1>$\n)
|
469
|
-
patterns:
|
470
|
-
- include: text.html.basic
|
471
|
-
comment: "\n\
|
472
|
-
\t\t\t\tMarkdown formatting is disabled inside block-level tags.\n\
|
473
|
-
\t\t\t"
|
474
|
-
- name: meta.disable-markdown
|
475
|
-
begin: ^(?=<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b)
|
476
|
-
end: $\n?
|
477
|
-
patterns:
|
478
|
-
- include: text.html.basic
|
479
|
-
comment: Same rule but for one line disables.
|
480
|
-
- name: meta.link.reference.def.markdown
|
481
|
-
captures:
|
482
|
-
"6":
|
483
|
-
name: markup.underline.link.markdown
|
484
|
-
"11":
|
485
|
-
name: string.other.link.description.title.markdown
|
486
|
-
"7":
|
487
|
-
name: punctuation.definition.link.markdown
|
488
|
-
"12":
|
489
|
-
name: punctuation.definition.string.begin.markdown
|
490
|
-
"8":
|
491
|
-
name: string.other.link.description.title.markdown
|
492
|
-
"13":
|
493
|
-
name: punctuation.definition.string.end.markdown
|
494
|
-
"9":
|
495
|
-
name: punctuation.definition.string.begin.markdown
|
496
|
-
"1":
|
497
|
-
name: punctuation.definition.constant.markdown
|
498
|
-
"2":
|
499
|
-
name: constant.other.reference.link.markdown
|
500
|
-
"3":
|
501
|
-
name: punctuation.definition.constant.markdown
|
502
|
-
"4":
|
503
|
-
name: punctuation.separator.key-value.markdown
|
504
|
-
"10":
|
505
|
-
name: punctuation.definition.string.end.markdown
|
506
|
-
"5":
|
507
|
-
name: punctuation.definition.link.markdown
|
508
|
-
match: "(?x:\n\
|
509
|
-
\t\t\t\t\\s*\t\t\t\t\t\t# Leading whitespace\n\
|
510
|
-
\t\t\t\t(\\[)(.+?)(\\])(:)\t\t# Reference name\n\
|
511
|
-
\t\t\t\t[ \\t]*\t\t\t\t\t# Optional whitespace\n\
|
512
|
-
\t\t\t\t(<?)(\\S+?)(>?)\t\t\t# The url\n\
|
513
|
-
\t\t\t\t[ \\t]*\t\t\t\t\t# Optional whitespace\n\
|
514
|
-
\t\t\t\t(?:\n\
|
515
|
-
\t\t\t\t\t ((\\().+?(\\)))\t\t# Match title in quotes\xE2\x80\xA6\n\
|
516
|
-
\t\t\t\t\t| ((\").+?(\"))\t\t# or in parens.\n\
|
517
|
-
\t\t\t\t)?\t\t\t\t\t\t# Title is optional\n\
|
518
|
-
\t\t\t\t\\s*\t\t\t\t\t\t# Optional whitespace\n\
|
519
|
-
\t\t\t\t$\n\
|
520
|
-
\t\t\t)"
|
521
|
-
- name: meta.paragraph.markdown
|
522
|
-
begin: ^(?=\S)(?![=-]{3,}(?=$))
|
523
|
-
end: ^(?:\s*$|(?=[ ]{,3}>.))|(?=[ \t]*\n)(?<=^===|^====|=====|^---|^----|-----)[ \t]*\n
|
524
|
-
patterns:
|
525
|
-
- include: "#inline"
|
526
|
-
- include: text.html.basic
|
527
|
-
- name: markup.heading.1.markdown
|
528
|
-
captures:
|
529
|
-
"1":
|
530
|
-
name: punctuation.definition.heading.markdown
|
531
|
-
match: ^(={3,})(?=[ \t]*$)
|
532
|
-
- name: markup.heading.2.markdown
|
533
|
-
captures:
|
534
|
-
"1":
|
535
|
-
name: punctuation.definition.heading.markdown
|
536
|
-
match: ^(-{3,})(?=[ \t]*$)
|
537
|
-
foldingStopMarker: |-
|
538
|
-
(?x)
|
539
|
-
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|
540
|
-
|^\s*-->
|
541
|
-
|(^|\s)\}
|
542
|
-
)
|
543
|
-
keyEquivalent: ^~M
|