~ubuntu-branches/ubuntu/saucy/padre/saucy-proposed

« back to all changes in this revision

Viewing changes to lib/Padre/Document/Java.pm

  • Committer: Package Import Robot
  • Author(s): Dominique Dumont, gregor herrmann, Dominique Dumont
  • Date: 2012-01-04 12:04:20 UTC
  • mfrom: (1.3.3)
  • Revision ID: package-import@ubuntu.com-20120104120420-i5oybqwf91m1d3il
Tags: 0.92.ds1-1
[ gregor herrmann ]
* Remove debian/source/local-options; abort-on-upstream-changes
  and unapply-patches are default in dpkg-source since 1.16.1.
* Swap order of alternative (build) dependencies after the perl
  5.14 transition.

[ Dominique Dumont ]
* Imported Upstream version 0.92.ds1
* removed fix-spelling patch (applied upstream)
* lintian-override: use wildcard to avoid listing a gazillion files
* updated size of some 'not-real-man-page' entries
* rules: remove dekstop cruft (replaced by a file provided in debian
  directory)
* control: removed Breaks statement. Add /me to uploaders. Updated
  dependencies
* rules: make sure that non-DFSG file (i.e. the cute butterfly, sigh)
  is not distributed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package Padre::Document::Java;
 
2
 
 
3
use 5.008;
 
4
use strict;
 
5
use warnings;
 
6
use Padre::Constant   ();
 
7
use Padre::Role::Task ();
 
8
use Padre::Document   ();
 
9
 
 
10
our $VERSION = '0.92';
 
11
our @ISA     = qw{
 
12
        Padre::Role::Task
 
13
        Padre::Document
 
14
};
 
15
 
 
16
 
 
17
#####################################################################
 
18
# Padre::Document Task Integration
 
19
 
 
20
sub task_functions {
 
21
        return 'Padre::Document::Java::FunctionList';
 
22
}
 
23
 
 
24
sub task_outline {
 
25
        return undef;
 
26
}
 
27
 
 
28
sub task_syntax {
 
29
        return undef;
 
30
}
 
31
 
 
32
sub get_function_regex {
 
33
        my $name = quotemeta $_[1];
 
34
        return qr/
 
35
                (?:^|[^# \t-])
 
36
                [ \t]*
 
37
                (
 
38
                        (?: (public|protected|private|abstract|static|final|native|
 
39
                             synchronized|transient|volatile|strictfp)
 
40
                             \s+){0,2}    # zero to 2 method modifiers
 
41
                        (?: <\w+>\s+ )?   # optional: generic type parameter
 
42
                        (?: [\w\[\]<>]+)  # return data type
 
43
                        \s+$name
 
44
                )/x;
 
45
}
 
46
 
 
47
# Java keyword list is obtained from src/scite/src/cpp.properties
 
48
sub scintilla_key_words {
 
49
        return [
 
50
                [   qw{
 
51
                                abstract assert boolean break byte case catch char class
 
52
                                const continue default do double else enum extends final
 
53
                                finally float for goto if implements import instanceof int
 
54
                                interface long native new package private protected public
 
55
                                return short static strictfp super switch synchronized this
 
56
                                throw throws transient try var void volatile while
 
57
                                }
 
58
                ]
 
59
        ];
 
60
}
 
61
 
 
62
1;
 
63
 
 
64
# Copyright 2008-2011 The Padre development team as listed in Padre.pm.
 
65
# LICENSE
 
66
# This program is free software; you can redistribute it and/or
 
67
# modify it under the same terms as Perl 5 itself.