rouge 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rouge.rb +3 -0
- data/lib/rouge/cli.rb +2 -0
- data/lib/rouge/formatter.rb +2 -0
- data/lib/rouge/formatters/html.rb +2 -0
- data/lib/rouge/formatters/null.rb +2 -0
- data/lib/rouge/formatters/terminal256.rb +2 -0
- data/lib/rouge/lexer.rb +4 -1
- data/lib/rouge/lexers/apple_script.rb +1 -1
- data/lib/rouge/lexers/c.rb +2 -0
- data/lib/rouge/lexers/clojure.rb +2 -0
- data/lib/rouge/lexers/coffeescript.rb +2 -0
- data/lib/rouge/lexers/common_lisp.rb +1 -2
- data/lib/rouge/lexers/conf.rb +2 -0
- data/lib/rouge/lexers/cpp.rb +2 -0
- data/lib/rouge/lexers/csharp.rb +2 -0
- data/lib/rouge/lexers/css.rb +2 -0
- data/lib/rouge/lexers/diff.rb +2 -0
- data/lib/rouge/lexers/elixir.rb +2 -0
- data/lib/rouge/lexers/erb.rb +2 -0
- data/lib/rouge/lexers/erlang.rb +2 -0
- data/lib/rouge/lexers/factor.rb +2 -0
- data/lib/rouge/lexers/gherkin/keywords.rb +4 -4
- data/lib/rouge/lexers/go.rb +2 -0
- data/lib/rouge/lexers/groovy.rb +2 -0
- data/lib/rouge/lexers/haml.rb +2 -0
- data/lib/rouge/lexers/handlebars.rb +2 -0
- data/lib/rouge/lexers/haskell.rb +2 -0
- data/lib/rouge/lexers/html.rb +2 -0
- data/lib/rouge/lexers/http.rb +2 -0
- data/lib/rouge/lexers/ini.rb +2 -0
- data/lib/rouge/lexers/io.rb +2 -0
- data/lib/rouge/lexers/java.rb +2 -0
- data/lib/rouge/lexers/javascript.rb +2 -0
- data/lib/rouge/lexers/literate_coffeescript.rb +2 -0
- data/lib/rouge/lexers/literate_haskell.rb +2 -0
- data/lib/rouge/lexers/llvm.rb +2 -0
- data/lib/rouge/lexers/lua/builtins.rb +2 -1
- data/lib/rouge/lexers/make.rb +2 -0
- data/lib/rouge/lexers/markdown.rb +2 -0
- data/lib/rouge/lexers/matlab.rb +2 -0
- data/lib/rouge/lexers/matlab/builtins.rb +2 -1
- data/lib/rouge/lexers/nginx.rb +2 -0
- data/lib/rouge/lexers/objective_c.rb +2 -0
- data/lib/rouge/lexers/ocaml.rb +2 -0
- data/lib/rouge/lexers/perl.rb +2 -0
- data/lib/rouge/lexers/php.rb +2 -0
- data/lib/rouge/lexers/php/builtins.rb +9 -7
- data/lib/rouge/lexers/plain_text.rb +2 -0
- data/lib/rouge/lexers/prolog.rb +2 -0
- data/lib/rouge/lexers/properties.rb +2 -0
- data/lib/rouge/lexers/puppet.rb +2 -0
- data/lib/rouge/lexers/python.rb +2 -0
- data/lib/rouge/lexers/qml.rb +3 -1
- data/lib/rouge/lexers/r.rb +2 -0
- data/lib/rouge/lexers/racket.rb +1 -1
- data/lib/rouge/lexers/ruby.rb +66 -34
- data/lib/rouge/lexers/rust.rb +4 -0
- data/lib/rouge/lexers/sass.rb +2 -0
- data/lib/rouge/lexers/sass/common.rb +2 -0
- data/lib/rouge/lexers/scheme.rb +2 -0
- data/lib/rouge/lexers/scss.rb +2 -0
- data/lib/rouge/lexers/sed.rb +2 -0
- data/lib/rouge/lexers/shell.rb +2 -0
- data/lib/rouge/lexers/smalltalk.rb +2 -0
- data/lib/rouge/lexers/sml.rb +2 -0
- data/lib/rouge/lexers/sql.rb +2 -0
- data/lib/rouge/lexers/swift.rb +1 -1
- data/lib/rouge/lexers/tcl.rb +2 -0
- data/lib/rouge/lexers/tex.rb +2 -0
- data/lib/rouge/lexers/toml.rb +2 -0
- data/lib/rouge/lexers/vb.rb +2 -0
- data/lib/rouge/lexers/viml.rb +2 -0
- data/lib/rouge/lexers/viml/keywords.rb +3 -2
- data/lib/rouge/lexers/xml.rb +2 -0
- data/lib/rouge/lexers/yaml.rb +2 -0
- data/lib/rouge/plugins/redcarpet.rb +2 -0
- data/lib/rouge/regex_lexer.rb +2 -0
- data/lib/rouge/template_lexer.rb +2 -0
- data/lib/rouge/text_analyzer.rb +2 -0
- data/lib/rouge/theme.rb +2 -0
- data/lib/rouge/themes/base16.rb +2 -0
- data/lib/rouge/themes/colorful.rb +2 -0
- data/lib/rouge/themes/github.rb +2 -0
- data/lib/rouge/themes/monokai.rb +2 -71
- data/lib/rouge/themes/monokai_sublime.rb +90 -0
- data/lib/rouge/themes/thankful_eyes.rb +2 -0
- data/lib/rouge/token.rb +2 -0
- data/lib/rouge/util.rb +2 -0
- data/lib/rouge/version.rb +3 -1
- metadata +3 -2
data/lib/rouge/themes/base16.rb
CHANGED
data/lib/rouge/themes/github.rb
CHANGED
data/lib/rouge/themes/monokai.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# -*- coding: utf-8 -*- #
|
2
|
+
|
1
3
|
module Rouge
|
2
4
|
module Themes
|
3
5
|
class Monokai < CSSTheme
|
@@ -22,77 +24,6 @@ module Rouge
|
|
22
24
|
palette :orange => '#f6aa11'
|
23
25
|
palette :white => '#ffffff'
|
24
26
|
|
25
|
-
extend HasModes
|
26
|
-
|
27
|
-
def self.sublime!
|
28
|
-
mode! :sublime
|
29
|
-
end
|
30
|
-
|
31
|
-
def self.make_sublime!
|
32
|
-
style Generic::Heading, :fg => :grey
|
33
|
-
style Literal::String::Regex, :fg => :orange
|
34
|
-
style Generic::Output, :fg => :dark_grey
|
35
|
-
style Generic::Prompt, :fg => :emperor
|
36
|
-
style Generic::Strong, :bold => false
|
37
|
-
style Generic::Subheading, :fg => :light_grey
|
38
|
-
style Name::Builtin, :fg => :orange
|
39
|
-
style Comment::Multiline,
|
40
|
-
Comment::Preproc,
|
41
|
-
Comment::Single,
|
42
|
-
Comment::Special,
|
43
|
-
Comment, :fg => :dimgrey
|
44
|
-
style Error,
|
45
|
-
Generic::Error,
|
46
|
-
Generic::Traceback, :fg => :carmine
|
47
|
-
style Generic::Deleted,
|
48
|
-
Generic::Inserted,
|
49
|
-
Generic::Emph, :fg => :dark
|
50
|
-
style Keyword::Constant,
|
51
|
-
Keyword::Declaration,
|
52
|
-
Keyword::Reserved,
|
53
|
-
Name::Constant,
|
54
|
-
Keyword::Type, :fg => :soft_cyan
|
55
|
-
style Literal::Number::Float,
|
56
|
-
Literal::Number::Hex,
|
57
|
-
Literal::Number::Integer::Long,
|
58
|
-
Literal::Number::Integer,
|
59
|
-
Literal::Number::Oct,
|
60
|
-
Literal::Number,
|
61
|
-
Literal::String::Char,
|
62
|
-
Literal::String::Escape,
|
63
|
-
Literal::String::Symbol, :fg => :light_violet
|
64
|
-
style Literal::String::Doc,
|
65
|
-
Literal::String::Double,
|
66
|
-
Literal::String::Backtick,
|
67
|
-
Literal::String::Heredoc,
|
68
|
-
Literal::String::Interpol,
|
69
|
-
Literal::String::Other,
|
70
|
-
Literal::String::Single,
|
71
|
-
Literal::String, :fg => :soft_yellow
|
72
|
-
style Name::Attribute,
|
73
|
-
Name::Class,
|
74
|
-
Name::Decorator,
|
75
|
-
Name::Exception,
|
76
|
-
Name::Function, :fg => :bright_green
|
77
|
-
style Name::Variable::Class,
|
78
|
-
Name::Namespace,
|
79
|
-
Name::Label,
|
80
|
-
Name::Entity,
|
81
|
-
Name::Builtin::Pseudo,
|
82
|
-
Name::Variable::Global,
|
83
|
-
Name::Variable::Instance,
|
84
|
-
Name::Variable,
|
85
|
-
Text::Whitespace,
|
86
|
-
Text,
|
87
|
-
Name, :fg => :white
|
88
|
-
style Operator::Word,
|
89
|
-
Name::Tag,
|
90
|
-
Keyword,
|
91
|
-
Keyword::Namespace,
|
92
|
-
Keyword::Pseudo,
|
93
|
-
Operator, :fg => :bright_pink
|
94
|
-
end
|
95
|
-
|
96
27
|
style Comment,
|
97
28
|
Comment::Multiline,
|
98
29
|
Comment::Single, :fg => :dimgrey, :italic => true
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# -*- coding: utf-8 -*- #
|
2
|
+
module Rouge
|
3
|
+
module Themes
|
4
|
+
class MonokaiSublime < CSSTheme
|
5
|
+
name 'monokai.sublime'
|
6
|
+
|
7
|
+
palette :black => '#000000'
|
8
|
+
palette :bright_green => '#a6e22e'
|
9
|
+
palette :bright_pink => '#f92672'
|
10
|
+
palette :carmine => '#960050'
|
11
|
+
palette :dark => '#49483e'
|
12
|
+
palette :dark_grey => '#888888'
|
13
|
+
palette :dark_red => '#aa0000'
|
14
|
+
palette :dimgrey => '#75715e'
|
15
|
+
palette :emperor => '#555555'
|
16
|
+
palette :grey => '#999999'
|
17
|
+
palette :light_grey => '#aaaaaa'
|
18
|
+
palette :light_violet => '#ae81ff'
|
19
|
+
palette :soft_cyan => '#66d9ef'
|
20
|
+
palette :soft_yellow => '#e6db74'
|
21
|
+
palette :very_dark => '#1e0010'
|
22
|
+
palette :whitish => '#f8f8f2'
|
23
|
+
palette :orange => '#f6aa11'
|
24
|
+
palette :white => '#ffffff'
|
25
|
+
|
26
|
+
style Generic::Heading, :fg => :grey
|
27
|
+
style Literal::String::Regex, :fg => :orange
|
28
|
+
style Generic::Output, :fg => :dark_grey
|
29
|
+
style Generic::Prompt, :fg => :emperor
|
30
|
+
style Generic::Strong, :bold => false
|
31
|
+
style Generic::Subheading, :fg => :light_grey
|
32
|
+
style Name::Builtin, :fg => :orange
|
33
|
+
style Comment::Multiline,
|
34
|
+
Comment::Preproc,
|
35
|
+
Comment::Single,
|
36
|
+
Comment::Special,
|
37
|
+
Comment, :fg => :dimgrey
|
38
|
+
style Error,
|
39
|
+
Generic::Error,
|
40
|
+
Generic::Traceback, :fg => :carmine
|
41
|
+
style Generic::Deleted,
|
42
|
+
Generic::Inserted,
|
43
|
+
Generic::Emph, :fg => :dark
|
44
|
+
style Keyword::Constant,
|
45
|
+
Keyword::Declaration,
|
46
|
+
Keyword::Reserved,
|
47
|
+
Name::Constant,
|
48
|
+
Keyword::Type, :fg => :soft_cyan
|
49
|
+
style Literal::Number::Float,
|
50
|
+
Literal::Number::Hex,
|
51
|
+
Literal::Number::Integer::Long,
|
52
|
+
Literal::Number::Integer,
|
53
|
+
Literal::Number::Oct,
|
54
|
+
Literal::Number,
|
55
|
+
Literal::String::Char,
|
56
|
+
Literal::String::Escape,
|
57
|
+
Literal::String::Symbol, :fg => :light_violet
|
58
|
+
style Literal::String::Doc,
|
59
|
+
Literal::String::Double,
|
60
|
+
Literal::String::Backtick,
|
61
|
+
Literal::String::Heredoc,
|
62
|
+
Literal::String::Interpol,
|
63
|
+
Literal::String::Other,
|
64
|
+
Literal::String::Single,
|
65
|
+
Literal::String, :fg => :soft_yellow
|
66
|
+
style Name::Attribute,
|
67
|
+
Name::Class,
|
68
|
+
Name::Decorator,
|
69
|
+
Name::Exception,
|
70
|
+
Name::Function, :fg => :bright_green
|
71
|
+
style Name::Variable::Class,
|
72
|
+
Name::Namespace,
|
73
|
+
Name::Label,
|
74
|
+
Name::Entity,
|
75
|
+
Name::Builtin::Pseudo,
|
76
|
+
Name::Variable::Global,
|
77
|
+
Name::Variable::Instance,
|
78
|
+
Name::Variable,
|
79
|
+
Text::Whitespace,
|
80
|
+
Text,
|
81
|
+
Name, :fg => :white
|
82
|
+
style Operator::Word,
|
83
|
+
Name::Tag,
|
84
|
+
Keyword,
|
85
|
+
Keyword::Namespace,
|
86
|
+
Keyword::Pseudo,
|
87
|
+
Operator, :fg => :bright_pink
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
data/lib/rouge/token.rb
CHANGED
data/lib/rouge/util.rb
CHANGED
data/lib/rouge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rouge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Adkisson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rouge aims to a be a simple, easy-to-extend drop-in replacement for pygments.
|
14
14
|
email:
|
@@ -176,6 +176,7 @@ files:
|
|
176
176
|
- lib/rouge/themes/colorful.rb
|
177
177
|
- lib/rouge/themes/github.rb
|
178
178
|
- lib/rouge/themes/monokai.rb
|
179
|
+
- lib/rouge/themes/monokai_sublime.rb
|
179
180
|
- lib/rouge/themes/thankful_eyes.rb
|
180
181
|
- lib/rouge/token.rb
|
181
182
|
- lib/rouge/util.rb
|