Skip to content

Commit

Permalink
Fix doc comments mentioning bibtex
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaf committed Aug 23, 2021
1 parent 8d43dda commit bd75a04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (*SourceQuery) queryNode() {}
// ----------------------------------------------------------------------------
// Files and packages

// A File node represents a bibtex source file.
// A File node represents a query source file.
//
// The Comments list contains all comments in the source file in order of
// appearance, including the comments that are pointed to from other nodes
Expand Down
4 changes: 2 additions & 2 deletions internal/parser/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const (
Trace Mode = 1 << iota // print a trace of parsed productions
)

// ParseFile parses the source code of a single bibtex source file and returns
// ParseFile parses the source code of a single query source file and returns
// the corresponding ast.File node. The source code may be provided via the
// filename of the source file, or via the src parameter.
//
Expand Down Expand Up @@ -82,7 +82,7 @@ func ParseFile(fset *gotok.FileSet, filename string, src interface{}, mode Mode)

// set result values
if f == nil {
// src is not a valid bibtex source file - satisfy ParseFile API and
// src is not a valid query source file - satisfy ParseFile API and
// return a valid (but) empty *ast.File
f = &ast.File{Name: filename}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ func (p *parser) parseFile() *ast.File {
}

// Don't bother parsing the rest if we had errors scanning the first token.
// Likely not a bibtex source file at all.
// Likely not a query source file at all.
if p.errors.Len() != 0 {
return nil
}
Expand Down

0 comments on commit bd75a04

Please sign in to comment.