Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/robots.txt/highlights.scm')
| -rw-r--r-- | runtime/queries/robots.txt/highlights.scm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/runtime/queries/robots.txt/highlights.scm b/runtime/queries/robots.txt/highlights.scm new file mode 100644 index 00000000..b6eec1b6 --- /dev/null +++ b/runtime/queries/robots.txt/highlights.scm @@ -0,0 +1,28 @@ +(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 |