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

Issue with non-alphanumeric charcters #12

Closed
d0nkeyBOB opened this issue Feb 27, 2014 · 2 comments
Closed

Issue with non-alphanumeric charcters #12

d0nkeyBOB opened this issue Feb 27, 2014 · 2 comments

Comments

@d0nkeyBOB
Copy link

I've noticed some problems in creating snippets that revolve around characters like a hyphen or colon punctuation.

This is my test code:

# These snippets don't work
'.text.html':
  'Snippet-1':
    'prefix': 'sn1'
    'body': 'Snippet 1!'
  'Snippet 2':
    'prefix': 'sn-2'
    'body': 'Snippet 2!'
  'Snippet 3':
    'prefix': 'sn:3'
    'body': 'Snippet 3!'

# These snippets work
'.text.html':
  'Snippet 4':
    'prefix': 'sn4'
    'body': 'Snippet 4!'
  'Snippet 5':
    'prefix': 'sn_5'
    'body': 'Snippet 5!'

I also noticied for html scippets, you have to use '.text.html' instead of '.source.html'. When you use the 'snippet' snippet or follow the other examples, it only shows the '.source.' representation.

More on that problem is here:

http://discuss.atom.io/t/how-do-you-configure-use-snippets/335/4

Hope this makes sense. Using certain puncuation helps me categorize my snippets better instead of one full string. I may be a little OCD too.

Thanks.

@JAStanton
Copy link
Contributor

This has cropped up as a bug here: atom/language-php#7
and here: atom/language-ruby#9

@kevinsawicki
Copy link
Contributor

This should be fixed on master and will be included in the 0.66.0 release

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants