diff --git a/languages/xquery/xquery.tmLanguage b/languages/xquery/xquery.tmLanguage
index e4c5a42..24a2f1a 100644
--- a/languages/xquery/xquery.tmLanguage
+++ b/languages/xquery/xquery.tmLanguage
@@ -768,7 +768,7 @@
doublequotedString
begin
- (?<![-_a-zA-Z0-9:]>)\s*"(?!\s*</[-_a-zA-Z0-9:])
+ (?<![-_a-zA-Z0-9:'"]>)\s*"(?![\w\s()']*</[-_a-zA-Z0-9:])
beginCaptures
0
@@ -929,7 +929,7 @@
singlequotedString
begin
- (?<![-_a-zA-Z0-9:]>)\s*'(?!\s*</[-_a-zA-Z0-9:])
+ (?<![-_a-zA-Z0-9:'"]>)\s*'(?![\w\s()"]*</[-_a-zA-Z0-9:])
beginCaptures
0