diff options
author | Ralph Amissah <ralph@amissah.com> | 2008-05-22 19:37:54 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2008-05-22 19:50:42 -0400 |
commit | 4cd184d2b50134a462940f7de3428f507aff8b60 (patch) | |
tree | d255499ae256193255bb4269ce12adcb1f6fa1e4 /lib | |
parent | sisu-0.66.3 + md5s (diff) |
simplify syntax for import of external files, e.g.:
<< filename.sst
minor related syntax changes, automatic version bump
make appropriate additions to vim-syntax
consider use of vim-addon manager
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v0/composite.rb | 9 | ||||
-rw-r--r-- | lib/sisu/v0/dal.rb | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/lib/sisu/v0/composite.rb b/lib/sisu/v0/composite.rb index 21b6781b..9b3689c3 100644 --- a/lib/sisu/v0/composite.rb +++ b/lib/sisu/v0/composite.rb @@ -190,13 +190,10 @@ module SiSU_Assemble tell=SiSU_Screen::Ansi.new(@opt.cmd,'Composite Document',@opt.fns) tell.grey_title_hi unless @opt.cmd =~/q/ para=data.each do |para| - if para =~/^r\{(.+?)\}/ \ - or para =~/^(?:<<\s*)\{(.+?)\}(?:req(?:quire)?\b|\s*\})?/ \ + if para =~/^<<\s+(\S+?\.ss[it])$/ \ + or para =~/^<<\{(\S+?\.ss[it])\}$/ \ or para =~/^(?:<<\s*)\|(\S+?)\|@\|.+?\|(?:req(?:quire)?\b|\s*\})?/ \ - or para =~/^(?:<<\s*)<(?:URL|url):(\S+?)>(?:req(?:require)\b|\s*\})?/ \ - or para =~/^\{(.+?)\}(?:req(?:require)?)\b/ \ - or para =~/^\|(\S+?)\|@\|.+?\|(?:req(?:require)?)\b/ \ - or para =~/^<(?:URL|url):(\S+?)>(?:req(?:require))\b/ + or para =~/^r\{(.+?)\}/ #depreciated loadfile=$1.strip tell=SiSU_Screen::Ansi.new(@opt.cmd,'loading:',loadfile) tell.txt_grey if @opt.cmd =~/[MVv]/ diff --git a/lib/sisu/v0/dal.rb b/lib/sisu/v0/dal.rb index c5a07f9c..3e5e11ac 100644 --- a/lib/sisu/v0/dal.rb +++ b/lib/sisu/v0/dal.rb @@ -370,8 +370,8 @@ module SiSU_DAL def expand_insertions?(data) tuned_file,tuned_file_tmp=[],[] data.each do |para| - if para !~/^%+\s/ and - para =~/\{(?:~\^\s+)?(.+?)\s\[(?:\d(?:[sS]*))\]\}(?:\.\.\/\S+?\/|\S+?\.ss[tm]\b)/ + if para !~/^%+\s/ \ + and para =~/\{(?:~\^\s+)?(.+?)\s\[(?:\d(?:[sS]*))\]\}(?:\.\.\/\S+?\/|\S+?\.ss[tm]\b)/ txt,cmd,source,url_dir,note,manifest=nil,nil,nil,nil,nil,nil @u=SiSU_Env::Info_env.new.url if defined? @u.remote |