avatar

12

Adding LESS mode to repository. by pradador, 05 Dec, 2009 03:50 AM
Diff this changeset:
RegexSymbols.xml
      <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE syntax SYSTEM "symbol.dtd">
<symbols>

    <blocks>
        <beginregex>{</beginregex>
        <endregex>}</endregex>
    </blocks>
    
    <!-- STUDIO - added support for comments after delarations before { -->
    <symbol id="Tags" image="SymbolT">
        <regex>(?&lt;=[\n\r]|^)[\t ]*([\w\*][\w\d\s,\-_\*>:\(\)\+\[\]="~\$\^#\. ]*)(?=(\s*\{)|(\s*/\*.*\*/\s*\{))</regex>
        <postprocess>
            <find>[\n\r]</find>
            <replace> </replace>
            <find>[ \t]+</find>
            <replace> </replace>
            <find>/\*.*\*/</find>
            <replace></replace>
        </postprocess>
    </symbol>

	<symbol id="Variables" image="SymbolV">
		<regex>(?&lt;=[\n\r]|^)[\t ]*(@[\w\-]+\b)</regex>
	</symbol>
    
    <symbol id="Classes" image="SymbolC">
        <regex>(?&lt;=[\n\r]|^)[\t ]*(\.[\w\d\s,\-_\*>:\(\)\+\[\]="~\$\^#\. ]*)(?=(\s*\{)|(\s*/\*.*\*/\s*\{))</regex>
        <postprocess>
            <find>[\n\r]</find>
            <replace> </replace>
            <find>[ \t]+</find>
            <replace> </replace>
            <find>/\*.*\*/</find>
            <replace></replace>
        </postprocess>
    </symbol>
    
    <symbol id="IDs" image="SymbolID">
        <regex>(?&lt;=[\n\r]|^)[\t ]*(#[\w\d\s,\-_\*>:\(\)\+\[\]="~\$\^#\. ]*)(?=(\s*\{)|(\s*/\*.*\*/\s*\{))</regex>
        <postprocess>
            <find>[\n\r]</find>
            <replace> </replace>
            <find>[ \t]+</find>
            <replace> </replace>
            <find>/\*.*\*/</find>
            <replace></replace>
        </postprocess>
    </symbol>

	<!-- STUDIO changed to CSS style comments, and changed image to SymbolMark -->
    <symbol id="Pragma marks" font-weight="normal" font-style="normal" image="SymbolMark" indentation="0" ignoreblocks="no" show-in-comments="yes">
        <regex>/\* !(.+) \*/</regex>
    </symbol>
    
</symbols>