From cd82eb40d31bdfe65f846f4e06292d6c804b5e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20F=C3=B6rster?= Date: Sun, 28 Apr 2024 09:25:04 +0200 Subject: [PATCH] Let \declaretheorem accept multiple env names (#121) --- CHANGELOG.md | 1 + grammar.js | 2 +- test/corpus/issues.txt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8527fad4..a3335e61f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/grammar.js b/grammar.js index cb0121902..dbd1ff579 100644 --- a/grammar.js +++ b/grammar.js @@ -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( diff --git a/test/corpus/issues.txt b/test/corpus/issues.txt index 1b8466170..e683c7007 100644 --- a/test/corpus/issues.txt +++ b/test/corpus/issues.txt @@ -318,7 +318,7 @@ tree-sitter-latex (Issue #24) (source_file (theorem_definition - (curly_group_text + (curly_group_text_list (text (word))) (curly_group