rouge 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rouge.rb +8 -0
- data/lib/rouge/cli.rb +6 -2
- data/lib/rouge/formatter.rb +13 -0
- data/lib/rouge/formatters/html.rb +2 -0
- data/lib/rouge/formatters/terminal256.rb +152 -0
- data/lib/rouge/lexer.rb +31 -49
- data/lib/rouge/lexers/erb.rb +54 -0
- data/lib/rouge/lexers/haskell.rb +7 -0
- data/lib/rouge/lexers/html.rb +20 -2
- data/lib/rouge/lexers/make.rb +105 -0
- data/lib/rouge/lexers/perl.rb +196 -0
- data/lib/rouge/lexers/php.rb +145 -0
- data/lib/rouge/lexers/php/builtins.rb +196 -0
- data/lib/rouge/lexers/ruby.rb +25 -10
- data/lib/rouge/lexers/scheme.rb +2 -2
- data/lib/rouge/lexers/shell.rb +16 -2
- data/lib/rouge/lexers/tex.rb +71 -0
- data/lib/rouge/theme.rb +21 -2
- data/lib/rouge/themes/colorful.rb +1 -1
- data/lib/rouge/themes/thankful_eyes.rb +4 -3
- data/lib/rouge/version.rb +1 -1
- metadata +9 -2
@@ -23,6 +23,7 @@ module Rouge
|
|
23
23
|
style 'Text', :fg => :unicorn, :bg => :krasna
|
24
24
|
|
25
25
|
style 'Comment', :fg => :cool_as_ice, :italic => true
|
26
|
+
style 'Comment.Preproc', :fg => :go_get_it, :bold => true, :italic => true
|
26
27
|
style 'Error',
|
27
28
|
'Generic.Error', :fg => :aluminum1, :bg => :scarletred2
|
28
29
|
style 'Keyword', :fg => :sandy, :bold => true
|
@@ -43,6 +44,7 @@ module Rouge
|
|
43
44
|
'Name.Class',
|
44
45
|
'Name.Decorator',
|
45
46
|
'Name.Namespace',
|
47
|
+
'Name.Label',
|
46
48
|
'Name.Builtin.Pseudo',
|
47
49
|
'Name.Exception',
|
48
50
|
'Name.Tag', :fg => :go_get_it, :bold => true
|
@@ -55,10 +57,9 @@ module Rouge
|
|
55
57
|
style 'Name.Builtin', :fg => :sandy
|
56
58
|
style 'Name.Entity', :fg => '#999999', :bold => true
|
57
59
|
style 'Text.Whitespace', :fg => '#BBBBBB'
|
58
|
-
style 'Name.
|
59
|
-
'Name.Function',
|
60
|
-
'Name.Label',
|
60
|
+
style 'Name.Function',
|
61
61
|
'Name.Attribute', :fg => :chilly
|
62
|
+
style 'Name.Variable', :fg => :chilly, :bold => true
|
62
63
|
end
|
63
64
|
end
|
64
65
|
end
|
data/lib/rouge/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rouge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -38,17 +38,23 @@ files:
|
|
38
38
|
- Gemfile
|
39
39
|
- lib/rouge/lexers/python.rb
|
40
40
|
- lib/rouge/lexers/common_lisp.rb
|
41
|
+
- lib/rouge/lexers/erb.rb
|
41
42
|
- lib/rouge/lexers/scheme.rb
|
42
43
|
- lib/rouge/lexers/xml.rb
|
43
44
|
- lib/rouge/lexers/shell.rb
|
44
45
|
- lib/rouge/lexers/ruby.rb
|
46
|
+
- lib/rouge/lexers/make.rb
|
47
|
+
- lib/rouge/lexers/perl.rb
|
45
48
|
- lib/rouge/lexers/javascript.rb
|
46
49
|
- lib/rouge/lexers/diff.rb
|
50
|
+
- lib/rouge/lexers/php/builtins.rb
|
47
51
|
- lib/rouge/lexers/haskell.rb
|
48
52
|
- lib/rouge/lexers/c.rb
|
53
|
+
- lib/rouge/lexers/tex.rb
|
49
54
|
- lib/rouge/lexers/text.rb
|
50
55
|
- lib/rouge/lexers/html.rb
|
51
56
|
- lib/rouge/lexers/java.rb
|
57
|
+
- lib/rouge/lexers/php.rb
|
52
58
|
- lib/rouge/lexers/tcl.rb
|
53
59
|
- lib/rouge/lexers/css.rb
|
54
60
|
- lib/rouge/lexers/cpp.rb
|
@@ -58,6 +64,7 @@ files:
|
|
58
64
|
- lib/rouge/themes/base16.rb
|
59
65
|
- lib/rouge/token.rb
|
60
66
|
- lib/rouge/formatters/html.rb
|
67
|
+
- lib/rouge/formatters/terminal256.rb
|
61
68
|
- lib/rouge/text_analyzer.rb
|
62
69
|
- lib/rouge/version.rb
|
63
70
|
- lib/rouge/formatter.rb
|