[TxMt] newbie simple language grammar question
Dana Kashubeck
dana.kashubeck at riemer.com
Tue Jul 17 00:55:06 UTC 2007
On 7/16/07 5:20 PM, Pete Siemsen wrote:
> I'm trying (for the first time ever) to make Textmate do
> syntax-highlighting.� The files I want to highlight are JUNOS router
> configuration files.� My beginning grammar is
>
> { scopeName = 'source.junos';
> fileTypes = ( 'junos' );
> foldingStartMarker = '\{\s*$';
> foldingStopMarker = '^\s*\}';
> patterns = (
> { name = 'keyword.other.junos';
> match =
> 'groups|system|chassis|interfaces|forwarding-options|snmp|routing-options|protocols|policy-options|firewall|routing-instances';
> },
> { name = 'comment.block.junos';
> match = '/\*[^\*]*\*/';
> },
> );
> }
>
> When I set the language to JUNOS, folding works but the keywords or
> comments stay the default color.� Do I need to do something else to see
> color highlighting?� (assume nothing is too dumb - I'm a newbie to this)
>
> Assuming I get this working, is there a repository of grammars where I
> can share it?� And maybe find grammars for other odd languages?
Yes, you'll have to specify a different color in your current style for
keyword.other.junos and comment.block.junos.
--
-------------------------------------
Dana Kashubeck
Systems Manager
Riemer Reporting Service Inc.
http://www.riemer.com
Phone: 440-835-2477 x. 125
Fax: 440-835-4594
-------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dana.kashubeck.vcf
Type: text/x-vcard
Size: 363 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070716/82c1e013/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.macromates.com/textmate/attachments/20070716/82c1e013/attachment.p7s>
More information about the textmate
mailing list