From dc1e9e6b4fa32ffe407d597bf5997c7b733f5721 Mon Sep 17 00:00:00 2001 From: Gorash Date: Tue, 7 Sep 2021 11:45:34 +0000 Subject: [PATCH] [FIX] web: ace mode-qweb should highlight the groups odoo attribute Issue: the regexp does not parse the dot in groups. For example: `groups="base.group"` is not parsed as odoo/qweb attribute Part-of: odoo/odoo#74712 --- addons/web/static/lib/ace/mode-qweb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/lib/ace/mode-qweb.js b/addons/web/static/lib/ace/mode-qweb.js index d9372fac4cf..d126b7c57a1 100644 --- a/addons/web/static/lib/ace/mode-qweb.js +++ b/addons/web/static/lib/ace/mode-qweb.js @@ -53,10 +53,10 @@ define("ace/mode/qweb_highlight_rules", ["require", "exports", "module", "ace/li attributes_groups: [{ token: ["entity.other.attribute-name.xml.qweb", "keyword.operator.attribute-equals.xml", "text", "string.attribute-value.xml.start", "string.attribute-value.xml", "string.attribute-value.xml.end"], - regex: '(groups)(=)(\\s*)(")([\\s\\na-zA-Z0-9,_-]*)(")', + regex: '(groups)(=)(\\s*)(")([\\s\\na-zA-Z0-9.,_-]*)(")', }, { token: ["entity.other.attribute-name.xml.qweb", "keyword.operator.attribute-equals.xml", "text", "string.attribute-value.xml.start", "string.attribute-value.xml", "string.attribute-value.xml.end"], - regex: "(groups)(=)(\\s*)(')((?:[\\s\\na-zA-Z0-9,_-]*)*)(')", + regex: "(groups)(=)(\\s*)(')((?:[\\s\\na-zA-Z0-9.,_-]*)*)(')", }], attributes_sample: [{