From 795f39989160ebdea292c7e53b49d11d5c9ae120 Mon Sep 17 00:00:00 2001 From: Nils Werner Date: Mon, 8 Jul 2019 13:58:09 +0200 Subject: [PATCH] Add \nocite{} and \nocite*{} to citeRex --- lib/latexer-hook.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/latexer-hook.coffee b/lib/latexer-hook.coffee index 1f52917..e6a0509 100644 --- a/lib/latexer-hook.coffee +++ b/lib/latexer-hook.coffee @@ -8,7 +8,7 @@ module.exports = beginRex: /\\begin{([^}]+)}/ mathRex: /(\\+)\[/ refRex: /\\(\w*ref({|{[^}]+,)|[cC](page)?refrange({[^,}]*})?{)$/ - citeRex: /\\\w*(cite|citet|citep|citet\*|citep\*)(\[[^\]]+\])?({|{[^}]+,)$/ + citeRex: /\\\w*(cite|citet|citep|nocite|citet\*|citep\*|nocite\*)(\[[^\]]+\])?({|{[^}]+,)$/ constructor: (@editor) -> @disposables = new CompositeDisposable @disposables.add @editor.onDidChangeTitle => @subscribeBuffer()