summary refs log tree commit diff stats
path: root/compiler/ccgliterals.nim
Commit message (Expand)AuthorAgeFilesLines
* better support for PROGMEM like annotations for lets/vars; fixes #12216 (#12799)Andreas Rumpf2019-12-051-14/+17
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-9/+9
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-1/+3
* fixes #11048Araq2019-04-171-4/+0
* Less ropes (#10979)Arne Döring2019-04-111-1/+1
* gc:destructors: make strutils compile (but still crashes)Andreas Rumpf2019-02-221-7/+12
* gc:destructors further progressAndreas Rumpf2018-11-291-1/+1
* --gc:destructors: hello world example compiles and runsAraq2018-11-161-1/+1
* --gc:destructors: next steps; WIPAndreas Rumpf2018-07-211-3/+15
* WIP: strings/seqs based on destructorsAndreas Rumpf2018-07-171-2/+6
* C code generator compiles againAndreas Rumpf2018-05-121-3/+3
* sem pass compiles againAndreas Rumpf2018-05-121-1/+1
* implemented v2 string literalsAraq2018-04-031-2/+12
* C codegen: preparations for different seq and string implementationsAndreas Rumpf2018-04-031-0/+81
} /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef LYSTYLE_H
#define LYSTYLE_H

#ifdef USE_COLOR_STYLE

#include <AttrList.h>
#include <HTMLDTD.h>

/* list of elements */
extern CONST SGML_dtd HTML_dtd;

/* array of currently set styles */
extern HTCharStyle displayStyles[DSTYLE_ELEMENTS];

/* Can we do colour? - RP */
extern int lynx_has_color;

/* Set all the buckets in the hash table to be empty */
extern void style_initialiseHashTable NOPARAMS;

extern void parse_userstyles NOPARAMS;

extern void HStyle_addStyle PARAMS((char* buffer));

extern void style_deleteStyleList NOPARAMS;

extern void style_defaultStyleSheet NOPARAMS;

extern int style_readFromFile PARAMS((char* file));


extern void TrimColorClass PARAMS((
    CONST char *	tagname,
    char *		styleclassname,
    int *		phcode));


 /* this is an array of styles for tags that don't specify 'class' - the
    values from that array will be suggested by SGML.c by setting the
    following variable. Value of -1 means that style value should be calculated
    honestly. -HV */
extern int cached_tag_styles[HTML_ELEMENTS];

 /* the style for current tag is suggested in current_tag_style. If
    force_current_tag_style =TRUE, then no attempts to calculate the color style
    for current tag should be made - the value of 'current_tag_style' must
    be used.
 */
extern int current_tag_style;
extern BOOL force_current_tag_style;

extern BOOL force_classname;
extern char* forced_classname; /* if force_current_tag_style =TRUE, then here
    will be the classname (this is done to avoid copying the class name to the
    buffer class_name.  */

 /* This is called each time lss styles are read. It will fill
    each elt of 'cached_tag_styles' -HV */
extern void cache_tag_styles NOPARAMS;
 /* this is global var - it can be used for reading the end of string found
   during last invokation of TrimColorClass.
 */
extern void FastTrimColorClass PARAMS ((
	    CONST char*		 tag_name,
	    int			 name_len,
	    char*		 stylename,
	    char**		 pstylename_end,
	    int*		 hcode));

#endif /* USE_COLOR_STYLE */

#endif /* LYSTYLE_H */