Skip to content

Instantly share code, notes, and snippets.

@Morozzzko
Created January 14, 2023 14:45
Show Gist options
  • Select an option

  • Save Morozzzko/40f5ac47d86237de3d507aaa794211a0 to your computer and use it in GitHub Desktop.

Select an option

Save Morozzzko/40f5ac47d86237de3d507aaa794211a0 to your computer and use it in GitHub Desktop.
nvim-treesitter gets stuck if I try to type <% on a line before yield
<!DOCTYPE html>
<html>
<head>
<%= csrf_meta_tags %>
</head>
<body>
<!-- start typing an ERB tag on the next line -->
<%= yield %>
</body>
</html>
@Morozzzko
Copy link
Author

Basically it's impossible to write

  <body>
    <!-- start typing an ERB tag on the next line -->
    <%= "Foo" %>
    <%= yield %>
  </body>

Yet it's possible to write

  <body>
    <!-- start typing an ERB tag on the next line -->
    <%= yield %>
    <%= "Foo" %>
  </body>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment