fixed dependencies

This commit is contained in:
nuknal
2024-10-24 15:46:01 +08:00
parent d16a5bd9c0
commit 1161e8d054
2005 changed files with 690883 additions and 0 deletions

43
vendor/github.com/go-latex/latex/token/kind_string.go generated vendored Normal file
View File

@@ -0,0 +1,43 @@
// Code generated by "stringer -type Kind"; DO NOT EDIT.
// Copyright ©2020 The go-latex Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package token
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Invalid-0]
_ = x[Macro-1]
_ = x[EmptyLine-2]
_ = x[Comment-3]
_ = x[Space-4]
_ = x[Word-5]
_ = x[Number-6]
_ = x[Symbol-7]
_ = x[Lbrace-8]
_ = x[Rbrace-9]
_ = x[Lbrack-10]
_ = x[Rbrack-11]
_ = x[Lparen-12]
_ = x[Rparen-13]
_ = x[Other-14]
_ = x[Verbatim-15]
_ = x[EOF-16]
}
const _Kind_name = "InvalidMacroEmptyLineCommentSpaceWordNumberSymbolLbraceRbraceLbrackRbrackLparenRparenOtherVerbatimEOF"
var _Kind_index = [...]uint8{0, 7, 12, 21, 28, 33, 37, 43, 49, 55, 61, 67, 73, 79, 85, 90, 98, 101}
func (i Kind) String() string {
if i < 0 || i >= Kind(len(_Kind_index)-1) {
return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
}

50
vendor/github.com/go-latex/latex/token/token.go generated vendored Normal file
View File

@@ -0,0 +1,50 @@
// Copyright ©2020 The go-latex Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package token defines constants representing the lexical tokens of
// LaTeX documents.
package token // import "github.com/go-latex/latex/token"
//go:generate stringer -type Kind
import (
"go/token"
)
// Kind is a kind of LaTeX token.
type Kind int
const (
Invalid Kind = iota
Macro
EmptyLine
Comment
Space
Word
Number
Symbol // +,-,?,>,>=,...
Lbrace
Rbrace
Lbrack
Rbrack
Lparen
Rparen
Other
Verbatim
EOF
)
// Token holds informations about a token.
type Token struct {
Kind Kind // Kind is the kind of token.
Pos Pos // Pos is the position of a token.
Text string
}
func (t Token) String() string { return t.Text }
// Pos is a compact encoding of a source position within a file set.
//
// Aliased from go/token.Pos
type Pos = token.Pos