Work with Python3
Bugfix with nested rules' param values
Support nested rules inside template.
Bugfix with term refactoring
Bugfix load module from ~/.silp_plugins Add csproj file
Try load module from ~/.silp_plugins
Remove blessings usage under windows, can work under windows now (only test with git windows' bash)
Put the .silp_backup
and .silp_test
folders under ~
, otherwise they may became garbage in project folder
Make sure there is at least one space before the suffix use " --SILP:" for sql
Add SQL to language list
- Use
/*__SILP__*/
for the generated tag, since in MySql if using--__SILP__
, then if there is one line without space there is a corner case that there is no space before it. https://dev.mysql.com/doc/refman/5.1/en/ansi-diff-comments.html
Use "%" instead of "%%" in erlang language
Add simple plugin support for more complex macro.
- Currently plugins should be put under project's silp_plugins (Project means the folder holding silp_xx.md)
- plugin macro has format as module:func(param1, param2, ...) module here is the name of the python plugin, func is the name of function
- also expose silp.error/info/verbose, then the plugin codes can print debug information with them
Add support for Erlang (both erl, and hrl)
Add support for YML launguage
Fix the wrong import silp
in setup.py which breaks the dependencies installation.
- #1
- Thanks for lowks for the comment: https://github.com/lowks
Add --clean parameter to remove silp generated lines, useful if want to change the language settings
The syntax is something like:
<<[fish/fish.freshrc]
This is following the Marked (a markdown preview app on OS X) rule, so Marked can show the included file content just fine.
freshshell is a very nice tool to manage dotfiles, though it doesn't support including other freshrc at the moment(2014-05-06), so I split my freshrc into smaller files, and use silp to put them into the main file.
- Bugfix with the .md files not included in Manifest
- Change name to "Simple Individual Line Preprocessor"
- Better control with the padding spaces to keep all generated_surfix aligned
- Skipping files that not using SILP, to prevent the useless files in .silp_backup and .silp_test folders
- Can support multiple project setting files with different extentions
- If a subfolder has it's own setting files, won't include them in the parant's --all run
First version, can do basic processing