Class: Mayu::Resources::Transformers::CSS::RougeLexer

Inherits:
Rouge::RegexLexer
  • Object
show all
Defined in:
lib/mayu/resources/transformers/css/rouge_lexer.rb

Class Method Summary collapse

Class Method Details

.attributesObject



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
# File 'lib/mayu/resources/transformers/css/rouge_lexer.rb', line 43

def self.attributes
  @attributes ||=
    Set.new %w[
              align-content
              align-items
              align-self
              alignment-adjust
              alignment-baseline
              all
              anchor-point
              animation
              animation-delay
              animation-direction
              animation-duration
              animation-fill-mode
              animation-iteration-count
              animation-name
              animation-play-state
              animation-timing-function
              appearance
              azimuth
              backface-visibility
              background
              background-attachment
              background-clip
              background-color
              background-image
              background-origin
              background-position
              background-repeat
              background-size
              baseline-shift
              binding
              bleed
              bookmark-label
              bookmark-level
              bookmark-state
              bookmark-target
              border
              border-bottom
              border-bottom-color
              border-bottom-left-radius
              border-bottom-right-radius
              border-bottom-style
              border-bottom-width
              border-collapse
              border-color
              border-image
              border-image-outset
              border-image-repeat
              border-image-slice
              border-image-source
              border-image-width
              border-left
              border-left-color
              border-left-style
              border-left-width
              border-radius
              border-right
              border-right-color
              border-right-style
              border-right-width
              border-spacing
              border-style
              border-top
              border-top-color
              border-top-left-radius
              border-top-right-radius
              border-top-style
              border-top-width
              border-width
              bottom
              box-align
              box-decoration-break
              box-direction
              box-flex
              box-flex-group
              box-lines
              box-ordinal-group
              box-orient
              box-pack
              box-shadow
              box-sizing
              break-after
              break-before
              break-inside
              caption-side
              clear
              clip
              clip-path
              clip-rule
              color
              color-profile
              columns
              column-count
              column-fill
              column-gap
              column-rule
              column-rule-color
              column-rule-style
              column-rule-width
              column-span
              column-width
              content
              counter-increment
              counter-reset
              crop
              cue
              cue-after
              cue-before
              cursor
              direction
              display
              dominant-baseline
              drop-initial-after-adjust
              drop-initial-after-align
              drop-initial-before-adjust
              drop-initial-before-align
              drop-initial-size
              drop-initial-value
              elevation
              empty-cells
              filter
              fit
              fit-position
              flex
              flex-basis
              flex-direction
              flex-flow
              flex-grow
              flex-shrink
              flex-wrap
              float
              float-offset
              font
              font-family
              font-feature-settings
              font-kerning
              font-language-override
              font-size
              font-size-adjust
              font-stretch
              font-style
              font-synthesis
              font-variant
              font-variant-alternates
              font-variant-caps
              font-variant-east-asian
              font-variant-ligatures
              font-variant-numeric
              font-variant-position
              font-weight
              grid-cell
              grid-column
              grid-column-align
              grid-column-sizing
              grid-column-span
              grid-columns
              grid-flow
              grid-row
              grid-row-align
              grid-row-sizing
              grid-row-span
              grid-rows
              grid-template
              hanging-punctuation
              height
              hyphenate-after
              hyphenate-before
              hyphenate-character
              hyphenate-lines
              hyphenate-resource
              hyphens
              icon
              image-orientation
              image-rendering
              image-resolution
              ime-mode
              inline-box-align
              justify-content
              left
              letter-spacing
              line-break
              line-height
              line-stacking
              line-stacking-ruby
              line-stacking-shift
              line-stacking-strategy
              list-style
              list-style-image
              list-style-position
              list-style-type
              margin
              margin-bottom
              margin-left
              margin-right
              margin-top
              mark
              marker-offset
              marks
              mark-after
              mark-before
              marquee-direction
              marquee-loop
              marquee-play-count
              marquee-speed
              marquee-style
              mask
              max-height
              max-width
              min-height
              min-width
              move-to
              nav-down
              nav-index
              nav-left
              nav-right
              nav-up
              object-fit
              object-position
              opacity
              order
              orphans
              outline
              outline-color
              outline-offset
              outline-style
              outline-width
              overflow
              overflow-style
              overflow-wrap
              overflow-x
              overflow-y
              padding
              padding-bottom
              padding-left
              padding-right
              padding-top
              page
              page-break-after
              page-break-before
              page-break-inside
              page-policy
              pause
              pause-after
              pause-before
              perspective
              perspective-origin
              phonemes
              pitch
              pitch-range
              play-during
              pointer-events
              position
              presentation-level
              punctuation-trim
              quotes
              rendering-intent
              resize
              rest
              rest-after
              rest-before
              richness
              right
              rotation
              rotation-point
              ruby-align
              ruby-overhang
              ruby-position
              ruby-span
              size
              speak
              speak-as
              speak-header
              speak-numeral
              speak-punctuation
              speech-rate
              src
              stress
              string-set
              tab-size
              table-layout
              target
              target-name
              target-new
              target-position
              text-align
              text-align-last
              text-combine-horizontal
              text-decoration
              text-decoration-color
              text-decoration-line
              text-decoration-skip
              text-decoration-style
              text-emphasis
              text-emphasis-color
              text-emphasis-position
              text-emphasis-style
              text-height
              text-indent
              text-justify
              text-orientation
              text-outline
              text-overflow
              text-rendering
              text-shadow
              text-space-collapse
              text-transform
              text-underline-position
              text-wrap
              top
              transform
              transform-origin
              transform-style
              transition
              transition-delay
              transition-duration
              transition-property
              transition-timing-function
              unicode-bidi
              vertical-align
              visibility
              voice-balance
              voice-duration
              voice-family
              voice-pitch
              voice-pitch-range
              voice-range
              voice-rate
              voice-stress
              voice-volume
              volume
              white-space
              widows
              width
              word-break
              word-spacing
              word-wrap
              writing-mode
              z-index
            ]
