~ubuntu-branches/ubuntu/saucy/keystone/saucy-proposed

« back to all changes in this revision

Viewing changes to keystone/content/common/js/shjs/sh_xml.js

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-08-23 10:18:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110823101822-enve6zceb3lqhuvj
Tags: upstream-1.0~d4~20110823.1078
ImportĀ upstreamĀ versionĀ 1.0~d4~20110823.1078

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if (! this.sh_languages) {
 
2
  this.sh_languages = {};
 
3
}
 
4
sh_languages['xml'] = [
 
5
  [
 
6
    [
 
7
      /<\?xml/g,
 
8
      'sh_preproc',
 
9
      1,
 
10
      1
 
11
    ],
 
12
    [
 
13
      /<!DOCTYPE/g,
 
14
      'sh_preproc',
 
15
      3,
 
16
      1
 
17
    ],
 
18
    [
 
19
      /<!--/g,
 
20
      'sh_comment',
 
21
      4
 
22
    ],
 
23
    [
 
24
      /<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)(?:\/)?>/g,
 
25
      'sh_keyword',
 
26
      -1
 
27
    ],
 
28
    [
 
29
      /<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,
 
30
      'sh_keyword',
 
31
      5,
 
32
      1
 
33
    ],
 
34
    [
 
35
      /&(?:[A-Za-z0-9]+);/g,
 
36
      'sh_preproc',
 
37
      -1
 
38
    ]
 
39
  ],
 
40
  [
 
41
    [
 
42
      /\?>/g,
 
43
      'sh_preproc',
 
44
      -2
 
45
    ],
 
46
    [
 
47
      /([^=" \t>]+)([ \t]*)(=?)/g,
 
48
      ['sh_type', 'sh_normal', 'sh_symbol'],
 
49
      -1
 
50
    ],
 
51
    [
 
52
      /"/g,
 
53
      'sh_string',
 
54
      2
 
55
    ]
 
56
  ],
 
57
  [
 
58
    [
 
59
      /\\(?:\\|")/g,
 
60
      null,
 
61
      -1
 
62
    ],
 
63
    [
 
64
      /"/g,
 
65
      'sh_string',
 
66
      -2
 
67
    ]
 
68
  ],
 
69
  [
 
70
    [
 
71
      />/g,
 
72
      'sh_preproc',
 
73
      -2
 
74
    ],
 
75
    [
 
76
      /([^=" \t>]+)([ \t]*)(=?)/g,
 
77
      ['sh_type', 'sh_normal', 'sh_symbol'],
 
78
      -1
 
79
    ],
 
80
    [
 
81
      /"/g,
 
82
      'sh_string',
 
83
      2
 
84
    ]
 
85
  ],
 
86
  [
 
87
    [
 
88
      /-->/g,
 
89
      'sh_comment',
 
90
      -2
 
91
    ],
 
92
    [
 
93
      /<!--/g,
 
94
      'sh_comment',
 
95
      4
 
96
    ]
 
97
  ],
 
98
  [
 
99
    [
 
100
      /(?:\/)?>/g,
 
101
      'sh_keyword',
 
102
      -2
 
103
    ],
 
104
    [
 
105
      /([^=" \t>]+)([ \t]*)(=?)/g,
 
106
      ['sh_type', 'sh_normal', 'sh_symbol'],
 
107
      -1
 
108
    ],
 
109
    [
 
110
      /"/g,
 
111
      'sh_string',
 
112
      2
 
113
    ]
 
114
  ]
 
115
];