Commit 773fc447 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Arranging some things more orderly.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5699 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 717e697e
Showing with 10 additions and 9 deletions
+10 -9
2016-02-28 Benno Schulenberg <bensberg@justemail.net>
* src/nano.h, src/rcfile.c, src/color.c: Rename a struct member.
* src/rcfile.c (parse_rcfile): Don't allocate struct for none syntax.
* src/nano.h, src/rcfile.c: Arrange some things more orderly.
2016-02-28 Benno Schulenberg <bensberg@justemail.net>
* src/rcfile.c (parse_header_exp): Don't continue when something is
......
......@@ -246,14 +246,14 @@ typedef struct syntaxtype {
/* The list of headerlines that this syntax applies to. */
regexlisttype *magics;
/* The list of libmagic results that this syntax applies to. */
colortype *color;
/* The colors used in this syntax. */
char *linter;
/* The command to lint this type of file. */
/* The command with which to lint this type of file. */
char *formatter;
/* Use this formatter command (for programming lang mainly) */
/* The formatting command (for programming languages mainly). */
colortype *color;
/* The colors and their regexes used in this syntax. */
int nmultis;
/* How many multi-line strings this syntax has. */
/* How many multiline regex strings this syntax has. */
struct syntaxtype *next;
/* Next syntax. */
} syntaxtype;
......
......@@ -333,15 +333,15 @@ void parse_syntax(char *ptr)
}
endsyntax->name = mallocstrcpy(NULL, nameptr);
endsyntax->color = NULL;
endcolor = NULL;
endsyntax->extensions = NULL;
endsyntax->headers = NULL;
endsyntax->magics = NULL;
endsyntax->next = NULL;
endsyntax->nmultis = 0;
endsyntax->linter = NULL;
endsyntax->formatter = NULL;
endsyntax->color = NULL;
endcolor = NULL;
endsyntax->nmultis = 0;
endsyntax->next = NULL;
opensyntax = TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment