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

1690Re: SV: [jslint] problems with Nesting

Expand Messages
  • abyssoft@ymail.com
    Dec 21, 2010
    • 0 Attachment
      Works now.
      Thank you.


      --- In jslint_com@yahoogroups.com, "Douglas Crockford" <douglas@...> wrote:
      >
      > --- In jslint_com@yahoogroups.com, "Jakob Kruse" <kruse@> wrote:
      > >
      > > JSLint (with the strict whitespace option) does not support the way you write an array. Specifically it does support a line break after a comma, but not between the last array element and the end brace. This leads to the "wrong indentation" error.
      > >
      > > /Jakob
      > >
      > >
      > > Fra: jslint_com@yahoogroups.com [mailto:jslint_com@yahoogroups.com] På vegne af abyssoft@
      > > Sendt: 22. november 2010 00:20
      > > Til: jslint_com@yahoogroups.com
      > > Emne: [jslint] problems with Nesting
      > >
      > >
      > > given the following snippet where » are tabs (4 space) and ---------- are begin and end markers. (the blank line after the start marker is intentional)
      > >
      > > ----------
      > >
      > > "use strict";
      > > //Library (Netsuite Objects)
      > > /*global NlobjAssistant, NlobjAssistantStep, NlobjButton, NlobjColumn, NlobjConfiguration, NlobjContext, NlobjError, NlobjField, NlobjFieldGroup, NlobjFile, NlobjForm, NlobjList, NlobjPortlet, NlobjRecord, NlobjRecord, NlobjRequest, NlobjResponse, NlobjSearchColumn, NlobjSearchFilter, NlobjSearchResult, NlobjSelectOption, NlobjSubList, NlobjTab
      > > */
      > > //Library (Netsuite API)
      > > /*global nlapiSearchRecord
      > > */
      > > //Library (IS_library_V2_00)
      > > /*global Global
      > > */
      > > var searchResults = nlapiSearchRecord(
      > > »'customrecord_is_module_codes',
      > > »null,
      > > »[
      > > »»new NlobjSearchFilter(
      > > »»»'internalid',
      > > »»»null,
      > > »»»"noneof",
      > > »»»[
      > > »»»»29,
      > > »»»»31,
      > > »»»»32,
      > > »»»»33
      > > »»»]
      > > »»)
      > > »]
      > > );
      > > ----------
      > >
      > > JSLint responds with a rather unexpected error
      > >
      > > Problem at line 27 character 5: Expected ']' to have an indentation at 9 instead at 5.
      >
      >
      > Thanks. Please try it now.
      >
      > In the future, please try to refine the problem text in bug reports. It is greatly appreciated if you try to make the example that demonstrates the problem as small as possible.
      >
    • Show all 5 messages in this topic