jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

Javascript annotation doesn't work properly. #128

Closed FichteFoll closed 8 years ago

FichteFoll commented 9 years ago

From @painty on May 4, 2015 4:35

In a js file test.js which has exactly 3 line codes, no more.

/* annotation */
var a='You Cant Annotate Me By Ctrl + /';
/* annotation */

I move cursor to line 2 , then press ctrl+/ what to expact:

/* annotation */
// var a='You Cant Annotate Me By Ctrl + /';
/* annotation */

but on ST3 Win Build3083 X64 it turns out to be

 annotation */
var a='You Cant Annotate Me By Ctrl + /';
/* annotation 

Seems that a js file cann't be annotated correctly in sitiation below: a js file which has both /*some annotaion*/ at the start and the end.

Copied from original issue: SublimeTextIssues/Core#829

FichteFoll commented 9 years ago

What exactly do you do between these two code snippets and what do you expect to happen?

FichteFoll commented 9 years ago

From @painty on May 4, 2015 9:23

@FichteFoll Operation and expection added.

FichteFoll commented 9 years ago

Okay, so the issue seems to only appear when the caret is at the end of the line in any of these three lines (not just line 2). It works properly if the caret is anywhere else.

Can you confirm?

painty commented 9 years ago

@FichteFoll Yes. And one more position which triggers the bug: the start of line 2.

whidy commented 9 years ago

wow seems css annotating does not work well also sometimes...

jrappen commented 8 years ago

Cannot reproduce with cursor anywhere on line 2 except the very end with Build 3111 on Win x64.

FichteFoll commented 8 years ago

I can still reproduce on 3111 at the end of any of the lines, as in my earlier comment.

FichteFoll commented 8 years ago

This issue has been moved back to the other repo.