summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Scanner/LaTeX.py
diff options
context:
space:
mode:
authorRobert Managan <managan1@llnl.gov>2012-06-14 17:20:17 (GMT)
committerRobert Managan <managan1@llnl.gov>2012-06-14 17:20:17 (GMT)
commite980f0196884fc57563967f57f5845f4c7274df4 (patch)
tree0b05e2e42ab3613b4869842cfcdda66c47f59f38 /src/engine/SCons/Scanner/LaTeX.py
parent69ec58de81fae315449b1f6f425526977a7a2699 (diff)
downloadSCons-e980f0196884fc57563967f57f5845f4c7274df4.zip
SCons-e980f0196884fc57563967f57f5845f4c7274df4.tar.gz
SCons-e980f0196884fc57563967f57f5845f4c7274df4.tar.bz2
Add support for the biblatex package; search for new keywards to get side effects and dependencies right
Diffstat (limited to 'src/engine/SCons/Scanner/LaTeX.py')
-rw-r--r--src/engine/SCons/Scanner/LaTeX.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/SCons/Scanner/LaTeX.py b/src/engine/SCons/Scanner/LaTeX.py
index 2f0b263..2cb1ed5 100644
--- a/src/engine/SCons/Scanner/LaTeX.py
+++ b/src/engine/SCons/Scanner/LaTeX.py
@@ -159,6 +159,9 @@ class LaTeX(SCons.Scanner.Base):
'includegraphics': 'TEXINPUTS',
'bibliography': 'BIBINPUTS',
'bibliographystyle': 'BSTINPUTS',
+ 'addbibresource': 'BIBINPUTS',
+ 'addglobalbib': 'BIBINPUTS',
+ 'addsectionbib': 'BIBINPUTS',
'makeindex': 'INDEXSTYLE',
'usepackage': 'TEXINPUTS',
'lstinputlisting': 'TEXINPUTS'}
@@ -172,7 +175,7 @@ class LaTeX(SCons.Scanner.Base):
# line followed by one or more newline characters (i.e. blank
# lines), interfering with a match on the next line.
# add option for whitespace before the '[options]' or the '{filename}'
- regex = r'^[^%\n]*\\(include|includegraphics(?:\s*\[[^\]]+\])?|lstinputlisting(?:\[[^\]]+\])?|input|bibliography|usepackage)\s*{([^}]*)}'
+ regex = r'^[^%\n]*\\(include|includegraphics(?:\s*\[[^\]]+\])?|lstinputlisting(?:\[[^\]]+\])?|input|bibliography|addbibresource|addglobalbib|addsectionbib|usepackage)\s*{([^}]*)}'
self.cre = re.compile(regex, re.M)
self.comment_re = re.compile(r'^((?:(?:\\%)|[^%\n])*)(.*)$', re.M)