]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: parser: Increase indentation
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:18:54 +0000 (19:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 9 Mar 2019 19:18:54 +0000 (19:18 +0000)
No functional changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/scanner.l

index c2ff6f3e06af337600b968f03a2066b218fd27c8..ca8b02826de97c42e02cde96bd10670e0844a170 100644 (file)
@@ -28,27 +28,27 @@ int num_lines;
 #include "grammar.h"
 %}
 
-digit          [0-9]
-letter         [A-Za-z]
-underscore     _
-variable       {letter}({digit}|{letter}|{underscore})+
-whitespace     ([ \t])+
+digit                  [0-9]
+letter                 [A-Za-z]
+underscore             _
+variable               {letter}({digit}|{letter}|{underscore})+
+whitespace             ([ \t])+
 
 %%
 
-#.*$           { /* ignore comments */ }
+#.*$                   { /* ignore comments */ }
 {whitespace}   { return WHITESPACE; }
-\t                     { return TAB; }
-\n                     { num_lines++; return NEWLINE; }
+\t                             { return TAB; }
+\n                             { num_lines++; return NEWLINE; }
 
-"define"       { return DEFINE; }
-"def"          { return DEFINE; }
-"end"          { return END; }
+"define"               { return DEFINE; }
+"def"                  { return DEFINE; }
+"end"                  { return END; }
 
-{variable}     { return VARIABLE; }
-[A-Za-z0-9]    { return VALUE; }
+{variable}             { return VARIABLE; }
+[A-Za-z0-9]            { return VALUE; }
 
-"="                    { return ASSIGN; }
-"+="           { return APPEND; }
+"="                            { return ASSIGN; }
+"+="                   { return APPEND; }
 
 %%