I think we can simplify this part of the query if we check `list{` in the scanner. https://github.com/nkrkv/tree-sitter-rescript/blob/f2be69c639346cad0126c64ca256aa931467e008/queries/highlights.scm#L16-L21 Some editors don't support `priority` property, see https://github.com/helix-editor/helix/pull/4356#discussion_r998787554