Skip to content

Commit

Permalink
Modified the Regex for citation syntax, now it is able to capture (#183)
Browse files Browse the repository at this point in the history
all natbib commands and biblatex commands for citations.
  • Loading branch information
soraxas authored and Aerijo committed Sep 23, 2018
1 parent faa2b3a commit afeda09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammars/latex.cson
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@
}
{
'begin': '''(?x)
((\\\\)(?:text)?(?:paren)?(?:auto)?(?:foot)?(?:full)?(?:no)?(?:short)?[cC]ites?(?:al)?(?:t|p|author|year(?:par)?|title)?[ANP]*\\*?)
((\\\\)(?:(?:[tT]ext|[pP]aren|[aA]uto|[sS]mart|super|foot)?(?:full|no|short|(?:[vV]|[pP]|[fF]t?|[sS]|[tT]|[aA])?[vV]ol|(?:[pP]|f)?[nN]ote|short)?[cC]ites?(?:al)?(?:t|p|num|author|name|list|field|url|date|year(?:par)?|title)?(?:texts?)?|(?:paren|bracket)texts?)[ANP]*\\*?)
(?:(\\[)[^\\]]*(\\]))?
(?:(\\[)[^\\]]*(\\]))?
(\\{)
Expand Down

0 comments on commit afeda09

Please sign in to comment.