File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -374,8 +374,8 @@ is used to limit the scan."
374
374
; ; Variable definitions
375
375
(,(elixir-rx (group identifiers)
376
376
(zero-or-more space)
377
- " ="
378
- (or (zero-or-more space)
377
+ ( repeat 1 " =" )
378
+ (or (or sigils identifiers space)
379
379
(one-or-more " \n " )))
380
380
1 font-lock-variable-name-face )
381
381
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ match=~r/foo/"
77
77
(elixir-test-with-temp-buffer
78
78
" ~r/\" /
79
79
x = 15"
80
- (should (eq (elixir-test-face-at 7 ) 'font-lock-variable-name-face ))))
80
+ (should (eq (elixir-test-face-at 8 ) 'font-lock-variable-name-face ))))
81
81
82
82
(ert-deftest elixir-mode-syntax-table/fontify-regex-with-question/1 ()
83
83
" https://github.com/elixir-lang/emacs-elixir/issues/36"
176
176
(elixir-test-with-temp-buffer
177
177
" \" #{1 + 2} is 3.\" "
178
178
(should (eq (elixir-test-face-at 1 ) 'font-lock-string-face ))
179
- ; ; (should (eq (elixir-test-face-at 3) 'font-lock-variable-name-face))
180
179
(should (eq (elixir-test-face-at 11 ) 'font-lock-string-face ))))
181
180
182
181
(ert-deftest elixir-mode-syntax-table/fontify-continuation-lines-assignment ()
@@ -186,6 +185,12 @@ end"
186
185
some_expr"
187
186
(should (eq (elixir-test-face-at 1 ) 'font-lock-variable-name-face ))))
188
187
188
+ (ert-deftest elixir-mode-syntax-table/dont-fontify-equal-match ()
189
+ :tags '(fontification syntax-table)
190
+ (elixir-test-with-temp-buffer
191
+ " this == that"
192
+ (should-not (eq (elixir-test-face-at 2 ) 'font-lock-variable-name-face ))))
193
+
189
194
(ert-deftest elixir-mode-syntax-table/fontify-triple-quoted-string ()
190
195
:tags '(fontification syntax-table)
191
196
(elixir-test-with-temp-buffer
You can’t perform that action at this time.
0 commit comments