lib/rdf/turtle/reader.rb in rdf-turtle-1.1.8 vs lib/rdf/turtle/reader.rb in rdf-turtle-1.1.8.1
- old
+ new
@@ -16,11 +16,11 @@
terminal(:DOUBLE, DOUBLE)
terminal(:DECIMAL, DECIMAL)
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)
# String terminals
terminal(nil, %r([\(\),.;\[\]Aa]|\^\^|true|false))