Debian Codegraph @

runtime/queries/json-ld/highlights.scm

raw symbols SCIP
1 ; inherits: json
2
3 ; https://www.w3.org/TR/json-ld/#syntax-tokens-and-keywords
4 ((string (string_content) @keyword)
5 (#any-of? @keyword
6 "@base"
7 "@container"
8 "@context"
9 "@direction"
10 "@graph"
11 "@id"
12 "@import"
13 "@included"
14 "@index"
15 "@json"
16 "@language"
17 "@list"
18 "@nest"
19 "@none"
20 "@prefix"
21 "@propagate"
22 "@protected"
23 "@reverse"
24 "@set"
25 "@type"
26 "@value"
27 "@version"
28 "@vocab"))
29
30 ((pair
31 value: (string (string_content) @string.special.url))
32 (#match? @string.special.url "^https?://"))
33
34 ((array
35 (string (string_content) @string.special.url))
36 (#match? @string.special.url "^https?://"))
37
38 ; https://www.w3.org/TR/json-ld/#dfn-base-direction
39 ((pair
40 key: (string (string_content) @keyword)
41 value: (string (string_content) @type.enum.variant))
42 (#eq? @keyword "@direction")
43 (#any-of? @type.enum.variant "ltr" "rtl"))