forestgao / jota-text-editor

Automatically exported from code.google.com/p/jota-text-editor
0 stars 0 forks source link

Apostrophes in writing, are handled handled like string begginning and end tokens #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For example, given the following text:

<div class="header">This header's text is it's own text</div>

What is the expected output? What do you see instead?
The text "s text is it" is highlighted, as you would expect in code. Is there 
any way to handle this edge case?

What version of the product are you using? On what operating system?
Jota: 0.2.03
Android: 3.2.1
Toshiba Thrive

Original issue reported on code.google.com by dwyer.b...@gmail.com on 16 Jan 2012 at 8:54

GoogleCodeExporter commented 9 years ago
Ah, this is expected behaviour.
This phrase matches below pattern.
string="(\\\"|.)*?"|'(\\\'|.)*?'

Highlight parser is very simple. 
So it's not perfect.

Original comment by jiro.a...@gmail.com on 17 Jan 2012 at 12:26

GoogleCodeExporter commented 9 years ago

Original comment by jiro.a...@gmail.com on 7 Feb 2012 at 2:27