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

Update GoSublime-Go.tmLanguage #755

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update GoSublime-Go.tmLanguage #755

wants to merge 2 commits into from

Conversation

mwf
Copy link

@mwf mwf commented Feb 5, 2017

I've fixed explicit argument indexes according to current spec https://golang.org/pkg/fmt/

Format is now highlighted when using indexes [n] in different cases.
Please, check the syntax highlighting for:

fmt.Printf("\nfoo %[1]s %[1]s", "bar")
fmt.Printf("\n%d %d %#[1]x %#x", 16, 17)
fmt.Printf("\n%#20[2]x %+#20[1]x", 16, 17)
fmt.Printf("\n%[3]*.[2]*[1]f", 12.0, 2, 6)
fmt.Printf("\n%6.2f", 12.0)
fmt.Printf("\n%*.*f", 6, 2, 12.0)

I wanted to know what should I do with GoSublime-Go.tmLanguage.json - this file seems to be redundant and autogenerated somehow. If it's not used by Sublime itself why do you need it?

Fixed explicit argument indexes according to current spec https://golang.org/pkg/fmt/

Format is now highlighted when using indexes [n] for different cases.
Width and precision always come first.
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.

1 participant