# yaml-language-server: $schema=https://json.schemastore.org/tmlanguage.json
# Injects into https://github.com/microsoft/vscode/blob/main/extensions/python/syntaxes/MagicPython.tmLanguage.json
scopeName: source.python.odoo
injectionSelector: L:meta.function-call.arguments.python
patterns:
- include: "#domainString"
repository:
domainString:
begin: \b(domain)\s*(=)\s*(["']{1,3})
end: (\3)
beginCaptures:
1:
2:
3:
endCaptures:
1:
contentName: meta.embedded.expression.python
patterns:
- include: source.python#expression