Beispiel #1
0
    def get_tokens_unprocessed(self, text):
        extra_content = [(ORACLE_KEYWORDS, Keyword)]

        for index, token, value in SqlLexer.get_tokens_unprocessed(self, text):
            if token is Name:
                for i in extra_content:
                    if value in i[0]:
                        yield index, i[1], value
                        break
                else:
                    yield index, token, value
            else:
                yield index, token, value
    def get_tokens_unprocessed(self, text):
        extra_content = [(ORACLE_KEYWORDS, Keyword),
                         (FORMS_BUILTINS, Name.Builtin)]
		
        for index, token, value in SqlLexer.get_tokens_unprocessed(self, text):
            if token is Name:
                for i in extra_content:
                    if value in i[0]:
                        yield index, i[1], value
                        break;
                else:
                    yield index, token, value
            else:
                yield index, token, value
Beispiel #3
0
 def get_tokens_unprocessed(self, text):
     for index, token, value in SqlLexer.get_tokens_unprocessed(self, text):
         if token in Name and value in self.EXTRA_KEYWORDS:
             yield index, Keyword, value
         else:
             yield index, token, value
Beispiel #4
0
 def get_tokens_unprocessed(self, text):
     for index, token, value in SqlLexer.get_tokens_unprocessed(self, text):
         if value in database.fields():
             yield index, ColumnToken, value
         else:
             yield index, token, value