Skip to content

Instantly share code, notes, and snippets.

@egze
Last active May 25, 2020 12:50
Show Gist options
  • Save egze/07721af578b18d349f0e8571f115d6aa to your computer and use it in GitHub Desktop.
Save egze/07721af578b18d349f0e8571f115d6aa to your computer and use it in GitHub Desktop.
LiveView syntax
{ name = 'string.quoted.other.sigil.live_view';
comment = 'live_view sigil (allow for interpolation)';
begin = '\s?(~L""")$';
end = '^\s*("""[a-z]*)$';
beginCaptures = { 0 = { name = 'punctuation.definition.string.begin.elixir'; }; };
endCaptures = { 0 = { name = 'punctuation.definition.string.end.elixir'; }; };
patterns = (
{ include = 'text.elixir'; },
{ include = 'text.html.basic'; },
{ include = '#meta.embedded.line.elixir'; },
);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment