Skip to content

Commit

Permalink
Use new feature in EBNF Lexer to add a partial_regexp for matching …
Browse files Browse the repository at this point in the history
…the begging of long literals and ensure that match is done against a full buffer.
  • Loading branch information
gkellogg committed Sep 28, 2015
1 parent 6a5ae83 commit 211e876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rdf/turtle/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Reader < RDF::Reader
terminal(:INTEGER, INTEGER)
terminal(:PNAME_LN, PNAME_LN, unescape: true)
terminal(:PNAME_NS, PNAME_NS)
terminal(:STRING_LITERAL_LONG_SINGLE_QUOTE, STRING_LITERAL_LONG_SINGLE_QUOTE, unescape: true)
terminal(:STRING_LITERAL_LONG_QUOTE, STRING_LITERAL_LONG_QUOTE, unescape: true)
terminal(:STRING_LITERAL_LONG_SINGLE_QUOTE, STRING_LITERAL_LONG_SINGLE_QUOTE, unescape: true, partial_regexp: /^'''/)
terminal(:STRING_LITERAL_LONG_QUOTE, STRING_LITERAL_LONG_QUOTE, unescape: true, partial_regexp: /^"""/)
terminal(:STRING_LITERAL_QUOTE, STRING_LITERAL_QUOTE, unescape: true)
terminal(:STRING_LITERAL_SINGLE_QUOTE, STRING_LITERAL_SINGLE_QUOTE, unescape: true)

Expand Down

0 comments on commit 211e876

Please sign in to comment.