Commits

Toby Inkster  committed bfaae8b

do not need these checks

  • Participants
  • Parent commits 873b6e6

Comments (0)

Files changed (1)

File 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);
 		}