atom / snippets

Atom snippets package
MIT License
205 stars 100 forks source link

Unexpected autocomplete inside a <li> tag #224

Open mossarelli opened 7 years ago

mossarelli commented 7 years ago

Using Atom 1.12.4, autocomplete-snippets 1.11.0 and snippets 1.0.4

This is the custom snippet:

'.text.html.basic':
  'hyperlink':
    'prefix': 'a'
    'body': '<a href="#$1" class="underline">$2</a>$3'

When using a outside li, the autocomplete makes the snippet "hyperlink". When using it inside li, it wants to use a snippet called "anchor" which is not defined as custom. The picture below shows the issue: li

I've searched the issues and there's only one other issue resembling this, but it's not for HTML.

mossarelli commented 7 years ago

Solved by changing the name of the snippet from 'hyperlink' to 'custom a'.

Is there a name conflict error with the word hyperlink?

Please clarify in the documentation, what names for snippets can be used and can't.