mirror of
https://github.com/RYDE-WORK/llama.cpp.git
synced 2026-02-07 16:24:46 +08:00
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:
parent
b58934c183
commit
9626d9351a
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user