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

Special characters not recognised as the beginning of a word #322

Open
1 task done
laurmurclar opened this issue Oct 13, 2017 · 1 comment
Open
1 task done

Special characters not recognised as the beginning of a word #322

laurmurclar opened this issue Oct 13, 2017 · 1 comment

Comments

@laurmurclar
Copy link

Prerequisites

Description

A closing quote, bracket, etc. is added when an opening character is inserted in front of special characters (like #, !, , etc). I believe this is a bug (or inconsistency with the intended behaviour) since alphanumeric characters do not have this behaviour. For example, if a single-quote is inserted in front of an alphanumeric character no closing single-quote is added.

You can see both behaviours in the below GIF:
special-chars

Steps to Reproduce

  1. Create a file which contains a word beginning with a special character (such as #).
  2. Insert the opening character from an auto-completing pair (such as ') in front of the #.
  3. Observe that the closing character from that pair is added by the auto-completion.
  4. Insert the same opening character in front of a word beginning with an alpha-numeric character.
  5. Observe that no closing character is added.

Expected behavior: No closing character is added.

Actual behavior: A closing character is added by auto-completion.

Reproduces how often: Always 💯

Versions

atom --version
Atom    : 1.21.1
Electron: 1.6.15
Chrome  : 56.0.2924.87
Node    : 7.4.0
apm --version
apm  1.18.5
npm  3.10.10
node 6.9.5 x64
python 2.7.13
git 2.12.0
sw_vers
ProductName:	Mac OS X
ProductVersion:	10.12.6
BuildVersion:	16G29

Additional Information

I found a similar issue which describes almost the same thing except existing openers are not being closed at the end of a word (which ends in a special character): #298

@laurmurclar
Copy link
Author

laurmurclar commented Oct 13, 2017

I'm going to try solve this issue as part of Hacktoberfest 😄 I can't assign myself though, so leaving this comment instead

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

1 participant