rouge 3.26.0 → 3.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -1
  3. data/lib/rouge/cli.rb +23 -20
  4. data/lib/rouge/demos/brainfuck +1 -1
  5. data/lib/rouge/demos/brightscript +1 -1
  6. data/lib/rouge/demos/bsl +1 -1
  7. data/lib/rouge/demos/cfscript +1 -1
  8. data/lib/rouge/demos/coq +1 -1
  9. data/lib/rouge/demos/csvs +1 -1
  10. data/lib/rouge/demos/dafny +16 -0
  11. data/lib/rouge/demos/datastudio +0 -1
  12. data/lib/rouge/demos/ecl +0 -1
  13. data/lib/rouge/demos/erlang +1 -1
  14. data/lib/rouge/demos/fluent +13 -0
  15. data/lib/rouge/demos/fsharp +1 -1
  16. data/lib/rouge/demos/glsl +1 -1
  17. data/lib/rouge/demos/haxe +0 -1
  18. data/lib/rouge/demos/idris +13 -0
  19. data/lib/rouge/demos/isabelle +16 -0
  20. data/lib/rouge/demos/lean +8 -0
  21. data/lib/rouge/demos/meson +10 -0
  22. data/lib/rouge/demos/nesasm +1 -1
  23. data/lib/rouge/demos/nial +35 -0
  24. data/lib/rouge/demos/opentype_feature_file +0 -1
  25. data/lib/rouge/demos/plsql +2 -0
  26. data/lib/rouge/demos/smarty +0 -1
  27. data/lib/rouge/demos/stan +13 -0
  28. data/lib/rouge/demos/stata +14 -0
  29. data/lib/rouge/demos/syzlang +15 -0
  30. data/lib/rouge/demos/syzprog +8 -0
  31. data/lib/rouge/formatter.rb +2 -2
  32. data/lib/rouge/formatters/html_inline.rb +0 -1
  33. data/lib/rouge/guessers/disambiguation.rb +7 -0
  34. data/lib/rouge/lexer.rb +2 -2
  35. data/lib/rouge/lexers/apache/keywords.rb +1 -1
  36. data/lib/rouge/lexers/apple_script.rb +1 -1
  37. data/lib/rouge/lexers/c.rb +12 -2
  38. data/lib/rouge/lexers/ceylon.rb +2 -2
  39. data/lib/rouge/lexers/console.rb +1 -1
  40. data/lib/rouge/lexers/cpp.rb +8 -5
  41. data/lib/rouge/lexers/cypher.rb +8 -0
  42. data/lib/rouge/lexers/dafny.rb +128 -0
  43. data/lib/rouge/lexers/dart.rb +10 -9
  44. data/lib/rouge/lexers/docker.rb +4 -0
  45. data/lib/rouge/lexers/eex.rb +2 -2
  46. data/lib/rouge/lexers/eiffel.rb +0 -1
  47. data/lib/rouge/lexers/factor.rb +2 -2
  48. data/lib/rouge/lexers/fluent.rb +74 -0
  49. data/lib/rouge/lexers/ghc_core.rb +1 -1
  50. data/lib/rouge/lexers/gherkin/keywords.rb +1 -1
  51. data/lib/rouge/lexers/groovy.rb +1 -1
  52. data/lib/rouge/lexers/handlebars.rb +1 -1
  53. data/lib/rouge/lexers/hcl.rb +1 -0
  54. data/lib/rouge/lexers/hylang.rb +0 -1
  55. data/lib/rouge/lexers/idris.rb +210 -0
  56. data/lib/rouge/lexers/isabelle.rb +251 -0
  57. data/lib/rouge/lexers/javascript.rb +1 -1
  58. data/lib/rouge/lexers/jsl.rb +6 -7
  59. data/lib/rouge/lexers/jsx.rb +1 -2
  60. data/lib/rouge/lexers/kotlin.rb +3 -1
  61. data/lib/rouge/lexers/lasso/keywords.rb +1 -1
  62. data/lib/rouge/lexers/lean.rb +164 -0
  63. data/lib/rouge/lexers/llvm/keywords.rb +1 -1
  64. data/lib/rouge/lexers/lua/keywords.rb +1 -1
  65. data/lib/rouge/lexers/mathematica/keywords.rb +1 -1
  66. data/lib/rouge/lexers/matlab/keywords.rb +1 -1
  67. data/lib/rouge/lexers/matlab.rb +3 -2
  68. data/lib/rouge/lexers/meson.rb +159 -0
  69. data/lib/rouge/lexers/nial.rb +166 -0
  70. data/lib/rouge/lexers/ocl.rb +0 -1
  71. data/lib/rouge/lexers/pascal.rb +2 -1
  72. data/lib/rouge/lexers/php/keywords.rb +1 -1
  73. data/lib/rouge/lexers/php.rb +7 -5
  74. data/lib/rouge/lexers/plsql.rb +578 -0
  75. data/lib/rouge/lexers/prometheus.rb +0 -1
  76. data/lib/rouge/lexers/python.rb +3 -1
  77. data/lib/rouge/lexers/q.rb +0 -1
  78. data/lib/rouge/lexers/rust.rb +82 -19
  79. data/lib/rouge/lexers/sparql.rb +5 -4
  80. data/lib/rouge/lexers/sqf/keywords.rb +1 -1
  81. data/lib/rouge/lexers/sql.rb +7 -7
  82. data/lib/rouge/lexers/stan.rb +451 -0
  83. data/lib/rouge/lexers/stata.rb +165 -0
  84. data/lib/rouge/lexers/supercollider.rb +0 -1
  85. data/lib/rouge/lexers/swift.rb +3 -3
  86. data/lib/rouge/lexers/syzlang.rb +317 -0
  87. data/lib/rouge/lexers/syzprog.rb +122 -0
  88. data/lib/rouge/lexers/tap.rb +0 -1
  89. data/lib/rouge/lexers/toml.rb +16 -9
  90. data/lib/rouge/lexers/tsx.rb +0 -1
  91. data/lib/rouge/lexers/tulip.rb +0 -1
  92. data/lib/rouge/lexers/viml/keywords.rb +1 -1
  93. data/lib/rouge/lexers/yaml.rb +1 -1
  94. data/lib/rouge/version.rb +1 -1
  95. metadata +30 -6
@@ -24,4 +24,3 @@ module Rouge
24
24
  end
25
25
  end
26
26
  end
27
-
@@ -105,4 +105,3 @@ module Rouge
105
105
  end
106
106
  end
107
107
  end
108
-
@@ -18,4 +18,4 @@ module Rouge
18
18
  end
19
19
  end
20
20
  end
21
- end
21
+ end
@@ -175,7 +175,7 @@ module Rouge
175
175
 
176
176
  state :block_nodes do
177
177
  # implicit key
178
- rule %r/((?:[\p{L}\p{Nl}\p{Nd}_][\p{L}\p{Nl}\p{Nd}\p{Blank}_-]*)?)(:)(?=\s|$)/ do |m|
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
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Rouge
5
5
  def self.version
6
- "3.26.0"
6
+ "3.30.0"
7
7
  end
8
8
  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: 3.26.0
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: 2020-12-08 00:00:00.000000000 Z
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.2
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: []