Skip to content

Go Syntax Highlighting has many bugs #48

@stevekuznetsov

Description

@stevekuznetsov

As the image shows below, there are a number of issues with the Go syntax highlighting provided by this package (and inherited from GoSublime?):

  • Grave accent ``` strings do not correctly highlight for formatting arguments like %s
  • Normal " strings do not syntax highlight correctly for numbered formatting arguments like %[1]s
  • Primitives inside of function definition arguments or returns do not syntax highlight
  • Function definitions that take more than one line cause the function name to stop highlighting
  • Type definitions for function types cause the type keyword to stop highlighting
  • Function definitions following a type definition of a function type do not highlight the func keyword or the function name
    examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions