Changes between Version 1 and Version 2 of Features/Brackets


Ignore:
Timestamp:
Mar 29, 2011, 4:23:07 PM (4 years ago)
Author:
bowtie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Features/Brackets

    v1 v2  
    1 == Description == 
     1[[PageOutline(2-4)]] 
     2{{{PadreWikiFeaturesBrackets Draft}}} 
     3== Description  
    24 
    35Bracket matching/completion 
     6{{{#!perl 
     7    ()    # Brackets 
     8    []    # Square Brackets 
     9    {}    # Braces 
     10    ''    # Single-Quoted String Literals 
     11    ""    # Double-Quoted String Literals 
     12}}} 
    413 
    5 == Tickets == 
     14=== Perl => Find Unmatched Brace (Brackets, Square Brackets & Braces) 
     15Initial observations,  
     16* works in current editor, does not require the file to be saved :) 
     17* highlights the last unmatched ;-( 
     18* I think it must be counting charter types, with little reference to Perl syntax ;-( 
     19---- 
     20This file passes, this is rubbish ;-(( 
     21{{{#!perl 
     22#!/usr/bin/perl 
     23# based on 03_Good_Morning.pl 
     24# This file assumes that you already read (and understood) earlier sessions! 
     25 
     26use strict; # This will be discussed later 
     27use warnings; 
     28### added [ 
     29my [( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) = localtime( time() ); 
     30 
     31if ( $hour < 10 ) { print "Good morning!\n"; } 
     32 
     33elsif {( $hour == 12 ) { print "Out for lunch...\n"; }} ### added {} 
     34elsif ( $hour <= 18 ) { print "Hello world!\n"; }]  ### added ] 
     35elsif (( $hour < 23 )  { print "Good night.\n"; })  ### added () 
     36 
     37else { print "sleep well!\n;" } 
     38}}} 
     39 
     40run against Padre {{{r14200}}} 
     41---- 
     42== Tickets 
    643 
    744[[TicketQuery(component=Brackets,order=id,desc=1,format=table,col=resolution|summary|owner|reporter)]] 
    845 
     46 
     47