From ec7b66894164f073faf95d9e461d063745770d78 Mon Sep 17 00:00:00 2001 From: Joseph Kato Date: Sat, 8 Jun 2024 00:44:11 -0700 Subject: [PATCH] docs: add deprecation note --- internal/core/format.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/core/format.go b/internal/core/format.go index c67829fe..5f4069ac 100755 --- a/internal/core/format.go +++ b/internal/core/format.go @@ -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)(?:(//.+)|(/\*.+\*/))`,