-
Notifications
You must be signed in to change notification settings - Fork 108
Non italics text treated as italics after C code block #214
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
In C language, /* */
stands for comment. But in some case, if we use /* */
in code block, *
will be treated as italics begin. This only happen in C or Cpp code block, Java and C# code block do not have this matter.
Steps to Reproduce
- Change the file highlight to
Github Markdown
. - type the following code in a C code block respectively. (See the screenshot below)
{
/* comment */
}
/* comment */
Only the first format will cause some matter. That means /* */
in { }
scope.
Expected behavior: [What you expect to happen]
These two code segments are both correct, and the text after the code block should not be italic.
{ /* comment */ }
This line should not be italic.
/* comment */
This line should not be italic.
Actual behavior: [What actually happens]
Non italics text treated as italics in first format.
If we delete the first {
, the highlight is correct.
And if we change the language of the code block from c to java or c#, this problem do not happen.
Reproduces how often: [What percentage of the time does it reproduce?]
Always.
Versions
Atom : 1.21.0
Electron: 1.6.9
Chrome : 56.0.2924.87
Node : 7.4.0
apm 1.18.5
npm 3.10.10
node 6.9.5 x64
python 3.5.1
git 2.9.3.windows.3
visual studio 2015
OS: Windows 10 64 bit
Additional Information
There are some similar issues:
But this problem still not solved...