File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 26
26
(elixir-smie-define-regexp comma " ," )
27
27
(elixir-smie-define-regexp -> " ->" )
28
28
(elixir-smie-define-regexp << " <<" )
29
- (elixir-smie-define-regexp >> " >>" ))
29
+ (elixir-smie-define-regexp >> " >>" )
30
+ (elixir-smie-define-regexp-opt parens " (" " )" " {" " }" " [" " ]" " <<" " >>" ))
30
31
31
32
(defvar elixir-tokenizer-syntax-table (let ((table (copy-syntax-table elixir-mode-syntax-table)))
32
33
(modify-syntax-entry ?\n " ." table)
81
82
(goto-char (if forwardp
82
83
(match-end 0 )
83
84
(match-beginning 0 )))
84
- (cdr found-token-class))
85
+ (if (string= " PARENS" (cdr found-token-class))
86
+ (buffer-substring-no-properties (match-beginning 0 ) (match-end 0 ))
87
+ (cdr found-token-class)))
85
88
((when (= ?\" (char-syntax (if forwardp
86
89
(following-char )
87
90
(preceding-char ))))
163
166
(expr)
164
167
)
165
168
(non-block-expr
166
- (" <<" non-block-expr " >>" )
167
169
(non-block-expr " OP" non-block-expr)
168
170
(non-block-expr " DOT" non-block-expr)
169
171
(non-block-expr " COMMA" non-block-expr)
170
172
(" (" statements " )" )
173
+ (" {" statements " }" )
174
+ (" [" statements " ]" )
171
175
(" STRING" ))
172
176
(match-statements
173
177
(match-statement " MATCH-STATEMENT-DELIMITER" match-statements)
You can’t perform that action at this time.
0 commit comments