[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:
@@ -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: [{
|
||||
|
||||
Reference in New Issue
Block a user