summaryrefslogtreecommitdiff
path: root/pygments/lexers/rql.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/rql.py')
-rw-r--r--pygments/lexers/rql.py45
1 files changed, 0 insertions, 45 deletions
diff --git a/pygments/lexers/rql.py b/pygments/lexers/rql.py
deleted file mode 100644
index 7c7355dd..00000000
--- a/pygments/lexers/rql.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
- pygments.lexers.rql
- ~~~~~~~~~~~~~~~~~~~
-
- Lexer for RQL the relation query language
-
- http://www.logilab.org/project/rql
-"""
-
-import re
-
-from pygments.lexer import RegexLexer
-from pygments.token import Punctuation, \
- Text, Comment, Operator, Keyword, Name, String, Number
-
-__all__ = ['RqlLexer']
-
-class RqlLexer(RegexLexer):
- """
- Lexer for Relation Query Language.
- """
-
- name = 'RQL'
- aliases = ['rql']
- filenames = ['*.rql']
- mimetypes = ['text/x-rql']
-
- flags = re.IGNORECASE
- tokens = {
- 'root': [
- (r'\s+', Text),
- (r'(DELETE|SET|INSERT|UNION|DISTINCT|WITH|WHERE|BEING|OR'
- r'|AND|NOT|GROUPBY|HAVING|ORDERBY|ASC|DESC|LIMIT|OFFSET'
- r'|TODAY|NOW|TRUE|FALSE|NULL|EXISTS)\b', Keyword),
- (r'[+*/<>=%-]', Operator),
- (r'(Any|is|instance_of|CWEType|CWRelation)\b', Name.Builtin),
- (r'[0-9]+', Number.Integer),
- (r'[A-Z_][A-Z0-9_]*\??', Name),
- (r"'(''|[^'])*'", String.Single),
- (r'"(""|[^"])*"', String.Single),
- (r'[;:()\[\],\.]', Punctuation)
- ],
- }
-