~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/Mono.Texteditor/SyntaxModes/AspNetSyntaxMode.xml

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
24
 THE SOFTWARE. -->
25
25
 
26
 
<SyntaxMode name = "Asp.Net" mimeTypes="application/x-aspx;application/x-ashx;application/x-ascx;application/x-master-page">
 
26
<SyntaxMode name = "Asp.Net" mimeTypes="application/x-aspx;application/x-ascx;application/x-master-page">
27
27
        <!-- directives -->
28
 
        <Span color = "template.tag" tagColor="template.tag" rule = "InTag">
 
28
        <Span color = "Html Server-Side Script" tagColor="Html Server-Side Script" rule = "InTag">
29
29
                <Begin>&lt;%@</Begin>
30
30
                <End>%&gt;</End>
31
31
        </Span>
32
32
        
33
33
        <!-- comments -->
34
 
        <Span color = "comment.server" rule = "Comment">
 
34
        <Span color = "Html Comment" rule = "Comment">
35
35
                <Begin>&lt;%--</Begin>
36
36
                <End>--%&gt;</End>
37
37
        </Span>
38
38
        
39
 
        <Span color = "comment.client" rule = "Comment">
 
39
        <Span color = "Html Comment" rule = "Comment">
40
40
                <Begin>&lt;!--</Begin>
41
41
                <End>--&gt;</End>
42
42
        </Span>
43
43
        
44
44
        <!-- expressions -->
45
 
        <Span color = "template" tagColor="template.tag">
 
45
        <Span color = "Razor Code" tagColor="Html Server-Side Script">
46
46
                <Begin>&lt;%</Begin>
47
47
                <End>%&gt;</End>
48
48
        </Span>
49
49
        
50
50
        <!-- entities -->
51
 
        <Span color = "text.preprocessor">
 
51
        <Span color = "Html Entity">
52
52
                <Begin>&amp;</Begin>
53
53
                <End>;</End>
54
54
        </Span>
55
55
        
56
 
        <Span tagColor = "keyword.declaration" color = "text.markup" rule = "InTag">
57
 
                <Begin>&lt;!DOCTYPE</Begin>
58
 
                <End>&gt;</End>
 
56
        <Span tagColor = "Html Tag Delimiter" color = "Html Attribute Name" rule = "InDocType">
 
57
                <Begin>&lt;!</Begin>
 
58
                <End>&gt;</End>
59
59
        </Span>
60
60
        
61
61
        <!-- CDATA section -->
62
 
        <Span tagColor = "keyword.declaration" color="text" rule = "Comment">
63
 
                <Begin>&lt;![CDATA[</Begin>
64
 
                <End>]]&gt;</End>
 
62
        <Span tagColor = "Html Tag Delimiter" color = "Xml CData Section" rule = "Comment">
 
63
                <Begin>&lt;![CDATA[</Begin>
 
64
                <End>]]&gt;</End>
65
65
        </Span>
66
66
        
67
67
        <!-- processing instructions -->
68
 
        <Span tagColor = "keyword.declaration" color = "text.markup" rule = "InTag">
 
68
        <Span tagColor = "Keyword(Declaration)" color = "Html Element Name" rule = "InTag">
69
69
                <Begin>&lt;?</Begin>
70
70
                <End>?&gt;</End>
71
71
        </Span>
72
72
        
73
73
        <!-- tags -->
74
 
        <Span color = "text.markup" rule = "InTag">
 
74
        <Span tagColor = "Html Tag Delimiter" color = "Html Element Name" rule = "InTag">
 
75
                <Begin>&lt;/</Begin>
 
76
                <End>&gt;</End>
 
77
        </Span>
 
78
        
 
79
        <Span tagColor = "Html Tag Delimiter" color = "Html Element Name" rule = "InTag">
75
80
                <Begin>&lt;</Begin>
76
81
                <End>&gt;</End>
77
82
        </Span>
78
83
        
79
84
        <!-- tag definitions -->
 
85
        <Rule name = "InDocType">
 
86
                <Span color = "Xml Attribute">
 
87
                        <Begin>&amp;</Begin>
 
88
                        <End>;</End>
 
89
                </Span>
 
90
                <Keywords color = "Html Element Name">
 
91
                        <Word>DOCTYPE</Word>
 
92
                </Keywords>
 
93
        </Rule>
 
94
        
80
95
        <Rule name = "InTag">
81
 
                <Span color = "string" rule="InLiteral">
 
96
                <Span color = "Html Attribute Value" rule="InLiteral">
82
97
                        <Begin>&quot;</Begin>
83
98
                        <End>&quot;</End>
84
99
                </Span>
85
100
                
86
 
                <Span color = "string" rule="InLiteral">
 
101
                <Span color = "Html Attribute Value" rule="InLiteral">
87
102
                        <Begin>&apos;</Begin>
88
103
                        <End>&apos;</End>
89
104
                </Span>
90
105
                
91
 
                <!-- attributes -->
92
 
                <Match color = "keyword.type">[A-Za-z0-9_]+(:[A-Za-z0-9_]+)?[\s\n\r]*=</Match>
93
 
                
94
106
                <!-- comments -->
95
 
                <Span color = "comment.server" rule = "Comment">
 
107
                <Span color = "Html Comment" rule = "Comment">
96
108
                        <Begin>&lt;%--</Begin>
97
109
                        <End>--%&gt;</End>
98
110
                </Span>
99
111
        
100
112
                <!-- expressions -->
101
 
                <Span color = "template" tagColor="template.tag">
 
113
                <Span color = "Razor Code" tagColor="Html Server-Side Script">
102
114
                        <Begin>&lt;%</Begin>
103
115
                        <End>%&gt;</End>
104
116
                </Span>
105
117
                
 
118
                <!-- attributes -->
 
119
                <Match expression="([A-Za-z0-9_]+[:[A-Za-z0-9_]+]?)([\s\n\r]*=)">
 
120
                        <Group color = "Html Attribute Name"/>
 
121
                        <Group color = "Html Operator"/>
 
122
                </Match>
106
123
        </Rule>
107
124
        
108
125
        <Rule name = "InLiteral">
109
126
                <!-- entities -->
110
 
                <Span color = "text.preprocessor">
 
127
                <Span color = "Html Entity">
111
128
                        <Begin>&amp;</Begin>
112
129
                        <End>;</End>
113
130
                </Span>
114
131
                
115
132
                <!-- expressions -->
116
 
                <Span color = "template" tagColor="template.tag">
 
133
                <Span color = "Razor Code" tagColor="Html Server-Side Script">
117
134
                        <Begin>&lt;%</Begin>
118
135
                        <End>%&gt;</End>
119
136
                </Span>