[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
This commit is contained in:
Gorash
2021-09-08 10:21:42 +00:00
committed by Xavier-Do
parent 8936c0b25a
commit dc1e9e6b4f
+2 -2
View File
@@ -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: [{