Skip to content

Commit e644db9

Browse files
committed
Initial commit with default packages
0 parents  commit e644db9

File tree

1,283 files changed

+104200
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,283 files changed

+104200
-0
lines changed

Packages/ASP/ASP.sublime-syntax

+694
Large diffs are not rendered by default.

Packages/ASP/Comments.tmPreferences

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>name</key>
5+
<string>Comments</string>
6+
<key>scope</key>
7+
<string>source.asp</string>
8+
<key>settings</key>
9+
<dict>
10+
<key>shellVariables</key>
11+
<array>
12+
<dict>
13+
<key>name</key>
14+
<string>TM_COMMENT_START</string>
15+
<key>value</key>
16+
<string>' </string>
17+
</dict>
18+
</array>
19+
</dict>
20+
</dict>
21+
</plist>

Packages/ASP/HTML-ASP.sublime-syntax

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
%YAML 1.2
2+
---
3+
# http://www.sublimetext.com/docs/3/syntax.html
4+
name: HTML (ASP)
5+
file_extensions:
6+
- asp
7+
scope: text.html.asp
8+
contexts:
9+
main:
10+
- include: html
11+
12+
asp_punctuation_begin:
13+
- match: '<%'
14+
scope: punctuation.section.embedded.begin.asp
15+
push:
16+
- match: '@' # https://msdn.microsoft.com/en-us/library/ms525579%28v=vs.90%29.aspx
17+
set: asp_directive
18+
- match: '='
19+
scope: punctuation.section.embedded.begin.asp
20+
set: [close_embedded_asp, begin_embedded_asp_expression]
21+
- match: '(?=\S)'
22+
set: [close_embedded_asp, begin_embedded_asp]
23+
24+
asp_directive:
25+
- match: '@?\s*\b((?i:ENABLESESSIONSTATE|LANGUAGE|LCID|TRANSACTION))\b'
26+
captures:
27+
1: constant.language.processing-directive.asp
28+
push:
29+
- match: '\s*(=)\s*'
30+
scope: punctuation.separator.key-value.asp
31+
pop: true
32+
- match: '(?=%>)'
33+
pop: true
34+
- match: '%>'
35+
scope: punctuation.section.embedded.end.asp
36+
pop: true
37+
38+
html:
39+
- match: ''
40+
set:
41+
- include: scope:text.html.basic
42+
with_prototype:
43+
- include: asp_punctuation_begin
44+
45+
begin_embedded_asp:
46+
- meta_content_scope: source.asp.embedded.html
47+
- match: '(?=%>)'
48+
pop: true
49+
- include: scope:source.asp
50+
51+
begin_embedded_asp_expression:
52+
- meta_content_scope: source.asp.embedded.html
53+
- match: '(?=%>)'
54+
pop: true
55+
- include: scope:source.asp#expression
56+
57+
close_embedded_asp:
58+
- match: '%>'
59+
scope: punctuation.section.embedded.end.asp
60+
pop: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>name</key>
5+
<string>Indentation Rules</string>
6+
<key>scope</key>
7+
<string>source.asp - comment</string>
8+
<key>settings</key>
9+
<dict>
10+
<key>decreaseIndentPattern</key>
11+
<string>^\s*(?i:end|else|elseif|loop|wend|next)(\s|$)</string>
12+
<key>increaseIndentPattern</key>
13+
<string>(?x)(^\s*(
14+
((?i:private|public(?!\s+default))\s+)?(?i:function|sub|property)\s
15+
|
16+
(?i:class|if|select\s+case|with|do|for|while)\s
17+
))</string>
18+
</dict>
19+
</dict>
20+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>name</key>
5+
<string>Symbol List</string>
6+
<key>scope</key>
7+
<string>source.asp entity.name.class.asp, source.asp entity.name.method.asp</string>
8+
<key>settings</key>
9+
<dict>
10+
<key>showInIndexedSymbolList</key>
11+
<integer>1</integer>
12+
</dict>
13+
</dict>
14+
</plist>
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>name</key>
5+
<string>Symbol List</string>
6+
<key>scope</key>
7+
<string>source.asp meta.class.identifier.asp, source.asp meta.method.identifier.asp</string>
8+
<key>settings</key>
9+
<dict>
10+
<key>showInSymbolList</key>
11+
<integer>1</integer>
12+
<key>symbolTransformation</key>
13+
<string><![CDATA[
14+
s/(\[[^\]]*\])|\b_\b\s*|\(.*|(\s{2,})/$1(?2 )/g; (?# this ignores anything in square brackets, and:
15+
- finds an underscore line continuation character and any whitespace following it, and replaces it with nothing
16+
- finds an open paren and anything following it, and replaces it with nothing
17+
- collapses multiple spaces into one
18+
We don't have to worry about comments, because they are not allowed after an underscore.)
19+
]]></string>
20+
</dict>
21+
</dict>
22+
</plist>

0 commit comments

Comments
 (0)