diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 662fec9..3c0d532 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,8 @@ on: push: paths: - '**/*.go' + - go.mod + - go.sum - .github/workflows/ci.yml concurrency: diff --git a/TODO.md b/TODO.md index 548ddcf..8b2ca71 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,12 @@ - [ X ] Determine package name to be generated - [ ] Determine language to be used in lexer +```go +lexer := lexers.Match("foo.go") +if lexer == nil { +lexer = lexers.Fallback +} +chroma.Coalesce(lexer) +``` - [ ] Drill down style - [ ] Flag for with version - [ ] Flag for with timestamp