end

.builtinsObject



386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
# File 'lib/mayu/resources/transformers/css/rouge_lexer.rb', line 386

def self.builtins
  @builtins ||=
    Set.new %w[
              above
              absolute
              always
              armenian
              aural
              auto
              avoid
              left
              bottom
              baseline
              behind
              below
              bidi-override
              blink
              block
              bold
              bolder
              both
              bottom
              capitalize
              center
              center-left
              center-right
              circle
              cjk-ideographic
              close-quote
              collapse
              condensed
              continuous
              crop
              cross
              crosshair
              cursive
              dashed
              decimal
              decimal-leading-zero
              default
              digits
              disc
              dotted
              double
              e-resize
              embed
              expanded
              extra-condensed
              extra-expanded
              fantasy
              far-left
              far-right
              fast
              faster
              fixed
              georgian
              groove
              hebrew
              help
              hidden
              hide
              high
              higher
              hiragana
              hiragana-iroha
              icon
              inherit
              inline
              inline-table
              inset
              inside
              invert
              italic
              justify
              katakana
              katakana-iroha
              landscape
              large
              larger
              left
              left-side
              leftwards
              level
              lighter
              line-through
              list-item
              loud
              low
              lower
              lower-alpha
              lower-greek
              lower-roman
              lowercase
              ltr
              medium
              message-box
              middle
              mix
              monospace
              n-resize
              narrower
              ne-resize
              no-close-quote
              no-open-quote
              no-repeat
              none
              normal
              nowrap
              nw-resize
              oblique
              once
              open-quote
              outset
              outside
              overline
              pointer
              portrait
              px
              relative
              repeat
              repeat-x
              repeat-y
              rgb
              ridge
              right
              right-side
              rightwards
              s-resize
              sans-serif
              scroll
              se-resize
              semi-condensed
              semi-expanded
              separate
              serif
              show
              silent
              slow
              slower
              small-caps
              small-caption
              smaller
              soft
              solid
              spell-out
              square
              static
              status-bar
              super
              sw-resize
              table-caption
              table-cell
              table-column
              table-column-group
              table-footer-group
              table-header-group
              table-row
              table-row-group
              text
              text-bottom
              text-top
              thick
              thin
              top
              transparent
              ultra-condensed
              ultra-expanded
              underline
              upper-alpha
              upper-latin
              upper-roman
              uppercase
              url
              visible
              w-resize
              wait
              wider
              x-fast
              x-high
              x-large
              x-loud
              x-low
              x-small
              x-soft
              xx-large
              xx-small
              yes
            ]
end

.constantsObject



576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
# File 'lib/mayu/resources/transformers/css/rouge_lexer.rb', line 576

def self.constants
  @constants ||=
    Set.new %w[
              indigo
              gold
              firebrick
              indianred
              yellow
              darkolivegreen
              darkseagreen
              mediumvioletred
              mediumorchid
              chartreuse
              mediumslateblue
              black
              springgreen
              crimson
              lightsalmon
              brown
              turquoise
              olivedrab
              cyan
              silver
              skyblue
              gray
              darkturquoise
              goldenrod
              darkgreen
              darkviolet
              darkgray
              lightpink
              teal
              darkmagenta
              lightgoldenrodyellow
              lavender
              yellowgreen
              thistle
              violet
              navy
              orchid
              blue
              ghostwhite
              honeydew
              cornflowerblue
              darkblue
              darkkhaki
              mediumpurple
              cornsilk
              red
              bisque
              slategray
              darkcyan
              khaki
              wheat
              deepskyblue
              darkred
              steelblue
              aliceblue
              gainsboro
              mediumturquoise
              floralwhite
              coral
              purple
              lightgrey
              lightcyan
              darksalmon
              beige
              azure
              lightsteelblue
              oldlace
              greenyellow
              royalblue
              lightseagreen
              mistyrose
              sienna
              lightcoral
              orangered
              navajowhite
              lime
              palegreen
              burlywood
              seashell
              mediumspringgreen
              fuchsia
              papayawhip
              blanchedalmond
              peru
              aquamarine
              white
              darkslategray
              ivory
              dodgerblue
              lemonchiffon
              chocolate
              orange
              forestgreen
              slateblue
              olive
              mintcream
              antiquewhite
              darkorange
              cadetblue
              moccasin
              limegreen
              saddlebrown
              darkslateblue
              lightskyblue
              deeppink
              plum
              aqua
              darkgoldenrod
              maroon
              sandybrown
              magenta
              tan
              rosybrown
              pink
              lightblue
              palevioletred
              mediumseagreen
              dimgray
              powderblue
              seagreen
              snow
              mediumblue
              midnightblue
              paleturquoise
              palegoldenrod
              whitesmoke
              darkorchid
              salmon
              lightslategray
              lawngreen
              lightgreen
              tomato
              hotpink
              lightyellow
              lavenderblush
              linen
              mediumaquamarine
              green
              blueviolet
              peachpuff
            ]
end

.vendor_prefixesObject



723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
# File 'lib/mayu/resources/transformers/css/rouge_lexer.rb', line 723

def self.vendor_prefixes
  @vendor_prefixes ||=
    Set.new %w[
              -ah-
              -atsc-
              -hp-
              -khtml-
              -moz-
              -ms-
              -o-
              -rim-
              -ro-
              -tc-
              -wap-
              -webkit-
              -xv-
              mso-
              prince-
            ]
end