Skip to content

Commit

Permalink
Let \declaretheorem accept multiple env names (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfoerster authored Apr 28, 2024
1 parent 01973c1 commit cd82eb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Add missing citation commands: `\citeA`, `\citeR`, `\citeS`, `\citeyearR` ([#94](https://github.com/latex-lsp/tree-sitter-latex/issues/94))
- Let `\declaretheorem` accept multiple environment names ([texlab/#1075](https://github.com/latex-lsp/texlab/issues/1075))

## [0.4.0] - 2024-04-01

Expand Down
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ module.exports = grammar({
),
),
optional(field('options', $.brack_group_key_value)),
field('name', $.curly_group_text),
field('name', $.curly_group_text_list),
optional(
choice(
seq(
Expand Down
2 changes: 1 addition & 1 deletion test/corpus/issues.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ tree-sitter-latex (Issue #24)

(source_file
(theorem_definition
(curly_group_text
(curly_group_text_list
(text
(word)))
(curly_group
Expand Down

0 comments on commit cd82eb4

Please sign in to comment.