]> git.donarmstrong.com Git - perltidy.git/commitdiff
update comments
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 24 Jul 2022 20:21:32 +0000 (13:21 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 24 Jul 2022 20:21:32 +0000 (13:21 -0700)
lib/Perl/Tidy/Formatter.pm
lib/Perl/Tidy/HtmlWriter.pm
lib/Perl/Tidy/Tokenizer.pm

index e421f137a979410db5b02388090560bb3d50a929..d70c7e923e3f273042207e8e2a6428f62fdfb5fe 100644 (file)
@@ -2910,8 +2910,6 @@ sub set_whitespace_flags {
 
                 # space between something like $i and ( in 'snippets/space2.in'
                 # for $i ( 0 .. 20 ) {
-                # FIXME: eventually, type 'i' could be split into multiple
-                # token types so this can be a hardwired rule.
                 elsif ( $last_type eq 'i' && $last_token =~ /^[\$\%\@]/ ) {
                     $ws = WS_YES;
                 }
index 03ea24a34e89c84761747b1741466406e59d6490..11369e3cbf6f68c25824aad8c53bbacdb61f7a83 100644 (file)
@@ -385,7 +385,6 @@ BEGIN {
     );
 
     # These token types will all be called identifiers for now
-    # FIXME: could separate user defined modules as separate type
     my @identifier = qw< i t U C Y Z G :: CORE::>;
     @token_short_names{@identifier} = ('i') x scalar(@identifier);
 
index eddc1809528fd31c369b866e692b51c1bba7c6ba..ecca17b3553a323b7ea5d72dcbf74be61d16ba59 100644 (file)
@@ -2061,15 +2061,14 @@ EOM
         #-------------------------------------------------------
         # Do full scan for anything following a pointer, such as
         #      $cref->&*;    # a postderef
-        # This is part of POINTER_LOGIC update but always ok
         #-------------------------------------------------------
         if ( $last_nonblank_token eq '->' ) {
 
         }
 
-        ###############################
+        #------------------------------
         # quick scan with leading sigil
-        ###############################
+        #------------------------------
         elsif ( !$id_scan_state
             && $i_plus_1 <= $max_token_index
             && $fast_scan_context{$tok} )
@@ -2115,10 +2114,10 @@ EOM
             }
         }
 
-        ############################
+        #---------------------------
         # Quick scan with leading ->
         # Look for ->[ and ->{
-        ############################
+        #---------------------------
         elsif (
                $tok eq '->'
             && $i < $max_token_index
@@ -2132,9 +2131,9 @@ EOM
             $context        = UNKNOWN_CONTEXT;
         }
 
-        #######################################
+        #--------------------------------------
         # Verify correctness during development
-        #######################################
+        #--------------------------------------
         if ( VERIFY_FASTSCAN && $fast_scan_type ) {
 
             # We will call the full method
@@ -2162,9 +2161,9 @@ EOM
             }
         }
 
-        ###################################################
+        #-------------------------------------------------
         # call full scanner if fast method did not succeed
-        ###################################################
+        #-------------------------------------------------
         if ( !$fast_scan_type ) {
             scan_identifier();
         }
@@ -5734,9 +5733,7 @@ sub operator_expected {
     my ( $prev_type, $tok, $next_type ) = @{$rarg};
 
     # Types 'k', '}' and 'Z' depend on context
-    # FIXME: Types 'i', 'n', 'v', 'q' currently also temporarily depend on
-    # context but that dependence could eventually be eliminated with better
-    # token type definition
+    # Types 'i', 'n', 'v', 'q' currently also temporarily depend on context.
 
     # identifier...
     if ( $last_nonblank_type eq 'i' ) {
@@ -5876,9 +5873,7 @@ sub operator_expected {
     # 'J'; not 'q'; or maybe mark as type 'Y'
     elsif ( $last_nonblank_type eq 'q' ) {
         $op_expected = OPERATOR;
-        if ( $last_nonblank_token eq 'prototype' )
-          ##|| $last_nonblank_token eq 'switch' )
-        {
+        if ( $last_nonblank_token eq 'prototype' ) {
             $op_expected = TERM;
         }
     }