Skip to main content

INJECTIONS_QUERY

Constant INJECTIONS_QUERY 

Source
pub const INJECTIONS_QUERY: &str = "((comment_content) @injection.content\n  (#set! injection.language \"comment\"))\n\n; system \"command\" / ! \"command\" \u{2192} bash\n(cmd_system (string_literal) @injection.content\n  (#set! injection.language \"bash\"))\n\n; ! ls / system ls \u{2192} bash (single identifier)\n(cmd_system (identifier) @injection.content\n  (#set! injection.language \"bash\"))\n\n; system(\"command\") \u{2192} bash\n((function\n    name: (identifier) @_name\n    parameters: (parameter_list (string_literal) @injection.content))\n  (#eq? @_name \"system\")\n  (#set! injection.language \"bash\"))\n";
Expand description

The language injection query for this grammar.