gundermanc / vs-go

Hack and slash Go language service prototype for VS Win + VS Mac
MIT License
8 stars 2 forks source link

Erroneous parse error #17

Closed gundermanc closed 5 years ago

gundermanc commented 5 years ago

Highlights part of comment and reports an error.

// Hello-world sample in Go!
// By: Christian Gunderman

// This file's contents demonstrate the extent of GoLang support
// in Go for Visual Studio Extension.

// Package declarations can be parsed.
package m

// Can parse import statements.
import "fmt"

// Functions with no parameters and no body contents can be too.
// Outlining works here, so you should see structure guides and outlining regions.
func main( /* params are not yet supported */ ) {

    /* Body is not yet supported but smart indent should work in this block */
}

// Can have multiple functions in a file.
func notmain() {

}

image