pub const INJECTIONS_QUERY: &str = "; -----------------------------------------------------------------------------\n; General language injection\n(quasiquote\n (quoter) @injection.language\n (quasiquote_body) @injection.content)\n\n((comment) @injection.content\n (#set! injection.language \"comment\"))\n\n; -----------------------------------------------------------------------------\n; shakespeare library\n; NOTE: doesn\'t support templating\n; TODO: add once CoffeeScript parser is added\n; ; CoffeeScript: Text.Coffee\n; (quasiquote\n; (quoter) @_name\n; (#eq? @_name \"coffee\")\n; ((quasiquote_body) @injection.content\n; (#set! injection.language \"coffeescript\")))\n; CSS: Text.Cassius, Text.Lucius\n(quasiquote\n (quoter) @_name\n (#any-of? @_name \"cassius\" \"lucius\")\n (quasiquote_body) @injection.content\n (#set! injection.language \"css\"))\n\n; HTML: Text.Hamlet\n(quasiquote\n (quoter) @_name\n (#any-of? @_name \"shamlet\" \"xshamlet\" \"hamlet\" \"xhamlet\" \"ihamlet\")\n (quasiquote_body) @injection.content\n (#set! injection.language \"html\"))\n\n; JS: Text.Julius\n(quasiquote\n (quoter) @_name\n (#any-of? @_name \"js\" \"julius\")\n (quasiquote_body) @injection.content\n (#set! injection.language \"javascript\"))\n\n; TS: Text.TypeScript\n(quasiquote\n (quoter) @_name\n (#any-of? @_name \"tsc\" \"tscJSX\")\n (quasiquote_body) @injection.content\n (#set! injection.language \"typescript\"))\n\n; -----------------------------------------------------------------------------\n; HSX\n(quasiquote\n (quoter) @_name\n (#eq? @_name \"hsx\")\n (quasiquote_body) @injection.content\n (#set! injection.language \"html\"))\n\n; -----------------------------------------------------------------------------\n; Inline JSON from aeson\n(quasiquote\n (quoter) @_name\n (#eq? @_name \"aesonQQ\")\n (quasiquote_body) @injection.content\n (#set! injection.language \"json\"))\n\n; -----------------------------------------------------------------------------\n; SQL\n; postgresql-simple\n(quasiquote\n (quoter) @injection.language\n (#eq? @injection.language \"sql\")\n (quasiquote_body) @injection.content)\n\n(quasiquote\n (quoter) @_name\n (#any-of? @_name \"persistUpperCase\" \"persistLowerCase\" \"persistWith\")\n (quasiquote_body) @injection.content\n (#set! injection.language \"haskell_persistent\"))\n";
Expand description
The syntax highlighting query for languages injected into this one.