atom / snippets

Atom snippets package
MIT License
205 stars 100 forks source link

Few snippets expand with 'internal' chars #232

Closed yuriihabrusiev closed 7 years ago

yuriihabrusiev commented 7 years ago

Prerequisites

Description

I have such snippets:

'.source.ruby':
  'byebug':
    'prefix': 'bb'
    'body': 'byebug'
    'description': 'Debugging in Ruby 2'
    'descriptionMoreURL': 'https://github.com/deivid-rodriguez/byebug'
  'assert_instance_of':
    'prefix': 'asio'
    'body': 'assert_instance_of ${1:class}, ${2:obj}${3:, "${0:message}"'
    'leftLabel': 'minitest'
    'description': "Ensures that 'obj' is an instance of 'class'."
  'assert_kind_of':
    'prefix': 'asko'
    'body': 'assert_kind_of ${1:class}, ${2:obj}${3:, "${0:message}"'
    'leftLabel': 'minitest'
    'description': "Ensures that 'obj' is an instance of 'class' or is descending from it."

And they produce this result:

    assert_instance_of class, obj${3:, "message"
    assert_kind_of class, obj${3:, "message"
screen shot 2017-02-10 at 11 19 31 pm

Versions

Atom    : 1.14.1
Electron: 1.3.13
Chrome  : 52.0.2743.82
Node    : 6.5.0
apm  1.15.3
npm  3.10.5
node 4.4.5 x64
python 2.7.13
git 2.11.1