Skip to content

Commit

Permalink
Fix remaining issues with ShExC parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anteru committed Jul 22, 2019
1 parent e411914 commit c3fdd7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygments/lexers/rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class ShExCLexer(RegexLexer):
'root': [
(r'\s+', Text),
# keywords ::
(r'((?i)base|prefix|start|external|'
(r'(?i)(base|prefix|start|external|'
r'literal|iri|bnode|nonliteral|length|minlength|maxlength|'
r'mininclusive|minexclusive|maxinclusive|maxexclusive|'
r'totaldigits|fractiondigits|'
Expand All @@ -379,7 +379,7 @@ class ShExCLexer(RegexLexer):
# operators ::
(r'[@|$&=*+?^\-~]', Operator),
# operator keywords ::
(r'((?i)and|or|not)\b', Operator.Word),
(r'(?i)(and|or|not)\b', Operator.Word),
# punctuation characters ::
(r'[(){}.;,:^\[\]]', Punctuation),
# line comments ::
Expand Down

0 comments on commit c3fdd7b

Please sign in to comment.