~ubuntu-branches/ubuntu/utopic/exuberant-ctags/utopic

« back to all changes in this revision

Viewing changes to slang.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2006-07-31 09:09:12 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20060731090912-rxe2jt8nz6g2k2zx
Tags: 1:5.6-1
* New upstream release (closes: #374097).
* Fix accidentally-unrendered line in ctags(1) (closes: #271323).
* Policy version 3.7.2: no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *   $Id: slang.c,v 1.4 2003/02/23 18:23:10 darren Exp $
 
2
 *   $Id: slang.c,v 1.5 2006/05/30 04:37:13 darren Exp $
3
3
 *
4
4
 *   Copyright (c) 2000-2001, Francesc Rocher
5
5
 *
14
14
/*
15
15
 *   INCLUDE FILES
16
16
 */
17
 
#include "general.h"    /* must always come first */
 
17
#include "general.h"  /* must always come first */
18
18
#include "parse.h"
19
19
 
20
20
/*
22
22
 */
23
23
static void installSlangRegex (const langType language)
24
24
{
25
 
    addTagRegex (language,
26
 
        "^.*define[ \t]+([A-Z_][A-Z0-9_]*)[^;]*$",
27
 
        "\\1", "f,function,functions", "i");
28
 
    addTagRegex (language,
29
 
        "^[ \t]*implements[ \t]+\\([ \t]*\"([^\"]*)\"[ \t]*\\)[ \t]*;",
30
 
        "\\1", "n,namespace,namespaces", NULL);
 
25
        addTagRegex (language,
 
26
                "^.*define[ \t]+([A-Z_][A-Z0-9_]*)[^;]*$",
 
27
                "\\1", "f,function,functions", "i");
 
28
        addTagRegex (language,
 
29
                "^[ \t]*implements[ \t]+\\([ \t]*\"([^\"]*)\"[ \t]*\\)[ \t]*;",
 
30
                "\\1", "n,namespace,namespaces", NULL);
31
31
}
32
32
 
33
33
extern parserDefinition* SlangParser (void)
34
34
{
35
 
    static const char *const extensions [] = { "sl", NULL };
36
 
    parserDefinition* const def = parserNew ("SLang");
37
 
    def->extensions = extensions;
38
 
    def->initialize = installSlangRegex;
39
 
    def->regex      = TRUE;
40
 
    return def;
 
35
        static const char *const extensions [] = { "sl", NULL };
 
36
        parserDefinition* const def = parserNew ("SLang");
 
37
        def->extensions = extensions;
 
38
        def->initialize = installSlangRegex;
 
39
        def->regex      = TRUE;
 
40
        return def;
41
41
}