Skip to content

Commit

Permalink
html/xml tags
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyg committed Aug 29, 2022
1 parent 7239640 commit 298a1c0
Show file tree
Hide file tree
Showing 9 changed files with 1,323 additions and 773 deletions.
11 changes: 11 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

* BUILD 24, version: 3.2.2

Sun Aug 28 20:44:56 2022 adamy

* html/xml

o tag matching/hiliting syntax flags

- SYNF_HTMLTAG
- SYNF_XMLTAG

o void tags

Wed Aug 10 22:52:02 2022 adamy

* syntax
Expand Down
3 changes: 2 additions & 1 deletion gr/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- mode: mak; indent-tabs-mode: t; tab-width: 8 -*-
# $Id: Makefile.in,v 1.85 2022/07/10 13:12:24 cvsuser Exp $
# $Id: Makefile.in,v 1.86 2022/08/22 15:40:47 cvsuser Exp $
# GRIEF editor makefile.
#
#
Expand Down Expand Up @@ -335,6 +335,7 @@ CSRC=\
syntaxhl.c \
syntaxdfa.c \
syntaxcol.c \
syntaxln.c \
\
tags.c \
tagsex.c \
Expand Down
11 changes: 6 additions & 5 deletions gr/hilite.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <edidentifier.h>
__CIDENT_RCSID(gr_hilite_c,"$Id: hilite.c,v 1.18 2022/08/10 15:44:56 cvsuser Exp $")
__CIDENT_RCSID(gr_hilite_c,"$Id: hilite.c,v 1.19 2022/08/16 12:25:22 cvsuser Exp $")

/* -*- mode: c; indent-width: 4; -*- */
/* $Id: hilite.c,v 1.18 2022/08/10 15:44:56 cvsuser Exp $
/* $Id: hilite.c,v 1.19 2022/08/16 12:25:22 cvsuser Exp $
* Hilite management.
*
*
Expand Down Expand Up @@ -97,9 +97,9 @@ hilite_create(BUFFER_t *bp, int type, int32_t timeout,
hp->h_magic = HILITE_MAGIC;
hp->h_type = type;
hp->h_timeout = timeout;
if (hp->h_timeout > 0) {
hp->h_timeout += (time(NULL) - 1); // expire time.
} else if (-1 == timeout) {
if (timeout > 0) { //note: owc time_t is unsigned
hp->h_timeout += time(NULL) - 1; // relative expire time.
} else if (timeout < 0) {
hp->h_ctime = bp->b_ctime; // expire on buffer change.
}
hp->h_seqno = ++x_hilite_seqno;
Expand Down Expand Up @@ -361,3 +361,4 @@ hilite_zap(BUFFER_t *bp, int update)
}

/*end*/

Loading

0 comments on commit 298a1c0

Please sign in to comment.