Config syntax changes and parser fixes:
* Change ":" to "=>" in hash tables * Change assignments to not need "=" anymore * User defined actions must now be prefixed with the "action" keyword * Anonymous user defined actions don't need the "$" prefix anymore * Fix parsing of conditionals with more than 2 conditions
This commit is contained in:
parent
bafba4b112
commit
9f832c75ea
|
@ -22,6 +22,7 @@ struct liConfigParserContext {
|
|||
gchar *mark;
|
||||
gboolean in_setup_block;
|
||||
|
||||
gboolean action_call_with_param;
|
||||
|
||||
gboolean condition_with_key;
|
||||
gboolean condition_nonbool;
|
||||
|
@ -35,9 +36,9 @@ struct liConfigParserContext {
|
|||
GHashTable *uservars; /* var.foo */
|
||||
|
||||
GQueue *action_list_stack; /* first entry is current action list */
|
||||
GQueue *option_stack; /* stack of liValue* */
|
||||
GQueue *condition_stack; /* stack of condition* */
|
||||
GQueue *value_stack; /* stack of liValue* */
|
||||
GQueue *value_op_stack; /* stack of gchar* */
|
||||
GQueue *condition_stack; /* stack of condition* */
|
||||
|
||||
/* information about currenty parsed file */
|
||||
gchar *filename;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue