ultraviolet 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/History.txt +7 -0
  2. data/Manifest.txt +184 -188
  3. data/Rakefile +2 -2
  4. data/bin/theme2latexrender +9 -30
  5. data/bin/theme2xhtmlrender +17 -23
  6. data/lib/uv.rb +2 -2
  7. data/lib/uv/{html_processor.rb → render_processor.rb} +39 -13
  8. data/lib/uv/utility.rb +67 -0
  9. data/render/latex/active4d.render +7 -7
  10. data/render/latex/all_hallows_eve.render +6 -6
  11. data/render/latex/amy.render +7 -7
  12. data/render/latex/blackboard.render +5 -5
  13. data/render/latex/brilliance_black.render +171 -221
  14. data/render/latex/brilliance_dull.render +105 -105
  15. data/render/latex/cobalt.render +12 -12
  16. data/render/latex/dawn.render +8 -8
  17. data/render/latex/eiffel.render +4 -4
  18. data/render/latex/espresso_libre.render +5 -5
  19. data/render/latex/idle.render +2 -2
  20. data/render/latex/iplastic.render +5 -5
  21. data/render/latex/lazy.render +2 -2
  22. data/render/latex/mac_classic.render +7 -7
  23. data/render/latex/magicwb_amiga.render +8 -8
  24. data/render/latex/pastels_on_dark.render +5 -5
  25. data/render/latex/slush_poppies.render +1 -1
  26. data/render/latex/spacecadet.render +3 -3
  27. data/render/latex/sunburst.render +14 -14
  28. data/render/latex/twilight.render +9 -9
  29. data/render/latex/zenburnesque.render +2 -2
  30. data/render/xhtml/amy.render +1 -1
  31. data/render/xhtml/brilliance_black.render +74 -124
  32. data/render/xhtml/brilliance_dull.render +6 -6
  33. data/render/xhtml/files/css/active4d.css +1 -1
  34. data/render/xhtml/files/css/all_hallows_eve.css +1 -1
  35. data/render/xhtml/files/css/amy.css +6 -3
  36. data/render/xhtml/files/css/blackboard.css +3 -3
  37. data/render/xhtml/files/css/brilliance_black.css +193 -220
  38. data/render/xhtml/files/css/brilliance_dull.css +110 -90
  39. data/render/xhtml/files/css/cobalt.css +3 -3
  40. data/render/xhtml/files/css/dawn.css +6 -6
  41. data/render/xhtml/files/css/eiffel.css +1 -1
  42. data/render/xhtml/files/css/espresso_libre.css +2 -2
  43. data/render/xhtml/files/css/iplastic.css +3 -3
  44. data/render/xhtml/files/css/mac_classic.css +3 -3
  45. data/render/xhtml/files/css/magicwb_amiga.css +6 -3
  46. data/render/xhtml/files/css/pastels_on_dark.css +2 -2
  47. data/render/xhtml/files/css/spacecadet.css +1 -1
  48. data/render/xhtml/files/css/sunburst.css +7 -7
  49. data/render/xhtml/files/css/twilight.css +5 -5
  50. data/render/xhtml/files/css/zenburnesque.css +5 -2
  51. data/render/xhtml/mac_classic.render +1 -1
  52. data/render/xhtml/magicwb_amiga.render +1 -1
  53. data/render/xhtml/zenburnesque.render +1 -1
  54. data/syntax/antlr.syntax +49 -26
  55. data/syntax/apache.syntax +17 -2
  56. data/syntax/c.syntax +2 -2
  57. data/syntax/cm.syntax +32 -0
  58. data/syntax/coldfusion.syntax +4 -3
  59. data/syntax/css.syntax +8 -3
  60. data/syntax/d.syntax +4 -0
  61. data/syntax/groovy.syntax +10 -8
  62. data/syntax/gtd.syntax +22 -0
  63. data/syntax/haml.syntax +2 -2
  64. data/syntax/html.syntax +4 -4
  65. data/syntax/ini.syntax +5 -4
  66. data/syntax/javascript.syntax +2 -1
  67. data/syntax/languagedefinition.syntax +50 -39
  68. data/syntax/macports_portfile.syntax +21 -1
  69. data/syntax/makefile.syntax +1 -0
  70. data/syntax/objective-c.syntax +37 -30
  71. data/syntax/pascal.syntax +1 -1
  72. data/syntax/perl.syntax +40 -0
  73. data/syntax/php.syntax +672 -379
  74. data/syntax/pmwiki.syntax +113 -0
  75. data/syntax/property_list.syntax +4 -14
  76. data/syntax/python.syntax +17 -14
  77. data/syntax/release_notes.syntax +12 -3
  78. data/syntax/ruby_experimental.syntax +8 -8
  79. data/syntax/standard_ml.syntax +79 -3
  80. data/syntax/twiki.syntax +2 -2
  81. data/syntax/txt2tags.syntax +18 -18
  82. data/syntax/xml.syntax +1 -0
  83. data/syntax/yaml.syntax +2 -2
  84. metadata +193 -194
  85. data/syntax/buggy/nemerle.yaml +0 -74
  86. data/syntax/gtd2_text.syntax +0 -31
  87. data/syntax/old/YAML.yaml +0 -160
  88. data/syntax/old/txt2tags.yaml +0 -139
