rouge 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,8 @@
1
+ #include "ruby/ruby.h"
2
+
3
+ static int
4
+ clone_method_i(st_data_t key, st_data_t value, st_data_t data)
5
+ {
6
+ clone_method((VALUE)data, (ID)key, (const rb_method_entry_t *)value);
7
+ return ST_CONTINUE;
8
+ }
@@ -0,0 +1,5 @@
1
+ (defn make-adder [x]
2
+ (let [y x]
3
+ (fn [z] (+ y z))))
4
+ (def add2 (make-adder 2))
5
+ (add2 4)
@@ -0,0 +1,5 @@
1
+ # Objects:
2
+ math =
3
+ root: Math.sqrt
4
+ square: square
5
+ cube: (x) -> x * square x
@@ -0,0 +1 @@
1
+ (defun square (x) (* x x))
@@ -0,0 +1,8 @@
1
+ #include<iostream>
2
+
3
+ using namespace std;
4
+
5
+ int main()
6
+ {
7
+ cout << "Hello World" << endl;
8
+ }
@@ -0,0 +1,4 @@
1
+ body {
2
+ font-size: 12pt;
3
+ background: #fff url(temp.png) top left no-repeat;
4
+ }
@@ -0,0 +1,7 @@
1
+ --- file1 2012-10-16 15:07:58.086886874 +0100
2
+ +++ file2 2012-10-16 15:08:07.642887236 +0100
3
+ @@ -1,3 +1,3 @@
4
+ a b c
5
+ -d e f
6
+ +D E F
7
+ g h i
@@ -0,0 +1 @@
1
+ <title><%= @title %></title>
@@ -0,0 +1,5 @@
1
+ USING: io kernel sequences ;
2
+
3
+ 4 iota [
4
+ "Happy Birthday " write 2 = "dear NAME" "to You" ? print
5
+ ] each
@@ -0,0 +1,9 @@
1
+ class Greet {
2
+ def name
3
+ Greet(who) { name = who[0].toUpperCase() +
4
+ who[1..-1] }
5
+ def salute() { println "Hello $name!" }
6
+ }
7
+
8
+ g = new Greet('world') // create object
9
+ g.salute() // output "Hello World!"
@@ -0,0 +1,5 @@
1
+ %section.container
2
+ %h1= post.title
3
+ %h2= post.subtitle
4
+ .content
5
+ = post.content
@@ -0,0 +1,7 @@
1
+ <div class="entry">
2
+ <h1>{{title}}</h1>
3
+ {{#with story}}
4
+ <div class="intro">{{{intro}}}</div>
5
+ <div class="body">{{{body}}}</div>
6
+ {{/with}}
7
+ </div>
@@ -0,0 +1,6 @@
1
+ quicksort :: Ord a => [a] -> [a]
2
+ quicksort [] = []
3
+ quicksort (p:xs) = (quicksort lesser) ++ [p] ++ (quicksort greater)
4
+ where
5
+ lesser = filter (< p) xs
6
+ greater = filter (>= p) xs
@@ -0,0 +1,8 @@
1
+ <html>
2
+ <head><title>Title!</title></head>
3
+ <body>
4
+ <p id="foo">Hello, World!</p>
5
+ <script type="text/javascript">var a = 1;</script>
6
+ <style type="text/css">#foo { font-weight: bold; }</style>
7
+ </body>
8
+ </html>
@@ -0,0 +1,5 @@
1
+ public class java {
2
+ public static void main(String[] args) {
3
+ System.out.println("Hello World");
4
+ }
5
+ }
@@ -0,0 +1 @@
1
+ $(document).ready(function() { alert('ready!'); });
@@ -0,0 +1 @@
1
+ { "one": 1, "two": 2 }
@@ -0,0 +1,6 @@
1
+ .PHONY: all
2
+ all: $(OBJ)
3
+
4
+ $(OBJ): $(SOURCE)
5
+ @echo "compiling..."
6
+ $(GCC) $(CFLAGS) $< > $@
@@ -0,0 +1,4 @@
1
+ Markdown has cool [reference links][ref 1]
2
+ and [regular links too](http://example.com)
3
+
4
+ [ref 1]: http://example.com
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env perl
2
+ use warnings;
3
+ print "a: ";
4
+ my $a = "foo";
5
+ print $a;
@@ -0,0 +1,3 @@
1
+ <?php
2
+ print("Hello {$world}");
3
+ ?>
@@ -0,0 +1,6 @@
1
+ def fib(n): # write Fibonacci series up to n
2
+ """Print a Fibonacci series up to n."""
3
+ a, b = 0, 1
4
+ while a < n:
5
+ print a,
6
+ a, b = b, a+b
@@ -0,0 +1,9 @@
1
+ class Greeter
2
+ def initialize(name = "World")
3
+ @name = name
4
+ end
5
+
6
+ def say_hi
7
+ puts "Hi #{@name}!"
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ @for $i from 1 through 3
2
+ .item-#{$i}
3
+ width: 2em * $i
@@ -0,0 +1,4 @@
1
+ (define Y
2
+ (lambda (m)
3
+ ((lambda (f) (m (lambda (a) ((f f) a))))
4
+ (lambda (f) (m (lambda (a) ((f f) a)))))))
@@ -0,0 +1,5 @@
1
+ @for $i from 1 through 3 {
2
+ .item-#{$i} {
3
+ width: 2em * $i;
4
+ }
5
+ }
@@ -0,0 +1,2 @@
1
+ # If not running interactively, don't do anything
2
+ [[ -z "$PS1" ]] && return
@@ -0,0 +1,6 @@
1
+ quadMultiply: i1 and: i2
2
+ "This method multiplies the given numbers by each other
3
+ and the result by 4."
4
+ | mul |
5
+ mul := i1 * i2.
6
+ ^mul * 4
@@ -0,0 +1 @@
1
+ SELECT * FROM `users` WHERE `user`.`id` = 1
@@ -0,0 +1 @@
1
+ proc cross_sum {s} {expr [join [split $s ""] +]}
@@ -0,0 +1 @@
1
+ To write \LaTeX\ you would type \verb:\LaTeX:.
@@ -0,0 +1 @@
1
+ plain text :)
@@ -0,0 +1,5 @@
1
+ set encoding=utf-8
2
+
3
+ filetype off
4
+ call pathogen#runtime_append_all_bundles()
5
+ filetype plugin indent on
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <xsl:template match="/"></xsl:template>
@@ -0,0 +1,4 @@
1
+ ---
2
+ one: Mark McGwire
3
+ two: Sammy Sosa
4
+ three: Ken Griffey
@@ -1,5 +1,5 @@
1
1
  module Rouge
2
2
  def self.version
3
- "0.2.4"
3
+ "0.2.5"
4
4
  end
5
5
  end
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.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,6 +90,41 @@ files:
90
90
  - lib/rouge/theme.rb
91
91
  - lib/rouge.rb
92
92
  - bin/rougify
93
+ - lib/rouge/demos/coffeescript
94
+ - lib/rouge/demos/haml
95
+ - lib/rouge/demos/smalltalk
96
+ - lib/rouge/demos/html
97
+ - lib/rouge/demos/clojure
98
+ - lib/rouge/demos/cpp
99
+ - lib/rouge/demos/scss
100
+ - lib/rouge/demos/xml
101
+ - lib/rouge/demos/haskell
102
+ - lib/rouge/demos/factor
103
+ - lib/rouge/demos/erb
104
+ - lib/rouge/demos/sass
105
+ - lib/rouge/demos/tex
106
+ - lib/rouge/demos/scheme
107
+ - lib/rouge/demos/diff
108
+ - lib/rouge/demos/markdown
109
+ - lib/rouge/demos/javascript
110
+ - lib/rouge/demos/json
111
+ - lib/rouge/demos/css
112
+ - lib/rouge/demos/ruby
113
+ - lib/rouge/demos/php
114
+ - lib/rouge/demos/shell
115
+ - lib/rouge/demos/make
116
+ - lib/rouge/demos/java
117
+ - lib/rouge/demos/yaml
118
+ - lib/rouge/demos/sql
119
+ - lib/rouge/demos/groovy
120
+ - lib/rouge/demos/tcl
121
+ - lib/rouge/demos/c
122
+ - lib/rouge/demos/perl
123
+ - lib/rouge/demos/text
124
+ - lib/rouge/demos/viml
125
+ - lib/rouge/demos/handlebars
126
+ - lib/rouge/demos/python
127
+ - lib/rouge/demos/common_lisp
93
128
  homepage: http://github.com/jayferd/rouge
94
129
  licenses: []
95
130
  post_install_message: