1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-07 08:41:40 +01:00
helix/runtime/queries/robots.txt/highlights.scm
Kristoffer Plagborg Bak Sørensen 178c55708a
feat: add robots.txt language (#14089)
2025-08-03 17:19:09 -04:00

29 lines
490 B
Scheme

(comment) @comment
(directive) @attribute
(rule (unknownDirective) @attribute) @diagnostic.error
(userAgent) @namespace
(value) @string
((value) @string.special.path
(#match? @string.special.path "^/"))
((value) @ui.text.directory
(#match? @ui.text.directory "^/.+/$"))
((value) @operator
(#match? @operator "\\*"))
(rule
(directive (sitemap))
(value) @string.special.url)
(rule
(directive (crawlDelay))
(value) @constant.numeric.integer)
":" @punctuation.delimiter