is_block_directive

Function is_block_directive 

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

Check if a directive is a known block directive that requires { instead of ;

ยงExamples

use nginx_lint_parser::is_block_directive;

assert!(is_block_directive("server"));
assert!(is_block_directive("location"));
assert!(!is_block_directive("listen"));