Skip to content

Commit

Permalink
Refactor parsing of LaTeX math structures
Browse files Browse the repository at this point in the history
  • Loading branch information
pfoerster committed Mar 1, 2020
1 parent 9281316 commit 44fc7ec
Show file tree
Hide file tree
Showing 4 changed files with 378 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/syntax/lang_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -580,19 +580,19 @@
{
"name": "\\newcommand",
"definitionIndex": 0,
"argumentCountIndex": 0,
"argCountIndex": 0,
"implementationIndex": 1
},
{
"name": "\\renewcommand",
"definitionIndex": 0,
"argumentCountIndex": 0,
"argCountIndex": 0,
"implementationIndex": 1
},
{
"name": "\\DeclareRobustCommand",
"definitionIndex": 0,
"argumentCountIndex": 0,
"argCountIndex": 0,
"implementationIndex": 1
}
],
Expand Down
2 changes: 1 addition & 1 deletion src/syntax/lang_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct LatexIncludeCommand {
pub struct LatexCommandDefinitionCommand {
pub name: String,
pub definition_index: usize,
pub argument_count_index: usize,
pub arg_count_index: usize,
pub implementation_index: usize,
}

Expand Down
Loading

0 comments on commit 44fc7ec

Please sign in to comment.