# OpenQASM for an editor configured by languages.toml: the language server, # the formatter, the debugger (`wai-quantum dap`) and the tree-sitter # grammar. Add this to languages.toml in your configuration directory, put # runtime/queries/openqasm/ under its runtime/ directory, then fetch and build # the grammar with the editor's `--grammar fetch` and `--grammar build`. # # `rev` names a branch here; pin it to a commit for a build that never moves. [language-server.wai-quantum] command = "wai-quantum" args = ["lsp"] [[language]] name = "openqasm" scope = "source.openqasm" file-types = ["qasm"] comment-tokens = "//" block-comment-tokens = { start = "/*", end = "*/" } indent = { tab-width = 2, unit = " " } language-servers = ["wai-quantum"] formatter = { command = "wai-quantum", args = ["fmt"] } auto-format = false # The engine's debugger: breakpoints by line, steps, and the state's probes. [language.debugger] name = "wai-quantum" transport = "stdio" command = "wai-quantum" args = ["dap"] [[language.debugger.templates]] name = "program" request = "launch" completion = [{ name = "the program", completion = "filename", default = "." }] args = { program = "{0}", stopOnEntry = true } [[grammar]] name = "openqasm" source = { git = "https://git.transaction.science/Transaction-Science/open-standards", rev = "main", subpath = "wai/tools/tree-sitter-openqasm" }