v1.7: added --no-source
option, foxpro, SQL support.
* Added `--no-source` option. By default JLP copies the original source code into the output directory. THis option disables that behavior. * Added basic error handling after parsing input files: input files that do not parse correctly are ignored. Beforehand they were causing null pointer exceptions in the second parse phase of the processor. * Made the top-level support directories hidden in the output root (ie. `/.css` instead of `/css`. * Added configuration to handle Visual FoxPro files (no syntax highlighter available) and SQL files. * Expanded the list of binary file types. Binary and unknown file types are not parsed.
This commit is contained in:
@ -65,6 +65,19 @@ public class JLPPegParser extends BaseParser<Object> implements JLPParser {
|
||||
MDOC_END = NOTHING;
|
||||
SDOC_START = String(sdocStart).label("SDOC_START"); }
|
||||
|
||||
/**
|
||||
* #### Single-line comments only constructor.
|
||||
* This is the same as the previous constructor except it allows the caller
|
||||
* to define several different syntax for single-line comments. This is
|
||||
* useful for languages that support several different syntaxes for comment
|
||||
* lines (e.g. bash, Visual FoxPro).
|
||||
*/
|
||||
public JLPPegParser(List sdocStarts) {
|
||||
MDOC_START = NOTHING;
|
||||
MDOC_LINE_START = NOTHING;
|
||||
MDOC_END = NOTHING;
|
||||
SDOC_START = FirstOf(sdocStarts.toArray()).label("SDOC_START"); }
|
||||
|
||||
/**
|
||||
* #### Default constructor.
|
||||
* The default constructor creates a JLPPegParser configured to recognize
|
||||
|
Reference in New Issue
Block a user