File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -55,3 +55,20 @@ buffer."
5555 " ~r/\" /
5656x = 15"
5757 (should (eq (elixir-test-face-at 7 ) 'font-lock-variable-name-face ))))
58+
59+ (ert-deftest elixir-mode-syntax-table/fontify-regex-with-question/1 ()
60+ " https://github.com/elixir-lang/emacs-elixir/issues/36"
61+ :tags '(fontification syntax-table)
62+ (elixir-test-with-temp-buffer
63+ " ~r/^matt: (?<ct>\d +)$/mg
64+ x = 15"
65+ (should (eq (elixir-test-face-at 4 ) 'font-lock-string-face ))
66+ (should (eq (elixir-test-face-at 25 ) 'font-lock-variable-name-face ))))
67+
68+ (ert-deftest elixir-mode-syntax-table/fontify-regex-with-question/2 ()
69+ " https://github.com/elixir-lang/emacs-elixir/issues/29"
70+ :tags '(fontification syntax-table)
71+ (elixir-test-with-temp-buffer
72+ " a = \"\" <> \" ?\"
73+ x = 15"
74+ (should (eq (elixir-test-face-at 15 ) 'font-lock-variable-name-face ))))
You can’t perform that action at this time.
0 commit comments