Skip to content

Commit cdbe6a8

Browse files
authored
fix multi-file project detection algorithm when using includefrom (#1465)
`texlab` list of commands for including files within a latex document is missing the `includefrom` command defined by the `subimport` module, causing `texlab`'s project detection algorithm to break when using these files. This PR simply adds `includefrom` to this list.
1 parent 4936460 commit cdbe6a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/parser/src/latex/lexer/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn classify(name: &str, config: &SyntaxConfig) -> CommandName {
2626
"includesvg" => CommandName::SvgInclude,
2727
"includeinkscape" => CommandName::InkscapeInclude,
2828
"verbatiminput" | "VerbatimInput" => CommandName::VerbatimInclude,
29-
"import" | "subimport" | "inputfrom" | "subinputfrom" | "subincludefrom" => {
29+
"import" | "subimport" | "inputfrom" | "subinputfrom" | "includefrom" | "subincludefrom" => {
3030
CommandName::Import
3131
}
3232
"newlabel" => CommandName::LabelNumber,

0 commit comments

Comments
 (0)