rouge 3.26.0 → 3.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +6 -1
- data/lib/rouge/cli.rb +23 -20
- data/lib/rouge/demos/brainfuck +1 -1
- data/lib/rouge/demos/brightscript +1 -1
- data/lib/rouge/demos/bsl +1 -1
- data/lib/rouge/demos/cfscript +1 -1
- data/lib/rouge/demos/coq +1 -1
- data/lib/rouge/demos/csvs +1 -1
- data/lib/rouge/demos/dafny +16 -0
- data/lib/rouge/demos/datastudio +0 -1
- data/lib/rouge/demos/ecl +0 -1
- data/lib/rouge/demos/erlang +1 -1
- data/lib/rouge/demos/fluent +13 -0
- data/lib/rouge/demos/fsharp +1 -1
- data/lib/rouge/demos/glsl +1 -1
- data/lib/rouge/demos/haxe +0 -1
- data/lib/rouge/demos/idris +13 -0
- data/lib/rouge/demos/isabelle +16 -0
- data/lib/rouge/demos/lean +8 -0
- data/lib/rouge/demos/meson +10 -0
- data/lib/rouge/demos/nesasm +1 -1
- data/lib/rouge/demos/nial +35 -0
- data/lib/rouge/demos/opentype_feature_file +0 -1
- data/lib/rouge/demos/plsql +2 -0
- data/lib/rouge/demos/smarty +0 -1
- data/lib/rouge/demos/stan +13 -0
- data/lib/rouge/demos/stata +14 -0
- data/lib/rouge/demos/syzlang +15 -0
- data/lib/rouge/demos/syzprog +8 -0
- data/lib/rouge/formatter.rb +2 -2
- data/lib/rouge/formatters/html_inline.rb +0 -1
- data/lib/rouge/guessers/disambiguation.rb +7 -0
- data/lib/rouge/lexer.rb +2 -2
- data/lib/rouge/lexers/apache/keywords.rb +1 -1
- data/lib/rouge/lexers/apple_script.rb +1 -1
- data/lib/rouge/lexers/c.rb +12 -2
- data/lib/rouge/lexers/ceylon.rb +2 -2
- data/lib/rouge/lexers/console.rb +1 -1
- data/lib/rouge/lexers/cpp.rb +8 -5
- data/lib/rouge/lexers/cypher.rb +8 -0
- data/lib/rouge/lexers/dafny.rb +128 -0
- data/lib/rouge/lexers/dart.rb +10 -9
- data/lib/rouge/lexers/docker.rb +4 -0
- data/lib/rouge/lexers/eex.rb +2 -2
- data/lib/rouge/lexers/eiffel.rb +0 -1
- data/lib/rouge/lexers/factor.rb +2 -2
- data/lib/rouge/lexers/fluent.rb +74 -0
- data/lib/rouge/lexers/ghc_core.rb +1 -1
- data/lib/rouge/lexers/gherkin/keywords.rb +1 -1
- data/lib/rouge/lexers/groovy.rb +1 -1
- data/lib/rouge/lexers/handlebars.rb +1 -1
- data/lib/rouge/lexers/hcl.rb +1 -0
- data/lib/rouge/lexers/hylang.rb +0 -1
- data/lib/rouge/lexers/idris.rb +210 -0
- data/lib/rouge/lexers/isabelle.rb +251 -0
- data/lib/rouge/lexers/javascript.rb +1 -1
- data/lib/rouge/lexers/jsl.rb +6 -7
- data/lib/rouge/lexers/jsx.rb +1 -2
- data/lib/rouge/lexers/kotlin.rb +3 -1
- data/lib/rouge/lexers/lasso/keywords.rb +1 -1
- data/lib/rouge/lexers/lean.rb +164 -0
- data/lib/rouge/lexers/llvm/keywords.rb +1 -1
- data/lib/rouge/lexers/lua/keywords.rb +1 -1
- data/lib/rouge/lexers/mathematica/keywords.rb +1 -1
- data/lib/rouge/lexers/matlab/keywords.rb +1 -1
- data/lib/rouge/lexers/matlab.rb +3 -2
- data/lib/rouge/lexers/meson.rb +159 -0
- data/lib/rouge/lexers/nial.rb +166 -0
- data/lib/rouge/lexers/ocl.rb +0 -1
- data/lib/rouge/lexers/pascal.rb +2 -1
- data/lib/rouge/lexers/php/keywords.rb +1 -1
- data/lib/rouge/lexers/php.rb +7 -5
- data/lib/rouge/lexers/plsql.rb +578 -0
- data/lib/rouge/lexers/prometheus.rb +0 -1
- data/lib/rouge/lexers/python.rb +3 -1
- data/lib/rouge/lexers/q.rb +0 -1
- data/lib/rouge/lexers/rust.rb +82 -19
- data/lib/rouge/lexers/sparql.rb +5 -4
- data/lib/rouge/lexers/sqf/keywords.rb +1 -1
- data/lib/rouge/lexers/sql.rb +7 -7
- data/lib/rouge/lexers/stan.rb +451 -0
- data/lib/rouge/lexers/stata.rb +165 -0
- data/lib/rouge/lexers/supercollider.rb +0 -1
- data/lib/rouge/lexers/swift.rb +3 -3
- data/lib/rouge/lexers/syzlang.rb +317 -0
- data/lib/rouge/lexers/syzprog.rb +122 -0
- data/lib/rouge/lexers/tap.rb +0 -1
- data/lib/rouge/lexers/toml.rb +16 -9
- data/lib/rouge/lexers/tsx.rb +0 -1
- data/lib/rouge/lexers/tulip.rb +0 -1
- data/lib/rouge/lexers/viml/keywords.rb +1 -1
- data/lib/rouge/lexers/yaml.rb +1 -1
- data/lib/rouge/version.rb +1 -1
- metadata +30 -6
data/lib/rouge/lexers/tsx.rb
CHANGED
data/lib/rouge/lexers/tulip.rb
CHANGED
data/lib/rouge/lexers/yaml.rb
CHANGED
@@ -175,7 +175,7 @@ module Rouge
|
|
175
175
|
|
176
176
|
state :block_nodes do
|
177
177
|
# implicit key
|
178
|
-
rule %r/(
|
178
|
+
rule %r/([^#,:?\[\]{}"'\n]+)(:)(?=\s|$)/ do |m|
|
179
179
|
groups Name::Attribute, Punctuation::Indicator
|
180
180
|
set_indent m[0], :implicit => true
|
181
181
|
end
|
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: 3.
|
4
|
+
version: 3.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeanine Adkisson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-30 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:
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- lib/rouge/demos/cypher
|
63
63
|
- lib/rouge/demos/cython
|
64
64
|
- lib/rouge/demos/d
|
65
|
+
- lib/rouge/demos/dafny
|
65
66
|
- lib/rouge/demos/dart
|
66
67
|
- lib/rouge/demos/datastudio
|
67
68
|
- lib/rouge/demos/diff
|
@@ -79,6 +80,7 @@ files:
|
|
79
80
|
- lib/rouge/demos/erlang
|
80
81
|
- lib/rouge/demos/escape
|
81
82
|
- lib/rouge/demos/factor
|
83
|
+
- lib/rouge/demos/fluent
|
82
84
|
- lib/rouge/demos/fortran
|
83
85
|
- lib/rouge/demos/freefem
|
84
86
|
- lib/rouge/demos/fsharp
|
@@ -104,11 +106,13 @@ files:
|
|
104
106
|
- lib/rouge/demos/http
|
105
107
|
- lib/rouge/demos/hylang
|
106
108
|
- lib/rouge/demos/idlang
|
109
|
+
- lib/rouge/demos/idris
|
107
110
|
- lib/rouge/demos/igorpro
|
108
111
|
- lib/rouge/demos/ini
|
109
112
|
- lib/rouge/demos/io
|
110
113
|
- lib/rouge/demos/irb
|
111
114
|
- lib/rouge/demos/irb_output
|
115
|
+
- lib/rouge/demos/isabelle
|
112
116
|
- lib/rouge/demos/isbl
|
113
117
|
- lib/rouge/demos/j
|
114
118
|
- lib/rouge/demos/janet
|
@@ -124,6 +128,7 @@ files:
|
|
124
128
|
- lib/rouge/demos/julia
|
125
129
|
- lib/rouge/demos/kotlin
|
126
130
|
- lib/rouge/demos/lasso
|
131
|
+
- lib/rouge/demos/lean
|
127
132
|
- lib/rouge/demos/liquid
|
128
133
|
- lib/rouge/demos/literate_coffeescript
|
129
134
|
- lib/rouge/demos/literate_haskell
|
@@ -139,6 +144,7 @@ files:
|
|
139
144
|
- lib/rouge/demos/mason
|
140
145
|
- lib/rouge/demos/mathematica
|
141
146
|
- lib/rouge/demos/matlab
|
147
|
+
- lib/rouge/demos/meson
|
142
148
|
- lib/rouge/demos/minizinc
|
143
149
|
- lib/rouge/demos/moonscript
|
144
150
|
- lib/rouge/demos/mosel
|
@@ -147,6 +153,7 @@ files:
|
|
147
153
|
- lib/rouge/demos/nasm
|
148
154
|
- lib/rouge/demos/nesasm
|
149
155
|
- lib/rouge/demos/nginx
|
156
|
+
- lib/rouge/demos/nial
|
150
157
|
- lib/rouge/demos/nim
|
151
158
|
- lib/rouge/demos/nix
|
152
159
|
- lib/rouge/demos/objective_c
|
@@ -160,6 +167,7 @@ files:
|
|
160
167
|
- lib/rouge/demos/php
|
161
168
|
- lib/rouge/demos/plaintext
|
162
169
|
- lib/rouge/demos/plist
|
170
|
+
- lib/rouge/demos/plsql
|
163
171
|
- lib/rouge/demos/pony
|
164
172
|
- lib/rouge/demos/postscript
|
165
173
|
- lib/rouge/demos/powershell
|
@@ -198,9 +206,13 @@ files:
|
|
198
206
|
- lib/rouge/demos/sqf
|
199
207
|
- lib/rouge/demos/sql
|
200
208
|
- lib/rouge/demos/ssh
|
209
|
+
- lib/rouge/demos/stan
|
210
|
+
- lib/rouge/demos/stata
|
201
211
|
- lib/rouge/demos/supercollider
|
202
212
|
- lib/rouge/demos/swift
|
203
213
|
- lib/rouge/demos/systemd
|
214
|
+
- lib/rouge/demos/syzlang
|
215
|
+
- lib/rouge/demos/syzprog
|
204
216
|
- lib/rouge/demos/tap
|
205
217
|
- lib/rouge/demos/tcl
|
206
218
|
- lib/rouge/demos/terraform
|
@@ -290,6 +302,7 @@ files:
|
|
290
302
|
- lib/rouge/lexers/cypher.rb
|
291
303
|
- lib/rouge/lexers/cython.rb
|
292
304
|
- lib/rouge/lexers/d.rb
|
305
|
+
- lib/rouge/lexers/dafny.rb
|
293
306
|
- lib/rouge/lexers/dart.rb
|
294
307
|
- lib/rouge/lexers/datastudio.rb
|
295
308
|
- lib/rouge/lexers/diff.rb
|
@@ -307,6 +320,7 @@ files:
|
|
307
320
|
- lib/rouge/lexers/erlang.rb
|
308
321
|
- lib/rouge/lexers/escape.rb
|
309
322
|
- lib/rouge/lexers/factor.rb
|
323
|
+
- lib/rouge/lexers/fluent.rb
|
310
324
|
- lib/rouge/lexers/fortran.rb
|
311
325
|
- lib/rouge/lexers/freefem.rb
|
312
326
|
- lib/rouge/lexers/fsharp.rb
|
@@ -333,10 +347,12 @@ files:
|
|
333
347
|
- lib/rouge/lexers/http.rb
|
334
348
|
- lib/rouge/lexers/hylang.rb
|
335
349
|
- lib/rouge/lexers/idlang.rb
|
350
|
+
- lib/rouge/lexers/idris.rb
|
336
351
|
- lib/rouge/lexers/igorpro.rb
|
337
352
|
- lib/rouge/lexers/ini.rb
|
338
353
|
- lib/rouge/lexers/io.rb
|
339
354
|
- lib/rouge/lexers/irb.rb
|
355
|
+
- lib/rouge/lexers/isabelle.rb
|
340
356
|
- lib/rouge/lexers/isbl.rb
|
341
357
|
- lib/rouge/lexers/isbl/builtins.rb
|
342
358
|
- lib/rouge/lexers/j.rb
|
@@ -354,6 +370,7 @@ files:
|
|
354
370
|
- lib/rouge/lexers/kotlin.rb
|
355
371
|
- lib/rouge/lexers/lasso.rb
|
356
372
|
- lib/rouge/lexers/lasso/keywords.rb
|
373
|
+
- lib/rouge/lexers/lean.rb
|
357
374
|
- lib/rouge/lexers/liquid.rb
|
358
375
|
- lib/rouge/lexers/literate_coffeescript.rb
|
359
376
|
- lib/rouge/lexers/literate_haskell.rb
|
@@ -374,6 +391,7 @@ files:
|
|
374
391
|
- lib/rouge/lexers/matlab.rb
|
375
392
|
- lib/rouge/lexers/matlab/builtins.rb
|
376
393
|
- lib/rouge/lexers/matlab/keywords.rb
|
394
|
+
- lib/rouge/lexers/meson.rb
|
377
395
|
- lib/rouge/lexers/minizinc.rb
|
378
396
|
- lib/rouge/lexers/moonscript.rb
|
379
397
|
- lib/rouge/lexers/mosel.rb
|
@@ -382,6 +400,7 @@ files:
|
|
382
400
|
- lib/rouge/lexers/nasm.rb
|
383
401
|
- lib/rouge/lexers/nesasm.rb
|
384
402
|
- lib/rouge/lexers/nginx.rb
|
403
|
+
- lib/rouge/lexers/nial.rb
|
385
404
|
- lib/rouge/lexers/nim.rb
|
386
405
|
- lib/rouge/lexers/nix.rb
|
387
406
|
- lib/rouge/lexers/objective_c.rb
|
@@ -398,6 +417,7 @@ files:
|
|
398
417
|
- lib/rouge/lexers/php/keywords.rb
|
399
418
|
- lib/rouge/lexers/plain_text.rb
|
400
419
|
- lib/rouge/lexers/plist.rb
|
420
|
+
- lib/rouge/lexers/plsql.rb
|
401
421
|
- lib/rouge/lexers/pony.rb
|
402
422
|
- lib/rouge/lexers/postscript.rb
|
403
423
|
- lib/rouge/lexers/powershell.rb
|
@@ -438,9 +458,13 @@ files:
|
|
438
458
|
- lib/rouge/lexers/sqf/keywords.rb
|
439
459
|
- lib/rouge/lexers/sql.rb
|
440
460
|
- lib/rouge/lexers/ssh.rb
|
461
|
+
- lib/rouge/lexers/stan.rb
|
462
|
+
- lib/rouge/lexers/stata.rb
|
441
463
|
- lib/rouge/lexers/supercollider.rb
|
442
464
|
- lib/rouge/lexers/swift.rb
|
443
465
|
- lib/rouge/lexers/systemd.rb
|
466
|
+
- lib/rouge/lexers/syzlang.rb
|
467
|
+
- lib/rouge/lexers/syzprog.rb
|
444
468
|
- lib/rouge/lexers/tap.rb
|
445
469
|
- lib/rouge/lexers/tcl.rb
|
446
470
|
- lib/rouge/lexers/terraform.rb
|
@@ -502,7 +526,7 @@ metadata:
|
|
502
526
|
changelog_uri: https://github.com/rouge-ruby/rouge/blob/master/CHANGELOG.md
|
503
527
|
documentation_uri: https://rouge-ruby.github.io/docs/
|
504
528
|
source_code_uri: https://github.com/rouge-ruby/rouge
|
505
|
-
post_install_message:
|
529
|
+
post_install_message:
|
506
530
|
rdoc_options: []
|
507
531
|
require_paths:
|
508
532
|
- lib
|
@@ -517,8 +541,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
517
541
|
- !ruby/object:Gem::Version
|
518
542
|
version: '0'
|
519
543
|
requirements: []
|
520
|
-
rubygems_version: 3.1.
|
521
|
-
signing_key:
|
544
|
+
rubygems_version: 3.1.6
|
545
|
+
signing_key:
|
522
546
|
specification_version: 4
|
523
547
|
summary: A pure-ruby colorizer based on pygments
|
524
548
|
test_files: []
|