Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if bodies aren't always indented #1

Closed
SethTisue opened this issue Nov 6, 2012 · 4 comments
Closed

if bodies aren't always indented #1

SethTisue opened this issue Nov 6, 2012 · 4 comments
Labels

Comments

@SethTisue
Copy link
Contributor

examples:

      if(r.isInstanceOf[_task])
      app.args.head.accept(new AgentTypeCheckerVisitor(currentProcedure, "OTPL"))
      else if(r.syntax.blockAgentClassString != null)
        chooseVisitorAndContinue(r.syntax.blockAgentClassString, app.args)
      else
        super.visitReporterApp(app)
          try {
            if(java.lang.Boolean.getBoolean("org.nlogo.lang.requireSingularBreedArgument"))
            cAssert(breedList.size == 2,
                    "breed requires a singular form since org.nlogo.lang.requireSingularBreedArgument is true",
                    token)
          }
@SethTisue
Copy link
Contributor Author

In my testing so far, this is the only issue I found that would prevent me from using this in my daily work.

@hvesalai hvesalai closed this as completed Nov 6, 2012
@hvesalai hvesalai reopened this Nov 6, 2012
@SethTisue
Copy link
Contributor Author

after f8b28282ecd449b741f771f68ecc0b17d84dddea if/else now ends up looking like this though:

        if (isLinkBreed) AgentKind.Link
          else AgentKind.Turtle)

@hvesalai hvesalai reopened this Nov 6, 2012
@hvesalai
Copy link
Owner

hvesalai commented Nov 6, 2012

Uh-oh. Ok late night commits never good. I'll take a new look at it with fresh eyes.

Although I couldn't reproduce that.

@SethTisue
Copy link
Contributor Author

opened #3 on the if/else thing since (as we said on IRC) it isn't actually related to this ticket

jackcviers pushed a commit to jackcviers/scala-mode2 that referenced this issue May 19, 2022
WIP: Adding cycling indent *NOT READY FOR MERGE*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants