[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [akonadi-next/develop] akonadish: ignore lines beginning with # as comments
From:       Aaron Seigo <aseigo () kde ! org>
Date:       2015-12-26 18:41:04
Message-ID: E1aCtm4-0000nD-OB () scm ! kde ! org
[Download RAW message or body]

Git commit 9ac72f34268e5ca929f100acf9b00d62f7c49366 by Aaron Seigo.
Committed on 26/12/2015 at 18:35.
Pushed by aseigo into branch 'develop'.

ignore lines beginning with # as comments

M  +4    -0    akonadish/main.cpp

http://commits.kde.org/akonadi-next/9ac72f34268e5ca929f100acf9b00d62f7c49366

diff --git a/akonadish/main.cpp b/akonadish/main.cpp
index 1e3f2f5..fe8494b 100644
--- a/akonadish/main.cpp
+++ b/akonadish/main.cpp
@@ -73,6 +73,10 @@ int main(int argc, char *argv[])
 
         QString line = f.readLine();
         while (!line.isEmpty()) {
+            if (line.startsWith('#')) {
+                line = f.readLine();
+                continue;
+            }
             SyntaxTree::self()->run(SyntaxTree::tokenize(line));
             line = f.readLine();
         }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic