[tracker/parser] SPARQL: Fix lexing COUNT



commit 031ca964b07bbe1dd0609a96b957a59ba6c2306e
Author: Jürg Billeter <j bitron ch>
Date:   Wed Aug 12 15:34:45 2009 +0200

    SPARQL: Fix lexing COUNT

 src/libtracker-data/tracker-sparql-scanner.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-scanner.vala b/src/libtracker-data/tracker-sparql-scanner.vala
index ef22546..71382de 100644
--- a/src/libtracker-data/tracker-sparql-scanner.vala
+++ b/src/libtracker-data/tracker-sparql-scanner.vala
@@ -119,10 +119,6 @@ public class Tracker.SparqlScanner : Object {
 			case 'b':
 				if (matches (begin, "BASE")) return SparqlTokenType.BASE;
 				break;
-			case 'C':
-			case 'c':
-				if (matches (begin, "COUNT")) return SparqlTokenType.COUNT;
-				break;
 			case 'D':
 			case 'd':
 				switch (begin[1]) {
@@ -160,6 +156,10 @@ public class Tracker.SparqlScanner : Object {
 			case 'b':
 				if (matches (begin, "BOUND")) return SparqlTokenType.BOUND;
 				break;
+			case 'C':
+			case 'c':
+				if (matches (begin, "COUNT")) return SparqlTokenType.COUNT;
+				break;
 			case 'G':
 			case 'g':
 				switch (begin[2]) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]