led(4): Turn this into a module. Only used by acpi_thinkpad and acpi_asus.
[dragonfly.git] / libexec / dma / aliases_scan.l
blobd7449a02da8f56bdf1d12ec24a0dcb725850c2f7
1 %{
3 #include <string.h>
4 #include "aliases_parse.h"
6 %}
8 %option yylineno
9 %option noinput
10 %option nounput
14 [^:,#[:space:][:cntrl:]]+       {yylval.ident = strdup(yytext); return T_IDENT;}
15 ^([[:blank:]]*(#.*)?\n)+        ;/* ignore empty lines */
16 [:,\n]                          return yytext[0];
17 (\n?[[:blank:]]+|#.*)+          ;/* ignore whitespace and continuation */
18 \\\n                            ;/* ignore continuation.  not allowed in comments */
19 .                               return T_ERROR;
20 <<EOF>>                         return T_EOF;