summaryrefslogtreecommitdiff
path: root/support/texlab/src/features
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-03-27 03:03:42 +0000
committerNorbert Preining <norbert@preining.info>2023-03-27 03:03:42 +0000
commit8ee50414f6054311ac11efe8ea6360c25c622498 (patch)
treee1b68ea1215d21284e59d95c2a39a632efea083b /support/texlab/src/features
parent17a3481529d31ffd1586ca65dde09742f9b5c471 (diff)
CTAN sync 202303270303
Diffstat (limited to 'support/texlab/src/features')
-rw-r--r--support/texlab/src/features/symbol/types.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/support/texlab/src/features/symbol/types.rs b/support/texlab/src/features/symbol/types.rs
index 96b26be153..9e8ea28792 100644
--- a/support/texlab/src/features/symbol/types.rs
+++ b/support/texlab/src/features/symbol/types.rs
@@ -85,11 +85,13 @@ impl InternalSymbol {
while i < container.len() {
let symbol = &mut container[i];
- if util::regex_filter::filter(
- &symbol.name,
- &config.allowed_patterns,
- &config.ignored_patterns,
- ) {
+ if !symbol.name.is_empty()
+ && util::regex_filter::filter(
+ &symbol.name,
+ &config.allowed_patterns,
+ &config.ignored_patterns,
+ )
+ {
Self::filter(&mut symbol.children, config);
i += 1;
} else {