Diff of /PTOparser/panoScanner.l [7cc5b7] .. [d14593] Maximize Restore

  Switch to side-by-side view

--- a/PTOparser/panoScanner.l
+++ b/PTOparser/panoScanner.l
@@ -104,14 +104,17 @@
             }
 
 
-  /* Hugin specific variables. When they are supported it would
-  be easier to generate a new type of token for them. For the
-  time being just ignore them */
-
-
-[K][0-9A-Za-z.=-]+[ \t]* {  /* ignore K parameters */
+  /* Things we are currently ignoring */
+
+
+[K][0-9A-Za-z.=-]+[ \t]* {  
                panoScriptScannerTokenBegin(yytext);
              }
+
+^k.*\n       {  
+               panoScriptScannerTokenBegin(yytext);
+             }
+
 
 
   /****************************************/
@@ -294,9 +297,9 @@
                      panoScriptScannerTokenBegin(yytext); 
                    }
 
-  /* Ignore comments */
-
-^#[ \t].*\n         {
+  /* Ignore comments. If the line starts with #h or #- then it is a hugin-option line... ugly */
+
+^#[^h-].*\n     {
                   DEBUG_1("Comment\n");
                 }