[BACK]Return to cmd-parse.y CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-parse.y between version 1.49 and 1.50

version 1.49, 2022/10/25 09:12:05 version 1.50, 2023/03/15 08:15:39
Line 1615 
Line 1615 
   
         for (;;) {          for (;;) {
                 /* EOF or \n are always the end of the token. */                  /* EOF or \n are always the end of the token. */
                 if (ch == EOF || (state == NONE && ch == '\n'))                  if (ch == EOF) {
                           log_debug("%s: end at EOF", __func__);
                         break;                          break;
                   }
                   if (state == NONE && ch == '\n') {
                           log_debug("%s: end at EOL", __func__);
                           break;
                   }
   
                 /* Whitespace or ; or } ends a token unless inside quotes. */                  /* Whitespace or ; or } ends a token unless inside quotes. */
                 if ((ch == ' ' || ch == '\t' || ch == ';' || ch == '}') &&                  if (state == NONE && (ch == ' ' || ch == '\t')) {
                     state == NONE)                          log_debug("%s: end at WS", __func__);
                         break;                          break;
                   }
                   if (state == NONE && (ch == ';' || ch == '}')) {
                           log_debug("%s: end at %c", __func__, ch);
                           break;
                   }
   
                 /*                  /*
                  * Spaces and comments inside quotes after \n are removed but                   * Spaces and comments inside quotes after \n are removed but

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50