is_raw_block_directive

Function is_raw_block_directive 

Source
pub fn is_raw_block_directive(name: &str) -> bool
Expand description

Check if a directive name indicates a raw block (Lua code, etc.)

Raw block directives contain code (like Lua) that should not be parsed as nginx configuration. The content inside the block is preserved as-is.

ยงExamples

use nginx_lint_parser::is_raw_block_directive;

assert!(is_raw_block_directive("content_by_lua_block"));
assert!(is_raw_block_directive("init_by_lua_block"));
assert!(!is_raw_block_directive("server"));