@@ -36,7 +36,7 @@ pre.cobalt .Punctuation {
36
36
  color: #E1EFFF;
37
37
  }
38
38
  pre.cobalt .RawMarkup {
39
- background-color: #1A4562;
39
+ background-color: #74B9D3;
40
40
  }
41
41
  pre.cobalt .CssConstructorArgument {
42
42
  color: #EB939A;
@@ -48,8 +48,8 @@ pre.cobalt .Storage {
48
48
  color: #FFEE80;
49
49
  }
50
50
  pre.cobalt .line-numbers {
51
- background-color: #85533A;
52
- color: #FFFFFF;
51
+ background-color: #B36539;
52
+ color: #000000;
53
53
  }
54
54
  pre.cobalt .CssClass {
55
55
  color: #5FE461;
@@ -11,7 +11,7 @@ pre.dawn .Constant {
11
11
  color: #811F24;
12
12
  }
13
13
  pre.dawn .EmbeddedSource {
14
- background-color: #E1E5EC;
14
+ background-color: #829AC2;
15
15
  }
16
16
  pre.dawn .StringRegexpConstantCharacterEscape {
17
17
  font-weight: bold;
@@ -28,8 +28,8 @@ pre.dawn .Storage {
28
28
  font-style: italic;
29
29
  }
30
30
  pre.dawn .line-numbers {
31
- background-color: #CED8E9;
32
- color: #080808;
31
+ background-color: #7496CF;
32
+ color: #000000;
33
33
  }
34
34
  pre.dawn .StringConstant {
35
35
  font-weight: bold;
@@ -47,7 +47,7 @@ pre.dawn .SupportConstant {
47
47
  color: #B4371F;
48
48
  }
49
49
  pre.dawn .MarkupQuote {
50
- background-color: #EAEAEA;
50
+ background-color: #C5C5C5;
51
51
  color: #0B6125;
52
52
  font-style: italic;
53
53
  }
@@ -64,7 +64,7 @@ pre.dawn .MarkupDeleted {
64
64
  color: #B52A1D;
65
65
  }
66
66
  pre.dawn .MarkupRaw {
67
- background-color: #EAEAEA;
67
+ background-color: #C5C5C5;
68
68
  color: #234A97;
69
69
  }
70
70
  pre.dawn .SupportFunction {
@@ -77,7 +77,7 @@ pre.dawn .StringRegexp {
77
77
  color: #CF5628;
78
78
  }
79
79
  pre.dawn .StringEmbeddedSource {
80
- background-color: #E1E5EC;
80
+ background-color: #829AC2;
81
81
  color: #080808;
82
82
  }
83
83
  pre.dawn .MarkupLink {
@@ -1,5 +1,5 @@
1
1
  pre.eiffel .EmbeddedSource {
2
- background-color: #DBE7FD;
2
+ background-color: #6597F6;
3
3
  }
4
4
  pre.eiffel .LibraryObject {
5
5
  font-weight: bold;
@@ -1,5 +1,5 @@
1
1
  pre.espresso_libre .EmbeddedSource {
2
- background-color: #503A2D;
2
+ background-color: #CE9065;
3
3
  }
4
4
  pre.espresso_libre .LibraryObject {
5
5
  font-weight: bold;
@@ -30,7 +30,7 @@ pre.espresso_libre .LibraryVariable {
30
30
  }
31
31
  pre.espresso_libre .line-numbers {
32
32
  background-color: #C3DCFF;
33
- color: #BDAE9D;
33
+ color: #000000;
34
34
  }
35
35
  pre.espresso_libre .FunctionParameter {
36
36
  font-style: italic;
@@ -32,7 +32,7 @@ pre.iplastic .line-numbers {
32
32
  color: #000000;
33
33
  }
34
34
  pre.iplastic {
35
- background-color: #EEEEED;
35
+ background-color: #EEEEEE;
36
36
  color: #000000;
37
37
  }
38
38
  pre.iplastic .FrameTitle {
@@ -52,14 +52,14 @@ pre.iplastic .XmlDeclaration {
52
52
  color: #333333;
53
53
  }
54
54
  pre.iplastic .TrailingWhitespace {
55
- background-color: #EEEEEB;
55
+ background-color: #EEEEEE;
56
56
  }
57
57
  pre.iplastic .TagAttribute {
58
58
  color: #3366CC;
59
59
  font-style: italic;
60
60
  }
61
61
  pre.iplastic .Invalid {
62
- background-color: #EBAEA9;
62
+ background-color: #E7342D;
63
63
  color: #FF0000;
64
64
  }
65
65
  pre.iplastic .Keyword {
@@ -1,5 +1,5 @@
1
1
  pre.mac_classic .EmbeddedSource {
2
- background-color: #F2F2F2;
2
+ background-color: #0C0C0C;
3
3
  }
4
4
  pre.mac_classic .LibraryObject {
5
5
  font-weight: bold;
@@ -32,7 +32,7 @@ pre.mac_classic .LibraryVariable {
32
32
  color: #21439C;
33
33
  }
34
34
  pre.mac_classic .line-numbers {
35
- background-color: #C4DCFF;
35
+ background-color: #4D97FF;
36
36
  color: #000000;
37
37
  }
38
38
  pre.mac_classic .FunctionParameter {
@@ -72,7 +72,7 @@ pre.mac_classic .MarkupXmlDeclaration {
72
72
  color: #68685B;
73
73
  }
74
74
  pre.mac_classic .EmbeddedEmbeddedSource {
75
- background-color: #F0F0F0;
75
+ background-color: #0E0E0E;
76
76
  }
77
77
  pre.mac_classic .PreprocessorDirective {
78
78
  font-weight: bold;
@@ -29,10 +29,10 @@ pre.magicwb_amiga .IncludeUser {
29
29
  color: #FFA995;
30
30
  }
31
31
  pre.magicwb_amiga .ObjectiveCMethodCall {
32
- font-style: italic;
32
+ color: #000000;
33
33
  }
34
34
  pre.magicwb_amiga .ConstantUserDefined {
35
- background-color: #7878AA;
35
+ background-color: #1D1DEA;
36
36
  color: #FFA995;
37
37
  }
38
38
  pre.magicwb_amiga .LibraryConstant {
@@ -56,6 +56,9 @@ pre.magicwb_amiga .MarkupListItem {
56
56
  pre.magicwb_amiga .FunctionArgument {
57
57
  font-style: italic;
58
58
  }
59
+ pre.magicwb_amiga .ObjectiveCMethodCall1 {
60
+ font-style: italic;
61
+ }
59
62
  pre.magicwb_amiga .MarkupQuoteDoubleEmail {
60
63
  color: #4C457E;
61
64
  }
@@ -82,7 +85,7 @@ pre.magicwb_amiga .Keyword {
82
85
  font-weight: bold;
83
86
  }
84
87
  pre.magicwb_amiga .String {
85
- background-color: #AA7878;
88
+ background-color: #EA1D1D;
86
89
  color: #FFFFFF;
87
90
  }
88
91
  pre.magicwb_amiga {
@@ -40,8 +40,8 @@ pre.pastels_on_dark .Comments {
40
40
  color: #555555;
41
41
  }
42
42
  pre.pastels_on_dark .line-numbers {
43
- background-color: #4A3B4E;
44
- color: #DADADA;
43
+ background-color: #73597E;
44
+ color: #FFFFFF;
45
45
  }
46
46
  pre.pastels_on_dark .PhpVariablesGlobals {
47
47
  color: #B72E1D;
@@ -14,7 +14,7 @@ pre.spacecadet .Storage {
14
14
  }
15
15
  pre.spacecadet .line-numbers {
16
16
  background-color: #40002F;
17
- color: #DDE6CF;
17
+ color: #FFFFFF;
18
18
  }
19
19
  pre.spacecadet {
20
20
  background-color: #0D0D0D;
@@ -33,8 +33,8 @@ pre.sunburst .Storage {
33
33
  color: #99CF50;
34
34
  }
35
35
  pre.sunburst .line-numbers {
36
- background-color: #2C2F32;
37
- color: #F8F8F8;
36
+ background-color: #DDF0FF;
37
+ color: #000000;
38
38
  }
39
39
  pre.sunburst .CssClass {
40
40
  color: #9B703F;
@@ -73,7 +73,7 @@ pre.sunburst .SupportConstant {
73
73
  color: #CF6A4C;
74
74
  }
75
75
  pre.sunburst .MarkupQuote {
76
- background-color: #110F0A;
76
+ background-color: #ECD091;
77
77
  color: #E1D4B9;
78
78
  font-style: italic;
79
79
  }
@@ -88,14 +88,14 @@ pre.sunburst .StringRegexpSpecial {
88
88
  color: #CF7D34;
89
89
  }
90
90
  pre.sunburst .EmbeddedSourceBright {
91
- background-color: #050505;
91
+ background-color: #ABADB4;
92
92
  }
93
93
  pre.sunburst .InvalidIllegal {
94
- background-color: #402140;
94
+ background-color: #150B15;
95
95
  color: #FD5FF1;
96
96
  }
97
97
  pre.sunburst .MarkupRaw {
98
- background-color: #050505;
98
+ background-color: #ABADB4;
99
99
  color: #578BB3;
100
100
  }
101
101
  pre.sunburst .SupportFunction {
@@ -149,7 +149,7 @@ pre.sunburst {
149
149
  color: #F8F8F8;
150
150
  }
151
151
  pre.sunburst .LogEntry {
152
- background-color: #262626;
152
+ background-color: #C7C7C7;
153
153
  }
154
154
  pre.sunburst .MarkupItalic {
155
155
  color: #E9C062;
@@ -21,7 +21,7 @@ pre.twilight .DiffChanged {
21
21
  color: #F8F8F8;
22
22
  }
23
23
  pre.twilight .EmbeddedSource {
24
- background-color: #202020;
24
+ background-color: #A3A6AD;
25
25
  }
26
26
  pre.twilight .Support {
27
27
  color: #9B859D;
@@ -36,8 +36,8 @@ pre.twilight .Storage {
36
36
  color: #F9EE98;
37
37
  }
38
38
  pre.twilight .line-numbers {
39
- background-color: #3C3F42;
40
- color: #F8F8F8;
39
+ background-color: #DDF0FF;
40
+ color: #000000;
41
41
  }
42
42
  pre.twilight .CssClass {
43
43
  color: #9B703F;
@@ -71,10 +71,10 @@ pre.twilight .StringRegexpSpecial {
71
71
  color: #CF7D34;
72
72
  }
73
73
  pre.twilight .EmbeddedSourceBright {
74
- background-color: #282829;
74
+ background-color: #9C9EA4;
75
75
  }
76
76
  pre.twilight .InvalidIllegal {
77
- background-color: #452645;
77
+ background-color: #241A24;
78
78
  color: #F8F8F8;
79
79
  }
80
80
  pre.twilight .SupportFunction {
@@ -1,7 +1,7 @@
1
1
  pre.zenburnesque .InheritedClass {
2
2
  }
3
3
  pre.zenburnesque .TypeName {
4
- color: #FFE000;
4
+ color: #F09040;
5
5
  }
6
6
  pre.zenburnesque .FloatingPointPrefixOperators {
7
7
  text-decoration: underline;
@@ -18,7 +18,7 @@ pre.zenburnesque .Storage {
18
18
  }
19
19
  pre.zenburnesque .line-numbers {
20
20
  background-color: #A0A0C0;
21
- color: #DEDEDE;
21
+ color: #000000;
22
22
  }
23
23
  pre.zenburnesque .LineNumberDirectives {
24
24
  text-decoration: underline;
@@ -56,6 +56,9 @@ pre.zenburnesque .FloatingPointNumbers {
56
56
  pre.zenburnesque .ClassTypeName {
57
57
  color: #F4A020;
58
58
  }
59
+ pre.zenburnesque .TypeName1 {
60
+ color: #FFE000;
61
+ }
59
62
  pre.zenburnesque .ModuleKeyword {
60
63
  font-weight: bold;
61
64
  color: #FF8000;
@@ -36,7 +36,7 @@ tags:
36
36
  selector: keyword.control.import
37
37
  - begin: <span class="FunctionName">
38
38
  end: </span>
39
- selector: entity.name.function, keyword.other.name-of-parameter.objc
39
+ selector: entity.name.function, support.function.any-method
40
40
  - begin: <span class="TypeName">
41
41
  end: </span>
42
42
  selector: entity.name.type
@@ -52,7 +52,7 @@ tags:
52
52
  - begin: <span class="ObjectiveCMethodCall">
53
53
  end: </span>
54
54
  selector: support.function.any-method
55
- - begin: <span class="ObjectiveCMethodCall">
55
+ - begin: <span class="ObjectiveCMethodCall1">
56
56
  end: </span>
57
57
  selector: support.function.any-method - punctuation
58
58
  - begin: <span class="LibraryConstant">
@@ -67,7 +67,7 @@ tags:
67
67
  - begin: <span class="FunctionName">
68
68
  end: </span>
69
69
  selector: entity.name.function
70
- - begin: <span class="TypeName">
70
+ - begin: <span class="TypeName1">
71
71
  end: </span>
72
72
  selector: storage.type.user-defined
73
73
  - begin: <span class="ClassTypeName">
@@ -5,14 +5,25 @@ fileTypes:
5
5
  scopeName: source.antlr
6
6
  repository:
7
7
  nested-curly:
8
+ name: source.embedded.java-or-c.antlr
9
+ captures:
10
+ "0":
11
+ name: punctuation.section.group.antlr
12
+ begin: \{
13
+ end: \}
8
14
  patterns:
9
- - captures:
10
- "0":
11
- name: punctuation.section.group.antlr
12
- begin: \{
13
- end: \}
14
- patterns:
15
- - include: "#nested-curly"
15
+ - name: keyword.control.java-or-c
16
+ match: \b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\b
17
+ - name: storage.type.java-or-c
18
+ match: \b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\b
19
+ - name: storage.modifier.java-or-c
20
+ match: \b(const|extern|register|restrict|static|volatile|inline)\b
21
+ - name: constant.language.java-or-c
22
+ match: \b(NULL|true|false|TRUE|FALSE)\b
23
+ - name: keyword.operator.sizeof.java-or-c
24
+ match: \b(sizeof)\b
25
+ - name: constant.numeric.java-or-c
26
+ 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|ll|LL|ull|ULL)?\b
16
27
  - name: string.quoted.double.java-or-c
17
28
  endCaptures:
18
29
  "0":
@@ -39,6 +50,7 @@ repository:
39
50
  match: \\.
40
51
  - name: support.constant.eof-char.antlr
41
52
  match: \bEOF_CHAR\b
53
+ - include: "#comments"
42
54
  comments:
43
55
  patterns:
44
56
  - name: comment.block.antlr
@@ -104,25 +116,36 @@ patterns:
104
116
  match: \b(k|charVocabulary|filter|greedy|paraphrase|exportVocab|buildAST|defaultErrorHandler|language|namespace|namespaceStd|namespaceAntlr|genHashLines)\b
105
117
  - name: constant.language.boolean.antlr
106
118
  match: \b(true|false)\b
107
- - name: keyword.control.label.antlr
108
- match: ^\w+\s*(:|\s*$)
119
+ - name: meta.definition.class.antlr
120
+ captures:
121
+ "1":
122
+ name: storage.type.antlr
123
+ "2":
124
+ name: entity.name.type.class.antlr
125
+ begin: ^(class)\b\s+(\w+)
126
+ end: ;
127
+ patterns:
128
+ - name: meta.definition.class.extends.antlr
129
+ captures:
130
+ "1":
131
+ name: storage.modifier.antlr
132
+ begin: \b(extends)\b\s+
133
+ end: (?=;)
134
+ patterns:
135
+ - name: support.class.antlr
136
+ match: \b(Parser|Lexer|TreeWalker)\b
137
+ - name: storage.modifier.antlr
138
+ match: ^protected\b
139
+ - name: entity.name.type.token.antlr
140
+ match: ^[[:upper:]_][[:upper:][:digit:]_]*\b
141
+ - name: meta.rule.antlr
142
+ captures:
143
+ "1":
144
+ name: entity.name.function.rule.antlr
145
+ "2":
146
+ name: keyword.control.antlr
147
+ match: ^(\w+)(?:\s+(returns\b))?
109
148
  - name: constant.other.token.antlr
110
149
  match: \b[[:upper:]_][[:upper:][:digit:]_]*\b
111
- - name: source.embedded.java-or-c.antlr
112
- endCaptures:
113
- "0":
114
- name: punctuation.section.embedded.end.antlr
115
- begin: \{
116
- beginCaptures:
117
- "0":
118
- name: punctuation.section.embedded.begin.antlr
119
- end: \}
120
- patterns:
121
- - include: "#nested-curly"
122
- - name: storage.type.class.antlr
123
- match: \bclass\b
124
- - name: storage.modifier.extends.antlr
125
- match: \bextends\b
126
- - name: support.class.antlr
127
- match: \b(Parser|Lexer|TreeWalker)\b
150
+ - include: "#nested-curly"
128
151
  keyEquivalent: ^~A
@@ -27,6 +27,21 @@ patterns:
27
27
  "1":
28
28
  name: punctuation.definition.comment.apache-config
29
29
  match: (#).*$\n?
30
+ - name: meta.tag.any.html
31
+ captures:
32
+ "6":
33
+ name: punctuation.definition.tag.apache-config
34
+ "1":
35
+ name: punctuation.definition.tag.apache-config
36
+ "2":
37
+ name: entity.name.tag.apache-config
38
+ "3":
39
+ name: punctuation.definition.tag.apache-config
40
+ "4":
41
+ name: meta.scope.between-tag-pair.apache-config
42
+ "5":
43
+ name: entity.name.tag.apache-config
44
+ match: ^[ ]*(<)([a-zA-Z0-9:]+)[^>]*(>(<)/)(\2)(>)
30
45
  - name: meta.vhost.apache-config
31
46
  endCaptures:
32
47
  "1":
@@ -71,7 +86,7 @@ patterns:
71
86
  "3":
72
87
  name: entity.name.tag.apache-config
73
88
  "4":
74
- name: meta.toc-list.virtual-host.apache-config
89
+ name: meta.toc-list.directory.apache-config
75
90
  "5":
76
91
  name: punctuation.definition.tag.apache-config
77
92
  end: ^[ ]*((</)(Directory(?:Match)?)[^>]*(>))
@@ -96,7 +111,7 @@ patterns:
96
111
  "3":
97
112
  name: entity.name.tag.apache-config
98
113
  "4":
99
- name: meta.toc-list.virtual-host.apache-config
114
+ name: meta.toc-list.location.apache-config
100
115
  "5":
101
116
  name: punctuation.definition.tag.apache-config
102
117
  end: ^[ ]*((</)(Location(?:Match)?)[^>]*(>))