Changeset 1079


Ignore:
Timestamp:
Jun 21, 2011, 12:09:25 AM (6 years ago)
Author:
stefan
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/src/jlatexeditor/tools/PackageParser.scala

    r1078 r1079  
    1212  val NewCommand = ".*\\\\newcommand\\{\\\\(\\w+)\\}(?:\\[(\\d+)\\])?(?:\\[([^\\]]+)\\])?.*".r
    1313  val NewEnvironment = ".*\\\\newenvironment\\{(\\w+)\\}(?:\\[(\\d+)\\])?(?:\\[([^\\]]+)\\])?.*".r
     14  val Input = ".*\\\\input\\{([^}]+)\\}".r
    1415
    1516  def main(args: Array[String]) {
    16     parseFile(new File("/usr/share/texmf-texlive/tex/latex/algorithms/algorithmic.sty"))
     17    //parseFile(new File("/usr/share/texmf-texlive/tex/latex/algorithms/algorithmic.sty"))
     18    parseFile(new File("/usr/share/texmf/tex/latex/pgf/frontendlayer/tikz.sty"))
    1719
    1820    if (true) return
     
    4850        case NewEnvironment(cmd, params, optParam) =>
    4951          println("  environment " + cmd + " with " + params + " arguments and " + optParam)
     52        case Input(fileName) =>
     53          println("  input " + fileName)
    5054        case _ =>
    5155      }
Note: See TracChangeset for help on using the changeset viewer.