vscode-elixir icon indicating copy to clipboard operation
vscode-elixir copied to clipboard

Add describe and test to the list of keywords

Open rakr opened this issue 6 years ago • 3 comments

Added describe and test to the list of keywords in order to differentiate them when using syntax highlighting.

rakr avatar Nov 02 '17 05:11 rakr

I must admit, i am not really good at regexes. But to clarify, would this match something like this:

def test do
  {:ok. nil}
end

?

timmhirsens avatar Nov 02 '17 10:11 timmhirsens

This would highlight the keyword describe and test in the test files differently

describe "homepage" do
  test "it displays the latest information on the homepage", %{conn: _conn} do
    ...
  end
end

rakr avatar Nov 04 '17 02:11 rakr

While it won't interfere with highlighting the function signature correctly, it highlights the use of a self defined test function elixir_syntax

But I would also like to see highlighting for test and describe!

woolfred avatar Nov 29 '17 13:11 woolfred