GoSublime icon indicating copy to clipboard operation
GoSublime copied to clipboard

Refinements to GoSublime-Go syntax

Open brynbellomy opened this issue 10 years ago • 2 comments

Extracted a lot of the existing regexes into the repository section of the syntax, so that they'd be reusable. Also added some new stuff.

Happy to refine this further if you have ideas/thoughts.

Screenshots

  • Struct field tags are highlightable

image

  • In-function var and const blocks
  • Struct and slice literals

image

  • Method receivers and their local instances are scoped separately

image

... etc.

brynbellomy avatar Nov 22 '15 14:11 brynbellomy

Perhaps these improvements can be submitted to the https://github.com/ironcladlou/GoTools project as well? It is actively maintained. I've switched to it from GoSublime.

ottob avatar Dec 18 '15 10:12 ottob

Thanks for looking at this bryn. Have you seen this issue https://github.com/sublimehq/Packages/issues/48?

ottob avatar Dec 18 '15 10:12 ottob