Skip to content

Add Phoenix LiveEEx Template (.leex) file type support. #487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

crunchysoul
Copy link

@crunchysoul crunchysoul commented Mar 22, 2019

@jbodah I closed the original #484 , please check this new pull quest, thank you.

Add Phoenix LiveEEx Template (.leex) file syntax highlight support.
Add LiveView sigil (~L"""LiveView""") syntax highlight support in .ex file.
Update README.md

Screen shot of .leex syntax highlight:

Screen Shot 2019-03-22 at 4 43 05 pm

Screen shot of LiveView sigil syntax highlight in .ex:

Screen Shot 2019-03-22 at 4 44 57 pm

Add LiveView sigil (~L"""LiveView""") support in .ex.
Update README.md

it 'Live EEx' do
expect('~L"""liveview template"""').to include_elixir_syntax('elixirSigilDelimiter', '""""')
expect('~L"""liveview template"""').to include_elixir_syntax('elixirSigilDelimiter', '""""')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these expects different? Could we just have one?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible it would be nice to get a test on the inner sigil syntax being recognized. I can see if I can get one written

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the duplicated line, but haven't got time to write test for inner sigil syntax yet.

removed duplicated live view sigil spec
@jbodah
Copy link
Collaborator

jbodah commented Apr 17, 2019

Merged in #490

@jbodah jbodah closed this Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants