Skip to content

Commit cb55223

Browse files
alecthomasclaude
andcommitted
chore: remove commented-out config fields and dead comment
DontStripNL, StripAll and TabSize were never implemented, and the index(reg) call refers to a registration path that no longer exists. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent eb17b23 commit cb55223

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

lexer.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,10 @@ type Config struct {
4242
// Defaults to multiline.
4343
NotMultiline bool `xml:"not_multiline,omitempty"`
4444

45-
// Don't strip leading and trailing newlines from the input.
46-
// DontStripNL bool
47-
48-
// Strip all leading and trailing whitespace from the input
49-
// StripAll bool
50-
5145
// Make sure that the input ends with a newline. This
5246
// is required for some lexers that consume input linewise.
5347
EnsureNL bool `xml:"ensure_nl,omitempty"`
5448

55-
// If given and greater than 0, expand tabs in the input.
56-
// TabSize int
57-
5849
// Priority of lexer.
5950
//
6051
// If this is 0 it will be treated as a default of 1.

lexers/lexers.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ var embedded embed.FS
1313
// GlobalLexerRegistry is the global LexerRegistry of Lexers.
1414
var GlobalLexerRegistry = func() *chroma.LexerRegistry {
1515
reg := chroma.NewLexerRegistry()
16-
// index(reg)
1716
paths, err := fs.Glob(embedded, "embedded/*.xml")
1817
if err != nil {
1918
panic(err)

0 commit comments

Comments
 (0)