rouge 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rouge.rb +3 -0
  3. data/lib/rouge/cli.rb +2 -0
  4. data/lib/rouge/formatter.rb +2 -0
  5. data/lib/rouge/formatters/html.rb +2 -0
  6. data/lib/rouge/formatters/null.rb +2 -0
  7. data/lib/rouge/formatters/terminal256.rb +2 -0
  8. data/lib/rouge/lexer.rb +4 -1
  9. data/lib/rouge/lexers/apple_script.rb +1 -1
  10. data/lib/rouge/lexers/c.rb +2 -0
  11. data/lib/rouge/lexers/clojure.rb +2 -0
  12. data/lib/rouge/lexers/coffeescript.rb +2 -0
  13. data/lib/rouge/lexers/common_lisp.rb +1 -2
  14. data/lib/rouge/lexers/conf.rb +2 -0
  15. data/lib/rouge/lexers/cpp.rb +2 -0
  16. data/lib/rouge/lexers/csharp.rb +2 -0
  17. data/lib/rouge/lexers/css.rb +2 -0
  18. data/lib/rouge/lexers/diff.rb +2 -0
  19. data/lib/rouge/lexers/elixir.rb +2 -0
  20. data/lib/rouge/lexers/erb.rb +2 -0
  21. data/lib/rouge/lexers/erlang.rb +2 -0
  22. data/lib/rouge/lexers/factor.rb +2 -0
  23. data/lib/rouge/lexers/gherkin/keywords.rb +4 -4
  24. data/lib/rouge/lexers/go.rb +2 -0
  25. data/lib/rouge/lexers/groovy.rb +2 -0
  26. data/lib/rouge/lexers/haml.rb +2 -0
  27. data/lib/rouge/lexers/handlebars.rb +2 -0
  28. data/lib/rouge/lexers/haskell.rb +2 -0
  29. data/lib/rouge/lexers/html.rb +2 -0
  30. data/lib/rouge/lexers/http.rb +2 -0
  31. data/lib/rouge/lexers/ini.rb +2 -0
  32. data/lib/rouge/lexers/io.rb +2 -0
  33. data/lib/rouge/lexers/java.rb +2 -0
  34. data/lib/rouge/lexers/javascript.rb +2 -0
  35. data/lib/rouge/lexers/literate_coffeescript.rb +2 -0
  36. data/lib/rouge/lexers/literate_haskell.rb +2 -0
  37. data/lib/rouge/lexers/llvm.rb +2 -0
  38. data/lib/rouge/lexers/lua/builtins.rb +2 -1
  39. data/lib/rouge/lexers/make.rb +2 -0
  40. data/lib/rouge/lexers/markdown.rb +2 -0
  41. data/lib/rouge/lexers/matlab.rb +2 -0
  42. data/lib/rouge/lexers/matlab/builtins.rb +2 -1
  43. data/lib/rouge/lexers/nginx.rb +2 -0
  44. data/lib/rouge/lexers/objective_c.rb +2 -0
  45. data/lib/rouge/lexers/ocaml.rb +2 -0
  46. data/lib/rouge/lexers/perl.rb +2 -0
  47. data/lib/rouge/lexers/php.rb +2 -0
  48. data/lib/rouge/lexers/php/builtins.rb +9 -7
  49. data/lib/rouge/lexers/plain_text.rb +2 -0
  50. data/lib/rouge/lexers/prolog.rb +2 -0
  51. data/lib/rouge/lexers/properties.rb +2 -0
  52. data/lib/rouge/lexers/puppet.rb +2 -0
  53. data/lib/rouge/lexers/python.rb +2 -0
  54. data/lib/rouge/lexers/qml.rb +3 -1
  55. data/lib/rouge/lexers/r.rb +2 -0
  56. data/lib/rouge/lexers/racket.rb +1 -1
  57. data/lib/rouge/lexers/ruby.rb +66 -34
  58. data/lib/rouge/lexers/rust.rb +4 -0
  59. data/lib/rouge/lexers/sass.rb +2 -0
  60. data/lib/rouge/lexers/sass/common.rb +2 -0
  61. data/lib/rouge/lexers/scheme.rb +2 -0
  62. data/lib/rouge/lexers/scss.rb +2 -0
  63. data/lib/rouge/lexers/sed.rb +2 -0
  64. data/lib/rouge/lexers/shell.rb +2 -0
  65. data/lib/rouge/lexers/smalltalk.rb +2 -0
  66. data/lib/rouge/lexers/sml.rb +2 -0
  67. data/lib/rouge/lexers/sql.rb +2 -0
  68. data/lib/rouge/lexers/swift.rb +1 -1
  69. data/lib/rouge/lexers/tcl.rb +2 -0
  70. data/lib/rouge/lexers/tex.rb +2 -0
  71. data/lib/rouge/lexers/toml.rb +2 -0
  72. data/lib/rouge/lexers/vb.rb +2 -0
  73. data/lib/rouge/lexers/viml.rb +2 -0
  74. data/lib/rouge/lexers/viml/keywords.rb +3 -2
  75. data/lib/rouge/lexers/xml.rb +2 -0
  76. data/lib/rouge/lexers/yaml.rb +2 -0
  77. data/lib/rouge/plugins/redcarpet.rb +2 -0
  78. data/lib/rouge/regex_lexer.rb +2 -0
  79. data/lib/rouge/template_lexer.rb +2 -0
  80. data/lib/rouge/text_analyzer.rb +2 -0
  81. data/lib/rouge/theme.rb +2 -0
  82. data/lib/rouge/themes/base16.rb +2 -0
  83. data/lib/rouge/themes/colorful.rb +2 -0
  84. data/lib/rouge/themes/github.rb +2 -0
  85. data/lib/rouge/themes/monokai.rb +2 -71
  86. data/lib/rouge/themes/monokai_sublime.rb +90 -0
  87. data/lib/rouge/themes/thankful_eyes.rb +2 -0
  88. data/lib/rouge/token.rb +2 -0
  89. data/lib/rouge/util.rb +2 -0
  90. data/lib/rouge/version.rb +3 -1
  91. metadata +3 -2
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8 -*- #
2
+
1
3
  module Rouge
2
4
  module Themes
3
5
  # default base16 theme
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8 -*- #
2
+
1
3
  module Rouge
2
4
  module Themes
3
5
  # stolen from pygments
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8 -*- #
2
+
1
3
  module Rouge
2
4
  module Themes
3
5
  class Github < CSSTheme
@@ -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
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8 -*- #
2
+
1
3
  module Rouge
2
4
  module Themes
3
5
  class ThankfulEyes < CSSTheme
data/lib/rouge/token.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8 -*- #
2
+
1
3
  module Rouge
2
4
  class Token
3
5
  class << self
data/lib/rouge/util.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # -*- coding: utf-8 -*- #
2
+
1
3
  module Rouge
2
4
  class InheritableHash < Hash
3
5
  def initialize(parent=nil)
data/lib/rouge/version.rb CHANGED
@@ -1,5 +1,7 @@
1
+ # -*- coding: utf-8 -*- #
2
+
1
3
  module Rouge
2
4
  def self.version
3
- "1.5.0"
5
+ "1.5.1"
4
6
  end
5
7
  end
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.0
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-12 00:00:00.000000000 Z
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