i am building text editor with pyqt and i want to set font STYLES[error] when (") not end with another (") , and when it end correctly set font STYLES[string] , my problem is when ("") ending ... any character after ("") takes font STYLES[error] and i want to stop it but can't set correct regular expression
`
STYLES = {
'string' : format('magenta') ,
'error' : format('red' , 'underline') ,
}
rules +=[(r'"[^"\\]*(\\.[^"\\]*)*', 0, STYLES['error']),
(r'"[^"\\]*(\\.[^"\\]*)*"', 0, STYLES['string']),]
`