quoted-strings: allow-quoted-quotes to guidelines
This commit is contained in:
@@ -149,7 +149,7 @@ CONF = {'quote-type': ('any', 'single', 'double'),
|
|||||||
'required': (True, False, 'only-when-needed'),
|
'required': (True, False, 'only-when-needed'),
|
||||||
'extra-required': [str],
|
'extra-required': [str],
|
||||||
'extra-allowed': [str],
|
'extra-allowed': [str],
|
||||||
'allow-quoted-quotes': (True, False)}
|
'allow-quoted-quotes': bool}
|
||||||
DEFAULT = {'quote-type': 'any',
|
DEFAULT = {'quote-type': 'any',
|
||||||
'required': True,
|
'required': True,
|
||||||
'extra-required': [],
|
'extra-required': [],
|
||||||
@@ -225,7 +225,6 @@ def check(conf, token, prev, next, nextnext, context):
|
|||||||
if (not token.plain) and (token.style == "|" or token.style == ">"):
|
if (not token.plain) and (token.style == "|" or token.style == ">"):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check value is quoted qoute
|
|
||||||
if (conf['allow-quoted-quotes'] is True and (not token.plain)
|
if (conf['allow-quoted-quotes'] is True and (not token.plain)
|
||||||
and ((token.style == "'" and '"' in token.value) or
|
and ((token.style == "'" and '"' in token.value) or
|
||||||
(token.style == '"' and "'" in token.value))):
|
(token.style == '"' and "'" in token.value))):
|
||||||
|
|||||||
Reference in New Issue
Block a user