lapyst-rouge 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/lapyst-rouge/lexer.rb +3 -7
 - data/lib/lapyst-rouge/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 7bcf766ad0f477171e588cbf8d911652481077f1b65a9470e6f03be2715ac01b
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: e74fafd7adefc9fa72ecf84d0f7c87e68a8d1d0d894baee879a00742c107a014
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: fa5239e36c744f2cfe1834df8288a65680e2dab89ca2c40c4b1ddae9ff27ef596ebbaaa0cadc7a724f163f9c3ca73aa6ba193e07b9a7fc79a9751b853dc0883c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7d215a96a384d99e26620271a1984a9f470c7eefc720227891011dcceb02f27ee41d84ead4d43d6a717b8fff04deb5d450b37d664b9370d43220f6fe6c5f00a7
         
     | 
    
        data/lib/lapyst-rouge/lexer.rb
    CHANGED
    
    | 
         @@ -437,8 +437,7 @@ module Rouge 
     | 
|
| 
       437 
437 
     | 
    
         
             
                            rule %r(
         
     | 
| 
       438 
438 
     | 
    
         
             
                                ( [\p{L}_][\p{L}\p{N}_]* )
         
     | 
| 
       439 
439 
     | 
    
         
             
                                (\s+)
         
     | 
| 
       440 
     | 
    
         
            -
                            )x do 
     | 
| 
       441 
     | 
    
         
            -
                                puts "match shapename: #{m[0].inspect}"
         
     | 
| 
      
 440 
     | 
    
         
            +
                            )x do
         
     | 
| 
       442 
441 
     | 
    
         
             
                                groups Name::Class, Text
         
     | 
| 
       443 
442 
     | 
    
         
             
                                goto :shape_generics
         
     | 
| 
       444 
443 
     | 
    
         
             
                            end
         
     | 
| 
         @@ -451,10 +450,8 @@ module Rouge 
     | 
|
| 
       451 
450 
     | 
    
         | 
| 
       452 
451 
     | 
    
         
             
                            rule %r/
         
     | 
| 
       453 
452 
     | 
    
         
             
                                (of)(\s*)(\[)
         
     | 
| 
       454 
     | 
    
         
            -
                            /x do 
     | 
| 
       455 
     | 
    
         
            -
                                puts "match generics: #{m[0].inspect}"
         
     | 
| 
      
 453 
     | 
    
         
            +
                            /x do
         
     | 
| 
       456 
454 
     | 
    
         
             
                                groups Keyword, Text, Punctuation
         
     | 
| 
       457 
     | 
    
         
            -
                                puts "[SG] enter shape_generic_inner: #{stack.inspect}"
         
     | 
| 
       458 
455 
     | 
    
         
             
                                push :shape_generic_inner
         
     | 
| 
       459 
456 
     | 
    
         
             
                            end
         
     | 
| 
       460 
457 
     | 
    
         | 
| 
         @@ -496,13 +493,12 @@ module Rouge 
     | 
|
| 
       496 
493 
     | 
    
         
             
                                if (stack[-2].name == :shape_generic_inner) then
         
     | 
| 
       497 
494 
     | 
    
         
             
                                    pop!
         
     | 
| 
       498 
495 
     | 
    
         
             
                                else
         
     | 
| 
       499 
     | 
    
         
            -
                                    puts "[SG] leave shape_generic_inner: #{stack.inspect}"
         
     | 
| 
       500 
496 
     | 
    
         
             
                                    pop!
         
     | 
| 
       501 
497 
     | 
    
         
             
                                    goto :shape_inheritance
         
     | 
| 
       502 
498 
     | 
    
         
             
                                end
         
     | 
| 
       503 
499 
     | 
    
         
             
                            end
         
     | 
| 
       504 
500 
     | 
    
         | 
| 
       505 
     | 
    
         
            -
                            # 
     | 
| 
      
 501 
     | 
    
         
            +
                            # TODO: generics of types used inside generic definitions, i.e. 'of [ Cache[12] c ]'
         
     | 
| 
       506 
502 
     | 
    
         
             
                        end
         
     | 
| 
       507 
503 
     | 
    
         | 
| 
       508 
504 
     | 
    
         
             
                        state :shape_inheritance do
         
     | 
    
        data/lib/lapyst-rouge/version.rb
    CHANGED