Skip to main content

protected_ranges_from_templates

Function protected_ranges_from_templates 

Source
pub fn protected_ranges_from_templates(sql: &str) -> Vec<ProtectedRange>
Expand description

Derive protected ranges for Jinja-style templated spans.

This scanner handles:

  • {{ ... }}, {% ... %}, {# ... #}
  • trim markers ({{-, -}}, {%-, -%}, {#-, -#})
  • quoted strings inside {{ ... }} and {% ... %} so embedded }}/%} inside string literals do not terminate a tag early.