File tree Expand file tree Collapse file tree 6 files changed +150
-1
lines changed Expand file tree Collapse file tree 6 files changed +150
-1
lines changed Original file line number Diff line number Diff line change 222222 url = https://github.com/WhatsApp/tree-sitter-erlang
223223 branch = main
224224 update = none
225- ignore = dirty
225+ ignore = dirty
226+ [submodule "repos/r "]
227+ path = repos/r
228+ url = https://github.com/r-lib/tree-sitter-r.git
229+ branch = master
230+ update = none
231+ ignore = dirty
Original file line number Diff line number Diff line change 11# Changelog
22
33## Unreleased
4+ - Add ` R ` grammar
5+
46
57## 0.12.5 - 2022-11-14
68- Add ` erlang ` grammar
Original file line number Diff line number Diff line change 1+ ; highlights.scm
2+
3+
4+ ; Literals
5+
6+ (integer) @number
7+
8+ (float) @float
9+
10+ (complex) @number
11+
12+ (string) @string
13+ (string (escape_sequence) @string.escape )
14+
15+ (comment) @comment
16+
17+ (identifier) @variable
18+
19+ (formal_parameters (identifier) @parameter )
20+ (formal_parameters (default_parameter (identifier) @parameter ))
21+
22+ ; Operators
23+ [
24+ "="
25+ "<-"
26+ "<<-"
27+ "->>"
28+ "->"
29+ ] @operator
30+
31+ (unary operator: [
32+ "-"
33+ "+"
34+ "!"
35+ "~"
36+ ] @operator )
37+
38+ (binary operator: [
39+ "-"
40+ "+"
41+ "*"
42+ "/"
43+ "^"
44+ "<"
45+ ">"
46+ "<="
47+ ">="
48+ "=="
49+ "!="
50+ "||"
51+ "|"
52+ "&&"
53+ "&"
54+ ":"
55+ "~"
56+ ] @operator )
57+
58+ [
59+ "|>"
60+ (special)
61+ ] @operator
62+
63+ (lambda_function "\\" @operator )
64+
65+ [
66+ "("
67+ ")"
68+ "["
69+ "]"
70+ "{"
71+ "}"
72+ ] @punctuation.bracket
73+
74+ (dollar "$" @operator )
75+
76+ (subset2
77+ [
78+ "[["
79+ "]]"
80+ ] @punctuation.bracket )
81+
82+ [
83+ "in"
84+ (dots)
85+ (break)
86+ (next)
87+ (inf)
88+ ] @keyword
89+
90+ [
91+ (nan)
92+ (na)
93+ (null)
94+ ] @type.builtin
95+
96+ [
97+ "if"
98+ "else"
99+ "switch"
100+ ] @conditional
101+
102+ [
103+ "while"
104+ "repeat"
105+ "for"
106+ ] @repeat
107+
108+ [
109+ (true)
110+ (false)
111+ ] @boolean
112+
113+ "function" @keyword.function
114+
115+ (call function: (identifier) @function )
116+ (default_argument name: (identifier) @parameter )
117+
118+
119+ (namespace_get function: (identifier) @method )
120+ (namespace_get_internal function: (identifier) @method )
121+
122+ (namespace_get namespace: (identifier) @namespace
123+ "::" @operator )
124+ (namespace_get_internal namespace: (identifier) @namespace
125+ ":::" @operator )
126+
127+ ; Error
128+ (ERROR) @error
Original file line number Diff line number Diff line change 1+ ; locals.scm
2+
3+ (function_definition) @local.scope
4+
5+ (formal_parameters (identifier) @local.definition )
6+
7+ (left_assignment name: (identifier) @local.definition )
8+ (equals_assignment name: (identifier) @local.definition )
9+ (right_assignment name: (identifier) @local.definition )
10+
11+ (identifier) @local.reference
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ See `tree-sitter-langs-repos'."
109109 (elm-mode . elm)
110110 (elixir-mode . elixir)
111111 (erlang-mode . erlang)
112+ (ess-r-mode . r)
112113 (go-mode . go)
113114 (haskell-mode . haskell)
114115 (hcl-mode . hcl)
You can’t perform that action at this time.
0 commit comments