Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Updated indent rules #35

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

Merged
merged 4 commits into from
Nov 19, 2019
Merged

Conversation

macMikey
Copy link
Contributor

@macMikey macMikey commented Mar 1, 2017

Rewritten indent rules address a variety of inconsistencies and other problems. Enjoy!


This change is Reviewable

macMikey and others added 4 commits October 20, 2015 12:07
The indent rules for LCS were causing a variety of bizarre behaviors in various circumstances.  I rewrote them to match them with the ones I wrote for SublimeText.
@macMikey macMikey closed this Mar 1, 2017
@macMikey macMikey deleted the UpdatedIndentRules branch March 1, 2017 16:00
@macMikey macMikey restored the UpdatedIndentRules branch March 13, 2017 20:30
@macMikey macMikey reopened this Mar 13, 2017
@bwmilby
Copy link
Collaborator

bwmilby commented Nov 10, 2019

Here's what these rules do for switch/case:

   switch tTest
   case "abc"
      -- code
      break
   default
      -- default code
   end switch

Better than the replaced rules:

   switch tTest
   case "abc"
      -- code
      break
   default
   -- default code
end switch

Here's what the IDE produces:

   switch tTest
      case "abc"
         -- code
         break
      default
         -- default code
   end switch

@bwmilby bwmilby added this to the v0.7.0 milestone Nov 19, 2019
@bwmilby bwmilby merged commit 02ce62b into livecode:master Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.