Home Download Buy Blog Forum Support

seeking advice, Syntax Definition for CGILua

seeking advice, Syntax Definition for CGILua

Postby VaiN on Sat May 25, 2013 3:01 pm

I'm wanting to create a new syntax definition for CGILua Lua Pages which is similar to PHP.

Just messing around I had managed to get Lua embedded in HTML working.
Code: Select all
<h1><?= luavariable ?></h1>

However, it seems I also need to do the opposite as well:
Code: Select all
<? if something then ?>
<some html here>
<? end ?>

it doesn't highlight the embedded HTML because it's handling it all as Lua until it reaches the "end".
Do I need to add detection of embedded HTML in Lua, or create a new syntax for it? Or is this an issue of scope, or both?

I've got AAAPackageDev and after a bit of hackish command-line-fu managed to get python working for it in Linux Mint.

What I'm wondering at this point is, what is the best way to go about this? Like with other embedded scripts it seems to require modification to the HTML.tmLanguage.

I just want to make sure I do this in the appropriate way for creating a package that can be shared.
Posts: 1
Joined: Sat May 25, 2013 2:34 pm

Return to Plugin Development

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests