Skip to content

Commit

Permalink
Correct \RequirePackage regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu authored Sep 4, 2024
1 parent d49b550 commit d95fe88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/completion/latex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class Provider implements vscode.CompletionItemProvider {
provider = argumentProvider
break
case 'package':
reg = /(?:\\usepackage|RequirePackage|RequirePackageWithOptions(?:\[[^[\]]*\])*){([^}]*)$/
reg = /(?:\\usepackage|\\RequirePackage|\\RequirePackageWithOptions)(?:\[[^[\]]*\])*{([^}]*)$/
provider = packageProvider
break
case 'documentclass':
Expand Down

0 comments on commit d95fe88

Please sign in to comment.