cursorless/queries/scss.scm
Andreas Arvidsson 0bf9021962
Migrated surrounding pair scope handler (#2457)
Fixes #2316

## Checklist

- [x] I have added
[tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)
- [/] I have updated the
[docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and
[cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet)
- [x] I have not broken the cheatsheet
- [x] Add `@disqualifyDelimiter` for all languages
- [x] Add plural form of surrounding pair
[scopes.py](5e9a2e9555/cursorless-talon/src/modifiers/scopes.py (L48))
- [x] Run talon tests
- [x] add multiline quad tests for plaintext?

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Pokey Rule <755842+pokey@users.noreply.github.com>
2024-07-28 08:53:22 +00:00

40 lines
792 B
Scheme

;; import css.scm
;; https://github.com/serenadeai/tree-sitter-scss/blob/master/src/grammar.json
(single_line_comment) @comment @textFragment
(if_statement) @ifStatement
(mixin_statement
(name) @functionName @name
) @namedFunction @functionName.domain @name.domain
(function_statement
(name) @functionName @name
) @namedFunction @functionName.domain @name.domain
(declaration
(variable_name) @name
) @_.domain
(parameter
(variable_name) @name
) @_.domain
(stylesheet) @namedFunction.iteration @functionName.iteration
(block
.
"{" @namedFunction.iteration.start.endOf @functionName.iteration.start.endOf
"}" @namedFunction.iteration.end.startOf @functionName.iteration.end.startOf
.
)
(binary_expression
[
"<"
"<="
">"
">="
] @disqualifyDelimiter
)