mirror of
https://github.com/cursorless-dev/cursorless.git
synced 2024-10-04 04:47:29 +03:00
0bf9021962
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>
40 lines
792 B
Scheme
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
|
|
)
|