Sha256: ace7286178badbd10111adcff05aa6ab9fd5e7ef63de3a73ff80c42037bba829

Contents?: true

Size: 1.68 KB

Versions: 20

Compression:

Stored size: 1.68 KB

Contents

[
 {
  "state": "start",
  "data": [
   [ "comment", "#!/usr/bin/ruby" ]
  ]
 },
 {
  "state": "start",
  "data": []
 },
 {
  "state": "start",
  "data": [
   [ "comment", "# Program to find the factorial of a number" ]
  ]
 },
 {
  "state": "start",
  "data": [
   [ "keyword", "def" ],
   [ "text", " " ],
   [ "identifier", "fact" ],
   [ "paren.lparen", "(" ],
   [ "identifier", "n" ],
   [ "paren.rparen", ")" ]
  ]
 },
 {
  "state": "start",
  "data": [
   [ "text", "    " ],
   [ "keyword", "if" ],
   [ "text", " " ],
   [ "identifier", "n" ],
   [ "text", " " ],
   [ "keyword.operator", "==" ],
   [ "text", " " ],
   [ "constant.numeric", "0" ]
  ]
 },
 {
  "state": "start",
  "data": [
   [ "text", "        " ],
   [ "constant.numeric", "1" ]
  ]
 },
 {
  "state": "start",
  "data": [
   [ "text", "    " ],
   [ "keyword", "else" ]
  ]
 },
 {
  "state": "start",
  "data": [
   [ "text", "        " ],
   [ "identifier", "n" ],
   [ "text", " " ],
   [ "keyword.operator", "*" ],
   [ "text", " " ],
   [ "identifier", "fact" ],
   [ "paren.lparen", "(" ],
   [ "identifier", "n" ],
   [ "constant.numeric", "-1" ],
   [ "paren.rparen", ")" ]
  ]
 },
 {
  "state": "start",
  "data": [
   [ "text", "    " ],
   [ "keyword", "end" ]
  ]
 },
 {
  "state": "start",
  "data": [
   [ "keyword", "end" ]
  ]
 },
 {
  "state": "start",
  "data": []
 },
 {
  "state": "start",
  "data": [
   [ "support.function", "puts" ],
   [ "text", " " ],
   [ "identifier", "fact" ],
   [ "paren.lparen", "(" ],
   [ "variable.class", "ARGV" ],
   [ "paren.lparen", "[" ],
   [ "constant.numeric", "0" ],
   [ "paren.rparen", "]" ],
   [ "text", "." ],
   [ "identifier", "to_i" ],
   [ "paren.rparen", ")" ]
  ]
 }
]

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
gollum-3.1.2 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-3.1.1 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-3.1.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-3.0.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.7.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.6.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.5.2 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.5.1 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.5.0 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.15 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.14 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.13 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.12 lib/gollum/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.11 lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.10 lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.9 lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.8 lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.7 lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.6 lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json
gollum-2.4.5 lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/mode/_test/tokens_ruby.json