[vim/vim] runtime(odin): fix indent issue/add test (PR #20658)

6 views
Skip to first unread message

Maxim Kim

unread,
6:52 AM (2 hours ago) 6:52 AM
to vim/vim, Subscribed

following odin code is incorrectly indented:

        ...
            fmt.println("Hellope")
        }

        // Fallthrough statement

    // fallthrough can be used to explicitly fall through into the next case block:

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20658

Commit Summary

  • 63ea9e4 runtime(odin): fix indent issue/add test
  • d2d5b04 fix IsCommentOrString

File Changes

(3 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20658@github.com>

Maxim Kim

unread,
7:16 AM (2 hours ago) 7:16 AM
to vim/vim, Subscribed
habamax left a comment (vim/vim#20658)

Are indent tests the part of the whole testing suite or they need to be run manually?


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20658/c4825916438@github.com>

Maxim Kim

unread,
7:23 AM (2 hours ago) 7:23 AM
to vim/vim, Subscribed
habamax left a comment (vim/vim#20658)

note, there are still minor issues with indenting of the hanging comments, I will address them in other PRs when I have time.

Example:

		z: f64 // `z` is typed of type `f64` (64-bit floating point number)
		z = 1  // `1` is an untyped integer literal which can be implicitly converted to `f64`
				// No need for any suffixes or decimal places like in other languages
				// (with the exception of negative zero, which must be given as `-0.0`)
				// CONSTANTS JUST WORK!!!


		// Assignment statements
		h: int = 123 // declares a new variable `h` with type `int` and assigns a value to it
		h = 637 // assigns a new value to `h`


vs

		z: f64 // `z` is typed of type `f64` (64-bit floating point number)
		z = 1  // `1` is an untyped integer literal which can be implicitly converted to `f64`
			   // No need for any suffixes or decimal places like in other languages
			   // (with the exception of negative zero, which must be given as `-0.0`)
			   // CONSTANTS JUST WORK!!!


			   // Assignment statements
		h: int = 123 // declares a new variable `h` with type `int` and assigns a value to it
		h = 637 // assigns a new value to `h`


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20658/c4825931238@github.com>

dkearns

unread,
7:29 AM (2 hours ago) 7:29 AM
to vim/vim, Subscribed
dkearns left a comment (vim/vim#20658)

Are indent tests the part of the whole testing suite

Yes, your change is good to go.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20658/c4825946815@github.com>

Reply all
Reply to author
Forward
0 new messages