Skip to content

Commit

Permalink
docs: add deprecation note
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Jun 8, 2024
1 parent 1a87d11 commit ec7b668
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/core/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ import (
// we only want to lint // or /* comments in a C++ file. Multiple formats are
// mapped to a single extension (e.g., .java -> .c) because many languages use
// the same comment delimiters.
//
// Deprecated: When possible, we now use tree-sitter grammars to determine the
// comment delimiters for a given file. See the `lint/code` package for more
// information.
//
// TODO: This should be removed once we have tree-sitter grammars for all
// languages.
var CommentsByNormedExt = map[string]map[string]string{
".c": {
"inline": `(?:^|\s)(?:(//.+)|(/\*.+\*/))`,
Expand Down

0 comments on commit ec7b668

Please sign in to comment.