-
Notifications
You must be signed in to change notification settings - Fork 152
C++ syntax settings selector not working properly #54
Comments
Thanks for reporting this, this is most likely a core bug where the config system is corrupting the selectors. |
The problem might actually be in selector = ".c\\+\\+.source"
selector = slick.parse(selector).toString() # => "*.c++.source"
selector = slick.parse(selector).toString() # => "*.c ++ *.source" It removes the backslashes, which are needed the next time the selector is parsed. |
The simplest fix would probably be @nickgravelyn's idea:
@kevinsawicki what do you think? |
Yeah, I'm all for changing it, the pluses were never a good idea to begin with and were just a leftover from converting the TextMate bundle. The downside is breakage of any themes, snippets, etc. that are currently out there. |
👍 |
@nickgravelyn, this is fixed on master and will be in the next Atom release, v0.166. Thanks! |
Awesome, thanks for the quick and decisive response. 👍 |
I'm just getting ramped up with Atom and really liking it, however I'm having an issue with C++ syntax settings. I've added the following to my config:
And it works just fine. However if I open the settings UI it modifies my config to this:
This doesn't end up working; my C++ files now show up with my default 2 space tab size instead of my desired 4 spaces.
I've also noticed that if I use the system UI to modify the tab settings, it saves it as this:
Which is not only a different format that other source selectors, but also still fails to be applied properly.
More odd is that after changing the setting in the UI to 4 and closing settings, when I reopen the settings, it still shows 2 for the tabLength.
I'm not sure how this is all wired up on the backend (haven't dug into code yet), but it definitely seems to be having issues. Perhaps if the issue is with the
++
it might be good to change the syntax scope to "cpp" instead, as it's a little simpler.I'm using Atom 0.165.0 on OS X, installed just earlier today using the download button from https://atom.io. The Language C package is version 0.33.0. If you need any other details, please
The text was updated successfully, but these errors were encountered: