To enable Code Folding
http://manual.macromates.com/en/language_grammars
Bundles of Language Grammars
The following list of language grammars may be used to model a language grammar for Lasso.
http://macromates.com/svn/Bundles/trunk/Bundles/
The current version of the Language Module is available on this page in the grey (pre-formatted) region below.
Anyone is welcome to edit the content of this page, as it supports Page History in case of mistakes.
You must sign up for a Lassotech account, or sign in, to edit this page.
It is recommended that you copy and paste the pre-formatted text into your favorite text editor to modify it. When you edit a Lassotech page, you edit within an HTML textarea which lacks any kind of formatting.
When updating the Lasso language grammar in Edit Page mode, please put the "pre" and "/pre" tags on their own lines, to make selection of the area easier.
{ scopeName = 'text.html.lasso';
fileTypes = ( 'inc', 'lasso', 'las' );
foldingStartMarker = '(?x)(
(?i:if|iterate|inline|records)\(.*?\);
|\/\*(?!.*\*\/)
)';
foldingStopMarker = '(?x)(
/(?i:if|iterate|inline|records);
|^(?!.*?\/\*).*?\*\/
)';
patterns = (
{ name = 'keyword.control.untitled';
match = '\b(if|while|for|return)\b';
},
{ name = 'string.quoted.double.untitled';
begin = '"';
end = '"';
patterns = (
{ name = 'constant.character.escape.untitled';
match = '\\.';
},
);
},
);
}
Example Language Grammar
{ scopeName = 'source.untitled';
fileTypes = ( );
foldingStartMarker = '\{\s*$';
foldingStopMarker = '^\s*\}';
patterns = (
{ name = 'keyword.control.untitled';
match = '\b(if|while|for|return)\b';
},
{ name = 'string.quoted.double.untitled';
begin = '"';
end = '"';
patterns = (
{ name = 'constant.character.escape.untitled';
match = '\\.';
}
);
},
);
}
Author: Steve Piercy
Created: 30 Aug 2008
Last Modified: 2 Mar 2011
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft