about lint

i want to match some custom docment to diagnostics
for example i want ‘123’ is error show the lint error
i must use the mark decoration? :smiling_face_with_tear: