Framer icon indicating copy to clipboard operation
Framer copied to clipboard

Comment color coding breaks when comment follows String and contains quote(s)

Open IanBellomy opened this issue 8 years ago • 3 comments

And some other oddity.

screen shot 2017-01-27 at 9 33 19 pm

IanBellomy avatar Jan 28 '17 02:01 IanBellomy

Heh, that's a bug :) /cc @onnlucky

nvh avatar Feb 06 '17 11:02 nvh

Yeah, but it is a known issue, it shows the limits of our current highlighting strategy. If it helps, it will not break if one side uses single quotes, and the other side double quotes, e.g. this does show up correctly: "123" # '123'

onnlucky avatar Feb 07 '17 13:02 onnlucky

If it matters, this came up when I was making instructional materials and needed to distinguish between variables, key words, and strings. Simple example:

word = "cat"    #  'word' is a variable that contains the string "cat".

IanBellomy avatar Feb 23 '17 14:02 IanBellomy