summaryrefslogtreecommitdiff
path: root/vendor/queries/css/textobjects.scm
blob: c6713c53243e3f7904cd712badb9e1c8a47d5912 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
; runtime/queries/css/textobjects.scm.
; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
; https://mozilla.org/MPL/2.0/).

; Rule sets and their declaration blocks
(rule_set) @function.around
(rule_set
  (block) @function.inside)

(keyframe_block_list) @function.around
(keyframe_block
  (block) @function.inside)

; At-rules with a body (e.g. @media, @supports)
(media_statement) @class.around
(media_statement
  (block) @class.inside)

; Declarations as key/value entries
(declaration) @entry.around
(declaration
  ":"
  (_) @entry.inside)

(comment) @comment.inside
(comment)+ @comment.around