Last active
          December 15, 2015 15:59 
        
      - 
      
- 
        Save FROGGS/5286324 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | diff --git a/src/Perl6/Grammar.pm b/src/Perl6/Grammar.pm | |
| index abf96b7..c5f9177 100644 | |
| --- a/src/Perl6/Grammar.pm | |
| +++ b/src/Perl6/Grammar.pm | |
| @@ -1156,7 +1156,12 @@ grammar Perl6::Grammar is HLL::Grammar does STD { | |
| $<doc>=[ 'DOC' \h+ ]? | |
| <sym> <.ws> | |
| [ | |
| - | <version> | |
| + | <version> <?{ ~$<version><vnum>[0] ne '5' }> | |
| + | 'v'? <?before '5'> {} $<vstr>=[<vnum>+ % '.' '+'?] { | |
| + my $module := $*W.load_module($/, 'v5', $*GLOBALish); | |
| + do_import($/, $module, 'v5'); | |
| + $/.CURSOR.import_EXPORTHOW($module); | |
| + } | |
| | <module_name> | |
| { | |
| $longname := $<module_name><longname>; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment