Skip to main content

language

Function language 

Source
pub fn language() -> Language
Expand description

Returns the tree-sitter Language for PL/SQL

§Panics

Panics if the loaded grammar fails validation:

  • Null pointer returned from C library
  • ABI version mismatch (outside 9-14 range)
  • Incompatible version (below tree-sitter minimum)
  • Invalid grammar (zero node kinds)

These failures indicate a serious build or linking problem that cannot be recovered from at runtime.

§Safety

This function wraps an unsafe FFI call to tree_sitter_plsql(). The returned Language handle is validated before being exposed to prevent undefined behavior from invalid pointers or ABI mismatches.