From 08926eb4a14ab03818059ac629e0c476f661e9aa Mon Sep 17 00:00:00 2001 From: matham Date: Thu, 18 Feb 2016 19:50:03 -0500 Subject: [PATCH] Make kv string detection more robust. Should make all legal python quoting legal in KV. Including mutliline text. --- kivy/lang/parser.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kivy/lang/parser.py b/kivy/lang/parser.py index de885ec84..0aee7d24f 100755 --- a/kivy/lang/parser.py +++ b/kivy/lang/parser.py @@ -34,7 +34,11 @@ Cache.register('kv.lang') __KV_INCLUDES__ = [] # precompile regexp expression -lang_str = re.compile('([\'"][^\'"]*[\'"])') +lang_str = re.compile( + "((?:'''.*?''')|" + "(?:(?:(?