Skip to content

Makopo/kwdb_to_sublime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the tool which fetches newest version of LSL/OSSL keywords from kwdb and convert it for use of LSL/OSSL Bundle for Sublime Text.

For now, simply run ./generate.sh script.

Actively developing.

Needed:

  • curl
  • perl
  • python 2.X or 3.X

Perl Modules:

  • Text::Template
  • Regexp::Assemble

Code Walkthrough:

The entry point is [generate.sh] (/generate.sh). I here raw download the lsl2dfg/LSL2dfg.py engine and kwdb.xml from kwdb repository and then kick the engine to generate completion files and some contents in the syntax files. I have the templates in [inputs/] (/inputs) folder and the modules in [lsl2dfg/lsloutputs/] (/lsl2dfg/lsloutputs) folder, both of which will be passed to kwdb engine.

The tricky part is, as for the syntax files (*.sublime-syntax), instead of creating the syntax files themselves, I actually create the perl scripts, with kwdb engine. After then, I run the resulting scripts to assemble the regex code with Regexp::Assemble. That's why [the generated codes] (../../../sublime-text-lsl/blob/master/LSL.sublime-syntax) are quite unreadable.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published