llama : fix indentation in llama-grammar [no ci] (#11943)

This commit adjusts the indentation for the functions `parse_sequence`
and `parse_rule` in src/llama-grammar.cpp.

The motivation is consistency and improve readability.
This commit is contained in:
Daniel Bevenius
2025-02-19 06:16:23 +01:00
committed by GitHub
parent b58934c183
commit 9626d9351a

View File

@ -508,7 +508,7 @@ const char * llama_grammar_parser::parse_sequence(
}
}
return pos;
}
}
const char * llama_grammar_parser::parse_rule(const char * src) {
const char * name_end = parse_name(src);
@ -532,7 +532,7 @@ const char * llama_grammar_parser::parse_rule(const char * src) {
throw std::runtime_error(std::string("expecting newline or end at ") + pos);
}
return parse_space(pos, true);
}
}
bool llama_grammar_parser::parse(const char * src) {
try {