Branch: refs/heads/master Author: Matthew Brush matt@geany.org Committer: Matthew Brush matt@geany.org Date: Thu, 21 Dec 2017 01:22:50 UTC Commit: 243d55fa58947da80b4cf08ac4be63413281d8de https://github.com/geany/geany/commit/243d55fa58947da80b4cf08ac4be63413281d8...
Log Message: ----------- Fix missing initializer for field warnings in parsers
Modified Paths: -------------- ctags/parsers/actionscript.c ctags/parsers/cobol.c ctags/parsers/html.c
Modified: ctags/parsers/actionscript.c 20 lines changed, 10 insertions(+), 10 deletions(-) =================================================================== @@ -41,43 +41,43 @@ static tagRegexTable actionscriptTagRegexTable[] = { /* Functions */ {"^[ \t]*[(private|public|static|protected|internal|final|override)( \t)]*function[ \t]+([A-Za-z0-9_]+)[ \t]*\(([^\{]*)", - "\1 (\2", "f,function,functions,methods", NULL}, + "\1 (\2", "f,function,functions,methods", NULL, NULL},
/* Getters and setters */ {"^[ \t]*[(public|static|internal|final|override)( \t)]*function[ \t]+(set|get)[ \t]+([A-Za-z0-9_]+)[ \t]*\(", - "\2 \1", "l,field,fields", NULL}, + "\2 \1", "l,field,fields", NULL, NULL},
/* Variables */ {"^[ \t]*[(private|public|static|protected|internal)( \t)]*var[ \t]+([A-Za-z0-9_]+)([ \t]*\:[ \t]*([A-Za-z0-9_]+))*[ \t]*", - "\1 \: \3", "v,variable,variables", NULL}, + "\1 \: \3", "v,variable,variables", NULL, NULL},
/* Constants */ {"^[ \t]*[(private|public|static|protected|internal)( \t)]*const[ \t]+([A-Za-z0-9_]+)([ \t]*\:[ \t]*([A-Za-z0-9_]+))*[ \t]*", - "\1 : \3", "m,macro,macros", NULL}, + "\1 : \3", "m,macro,macros", NULL, NULL},
/* Classes */ {"^[ \t]*[(private|public|static|dynamic|final|internal)( \t)]*class[ \t]+([A-Za-z0-9_]+)[ \t]*([^\{]*)", - "\1 (\2)", "c,class,classes", NULL}, + "\1 (\2)", "c,class,classes", NULL, NULL},
/* Interfaces */ {"^[ \t]*[(private|public|static|dynamic|final|internal)( \t)]*interface[ \t]+([A-Za-z0-9_]+)[ \t]*([^\{]*)", - "\1 (\2)", "i,interface,interfaces", NULL}, + "\1 (\2)", "i,interface,interfaces", NULL, NULL},
/* Packages */ {"^[ \t]*[(private|public|static)( \t)]*package[ \t]+([A-Za-z0-9_.]+)[ \t]*", - "\1", "p,package", NULL}, + "\1", "p,package", NULL, NULL},
/* Notes */ {"\/\/[ \t]*(NOTE|note|Note)[ \t]*\:*(.*)", - "\2", "o,other"}, + "\2", "o,other", NULL, NULL},
/* Todos */ {"\/\/[ \t]*(TODO|todo|ToDo|Todo)[ \t]*\:*(.*)", - "\2", "o,other"}, + "\2", "o,other", NULL, NULL},
/* Prototypes (Put this in for AS1 compatibility...) */ {".*\.prototype\.([A-Za-z0-9 ]+)[ \t]*\=([ \t]*)function( [ \t]?)*\(", - "\1", "r,prototype"} + "\1", "r,prototype", NULL, NULL} };
/*
Modified: ctags/parsers/cobol.c 12 lines changed, 6 insertions(+), 6 deletions(-) =================================================================== @@ -19,17 +19,17 @@ static tagRegexTable cobolTagRegexTable[] = { {"^[ \t]*[0-9]+[ \t]+([A-Z0-9][A-Z0-9-]*)[ \t]+(" "BLANK|OCCURS|IS|JUST|PIC|REDEFINES|RENAMES|SIGN|SYNC|USAGE|VALUE" ")", "\1", - "d,data,data items", "i"}, + "d,data,data items", "i", NULL}, {"^[ \t]*[FSR]D[ \t]+([A-Z0-9][A-Z0-9-]*)\.", "\1", - "f,file,file descriptions (FD, SD, RD)", "i"}, + "f,file,file descriptions (FD, SD, RD)", "i", NULL}, {"^[ \t]*[0-9]+[ \t]+([A-Z0-9][A-Z0-9-]*)\.", "\1", - "g,group,group items", "i"}, + "g,group,group items", "i", NULL}, {"^[ \t]*([A-Z0-9][A-Z0-9-]*)\.", "\1", - "p,paragraph,paragraphs", "i"}, + "p,paragraph,paragraphs", "i", NULL}, {"^[ \t]*PROGRAM-ID\.[ \t]+([A-Z0-9][A-Z0-9-]*)\.", "\1", - "P,program,program ids", "i"}, + "P,program,program ids", "i", NULL}, {"^[ \t]*([A-Z0-9][A-Z0-9-]*)[ \t]+SECTION\.", "\1", - "s,section,sections", "i"}, + "s,section,sections", "i", NULL}, };
/*
Modified: ctags/parsers/html.c 10 lines changed, 5 insertions(+), 5 deletions(-) =================================================================== @@ -20,9 +20,9 @@ static tagRegexTable htmlTagRegexTable [] = { {"<a" POSSIBLE_ATTRIBUTES "[ \t]+name="?([^>"]+)"?" POSSIBLE_ATTRIBUTES "[ \t]*>", "\2", - "a,anchor,named anchors", "i"}, + "a,anchor,named anchors", "i", NULL}, {"^[ \t]*function[ \t]*([A-Za-z0-9_]+)[ \t]*\(", "\1", - "f,function,JavaScript functions", NULL}, + "f,function,JavaScript functions", NULL, NULL},
/* the following matches headings with tags inside like * <h1><a href="#id109"><i>Some Text</i></a></h1> @@ -34,13 +34,13 @@ static tagRegexTable htmlTagRegexTable [] = { ATTRS ">" SPACES "(<" ATTRS ">" SPACES ")*([^<]+).*"
{"<h1" INNER_HEADING "</h1>", "\2", - "n,namespace,H1 heading", "i"}, + "n,namespace,H1 heading", "i", NULL},
{"<h2" INNER_HEADING "</h2>", "\2", - "c,class,H2 heading", "i"}, + "c,class,H2 heading", "i", NULL},
{"<h3" INNER_HEADING "</h3>", "\2", - "v,variable,H3 heading", "i"}, + "v,variable,H3 heading", "i", NULL}, };
/*
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).