odoo-lsp 0.6.2

Language server for Odoo Python/JS/XML
Documentation
# 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: { name: variable.parameter.function-call.python }
      2: { name: keyword.operator.assignment.python }
      3: { name: string.quoted.python }
    endCaptures:
      1: { name: string.quoted.python }
    contentName: meta.embedded.expression.python
    patterns:
      - include: source.python#expression