Skip to content

Commit

Permalink
Fix #4069. Scan for label={...} as the second argument of an environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jlelong committed Nov 23, 2023
1 parent 070a8b2 commit 185db13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/completion/completer/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class Reference implements IProvider {
let label = ''
if (node.type === 'macro' && labelMacros.includes(node.content)) {
label = argContentToStr(node.args?.[1]?.content || [])
} else if (node.type === 'environment' && ['frame'].includes(node.env)) {
} else if (node.type === 'environment') {
label = argContentToStr(node.args?.[1]?.content || [])
const index = label.indexOf('label=')
if (index >= 0) {
Expand Down

0 comments on commit 185db13

Please sign in to comment.