Toby Inkster avatar Toby Inkster committed bfaae8b

do not need these checks

Comments (0)

Files changed (1)

lib/Syntax/Highlight/RDF.pm

 		{
 			$self->_pull_token('^^', Datatype);
 		}
-		elsif ($self->_peek('^') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('^') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('^', Path);
 		}
-		elsif ($self->_peek('!') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('!') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('!', Path);
 		}
 		{
 			$self->_pull_token('.', Punctuation);
 		}
-		elsif ($self->_peek('@prefix') && ($mode & MODE_TURTLE) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('@prefix') && ($mode & MODE_TURTLE))
 		{
 			$self->_pull_token('@prefix', AtRule);
 		}
-		elsif ($self->_peek('@base') && ($mode & MODE_TURTLE) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('@base') && ($mode & MODE_TURTLE))
 		{
 			$self->_pull_token('@base', AtRule);
 		}
-		elsif ($self->_peek('@keywords') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('@keywords') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('@keywords', AtRule);
 		}
-		elsif ($self->_peek('@forAll') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('@forAll') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('@forAll', AtRule);
 		}
-		elsif ($self->_peek('@forSome') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('@forSome') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('@forSome', AtRule);
 		}
 		{
 			$self->_pull_token('a', Shorthand);
 		}
-		elsif ($self->_peek('=>') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('=>') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('=>', Shorthand);
 		}
-		elsif ($self->_peek('<=') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('<=') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('<=', Shorthand);
 		}
-		elsif ($self->_peek('=') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('=') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('=', Shorthand);
 		}
-		elsif ($self->_peek('is') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('is') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('is', IsOf);
 		}
-		elsif ($self->_peek('of') && ($mode & MODE_NOTATION_3) && !($mode & MODE_SPARQL_QUERY))
+		elsif ($self->_peek('of') && ($mode & MODE_NOTATION_3))
 		{
 			$self->_pull_token('of', IsOf);
 		}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.