Loading ...
Sorry, an error occurred while loading the content.

DEFECT: Stream comment Fails to ignore mixed spaces and tabs in V. 2011-03-27

Expand Messages
  • abyssoft@ymail.com
    Works Correctly // I m a Block Comment that has a tab Has Defect /* I m a stream comment that has a tab */
    Message 1 of 3 , Mar 30 2:00 PM
    • 0 Attachment
      Works Correctly
      // I'm a Block Comment that has a tab

      Has Defect
      /*
      I'm a stream comment that has a tab
      */
    • Douglas Crockford
      ... JSLint allows tabs. It even allows the mixing of tabs and spaces, which is a bad practice. Where it draws the line is when it sees a space immediately
      Message 2 of 3 , Mar 31 4:40 AM
      • 0 Attachment
        --- In jslint_com@yahoogroups.com, "abyssoft@..." <abyssoft@...> wrote:
        >
        > Works Correctly
        > // I'm a Block Comment that has a tab
        >
        > Has Defect
        > /*
        > I'm a stream comment that has a tab
        > */

        JSLint allows tabs. It even allows the mixing of tabs and spaces, which is a bad practice. Where it draws the line is when it sees a space immediately followed by a tab.
      • abyssoft@ymail.com
        Thank you for the clarification.
        Message 3 of 3 , Apr 1, 2011
        • 0 Attachment
          Thank you for the clarification.
        Your message has been successfully submitted and would be delivered to recipients shortly.