summaryrefslogtreecommitdiffstats
path: root/lexer/theme-parser.y
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-12-12 16:55:31 +0100
committerDave Davenport <qball@gmpclient.org>2016-12-12 16:55:31 +0100
commitc6030063c6eeee267eca07d06dbe69a2657181c6 (patch)
tree6bccea52c788badc1508ecc8db737f7bcc7f2088 /lexer/theme-parser.y
parentd6ec7b1de8094d20887f72be32af09ecfe3da4fe (diff)
Keep track of location in parser
Diffstat (limited to 'lexer/theme-parser.y')
-rw-r--r--lexer/theme-parser.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y
index 53cf08af..2ad71627 100644
--- a/lexer/theme-parser.y
+++ b/lexer/theme-parser.y
@@ -1,3 +1,4 @@
+%define api.pure
%glr-parser
%skeleton "glr.c"
%locations
@@ -11,11 +12,12 @@
#include <stdio.h>
#include <stdlib.h>
-void yyerror(const char* s);
-int yylex (void );
#include "theme.h"
+#include "lexer/theme-parser.h"
Widget *rofi_theme = NULL;
+void yyerror(YYLTYPE *yylloc, const char* s);
+int yylex (YYSTYPE *, YYLTYPE *);
%}
%union {