]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/defun_lex.l
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / defun_lex.l
index 9c995db266392cc41461e0fd447f762e88c0b591..6c0805a4fa9b4542319eaf82476b35d6bae53698 100644 (file)
@@ -1,4 +1,3 @@
-%{
 /*
  * clippy (CLI preparator in python) C pseudo-lexer
  * Copyright (C) 2016-2017  David Lamparter for NetDEF, Inc.
  * code documentation in it.
  */
 
+%top{
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+}
+%{
 /* ignore harmless bugs in old versions of flex */
 #pragma GCC diagnostic ignored "-Wsign-compare"
 #pragma GCC diagnostic ignored "-Wunused-value"
@@ -132,6 +137,7 @@ SPECIAL             [(),]
 "DEFUN_NOSH"                   value = strdup(yytext); return DEFUNNY;
 "DEFUN_HIDDEN"                 value = strdup(yytext); return DEFUNNY;
 "DEFPY"                                value = strdup(yytext); return DEFUNNY;
+"DEFPY_NOSH"                   value = strdup(yytext); return DEFUNNY;
 "DEFPY_ATTR"                   value = strdup(yytext); return DEFUNNY;
 "DEFPY_HIDDEN"                 value = strdup(yytext); return DEFUNNY;
 "ALIAS"                                value = strdup(yytext); return DEFUNNY;