File tree Expand file tree Collapse file tree
packages/common/src/scopeSupportFacets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,4 +5,7 @@ import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
55const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel ;
66
77export const rScopeSupport : LanguageScopeSupportFacetMap = {
8+ "comment.line" : supported ,
9+ ifStatement : supported ,
10+ "argument.actual" : supported ,
811} ;
Original file line number Diff line number Diff line change 11;; https://github.com/r-lib/tree-sitter-r/blob/main/src/grammar.json
2+ ;; https://github.com/r-lib/tree-sitter-r/blob/main/src/node-types.json
3+
4+ [
5+ (for_statement)
6+ (if_statement)
7+ (repeat_statement)
8+ (function_definition)
9+ ] @statement
10+
11+ (comment) @comment
12+ (if_statement) @ifStatement
13+ (argument) @argumentOrParameter
14+ (call) @functionCall
15+ (identifier) @identifier
16+
17+ ;; ;; https://github.com/r-lib/tree-sitter-r/blob/main/queries/highlights.scm
18+ ;; ;; Plus magrittr operators
19+ ;; [ "?" ":=" "=" "<-" "<<-" "->" "->>"
20+ ;; "~" "|>" "||" "|" "&&" "&"
21+ ;; "<" "<=" ">" ">=" "==" "!="
22+ ;; "+" "-" "*" "/" "::" ":::"
23+ ;; "**" "^" "$" "@" ":" "%in%"
24+ ;; "%>%" "%<>%" "%T>%" "%$%"
25+ ;; "special"
26+ ;; ] @operator
You can’t perform that action at this time.
0 commit comments