Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Snippets do not work after punctuation #151

Open
@djpowers

Description

@djpowers

Hello,

I noticed that when trying to tab-complete an ERB tag, it does not work if the cursor is directly after HTML tags with no whitespace, and seemingly any other punctuation. I wasn't sure if this was intentional, or a limitation of some sort.

I'm using Atom 0.210.0 on Mac OS X 10.10.3.

To reproduce:

  1. Open a new document and set the syntax to HTML (Rails).
  2. Autocomplete a span tag, which places the cursor in between: <span></span>
  3. Type = and then press tab to trigger the snippet.

Expected behavior:
An ERB tag would be created inside the span, like so:

<span><%=  %></span>

Actual behavior:
The cursor jumps ahead to after the closing tag without creating the ERB tag:

<span>=</span>

Triggering this snippet works if it directly follows whitespace or an alphanumeric character, so I wasn't sure if following symbols should work the same.

Please let me know if I missed some documentation, or if this should be reported elsewhere. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions